Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 505C81EABBC for ; Mon, 21 Oct 2024 12:03:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729512226; cv=none; b=cuiwvES8W3U1yxYkSy95r8qBfLNDDS6KCjtNWgGu9l4RgHOeeS8A4wU/Pic4BpQ1v1G7oeRdr94ZIV1Eh9aNueLy+dM+q3Sjb50UqMoZfDUHttE8ExO82aMyf5hoVw1zsyHzo9Ht+WGbQHu9zLq7FmxbLqIm7oO/paNvY66oB6c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729512226; c=relaxed/simple; bh=p964X0gVEvMBDN/Bj7llpfeZnVECyQPoSy/emaF72tU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=LuSdyUC0CU7ZRrFUUOSgoTgZtrni229pGTx5PwVvi21reMORPHNCboq2Y5qsh1CLKD9fIMdmyYZTWmY3jJJXz3DS05QviRZEPQGAfIqQE9nhfsxKQDohKAcmb58TijdbskvuBimji5DJsiB9ivVFfArdRsraXgp92t3V1ZZqbD4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ndgsEohv; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="ndgsEohv" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8304FC4CEEA; Mon, 21 Oct 2024 12:03:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729512225; bh=p964X0gVEvMBDN/Bj7llpfeZnVECyQPoSy/emaF72tU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ndgsEohv5EoE/MkwMNJy162JV+CC60Zn8iMuMyi7tlQcAVIgJdWFcjjZGdRU2Oc/k 4k3VvSHanwUPzqlnz/lgPlEgLs76a5dq5kB14yaylPfS8Dh9Q5XudxjnzwkYx7r75D xmeiuhUVhdqVwFbjmVAWkkFHYQvQNLqo2eJoXQRw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-47718: wifi: rtw88: always wait for both firmware loading attempts Date: Mon, 21 Oct 2024 14:00:46 +0200 Message-ID: <2024102121-CVE-2024-47718-c7cd@gregkh> X-Mailer: git-send-email 2.47.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2882; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=p964X0gVEvMBDN/Bj7llpfeZnVECyQPoSy/emaF72tU=; b=owGbwMvMwCRo6H6F97bub03G02pJDOliTqHJ9941TfE3rnpxZ8MBzqj88CXOuTKHvqz9tHaHQ enjrh2nO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAibzIZ5pnOXxU2LdL/47Is vaU3su2NytLqwxkWnMiS/b/kynLfZ4l/+2uP2c1vdmkzBAA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: wifi: rtw88: always wait for both firmware loading attempts In 'rtw_wait_firmware_completion()', always wait for both (regular and wowlan) firmware loading attempts. Otherwise if 'rtw_usb_intf_init()' has failed in 'rtw_usb_probe()', 'rtw_usb_disconnect()' may issue 'ieee80211_free_hw()' when one of 'rtw_load_firmware_cb()' (usually the wowlan one) is still in progress, causing UAF detected by KASAN. The Linux kernel CVE team has assigned CVE-2024-47718 to this issue. Affected and fixed versions =========================== Issue introduced in 5.6 with commit c8e5695eae99 and fixed in 5.10.227 with commit a0c1e2da652c Issue introduced in 5.6 with commit c8e5695eae99 and fixed in 5.15.168 with commit ceaab3fb64d6 Issue introduced in 5.6 with commit c8e5695eae99 and fixed in 6.1.113 with commit 7887ad11995a Issue introduced in 5.6 with commit c8e5695eae99 and fixed in 6.6.54 with commit 1b8178a2ae27 Issue introduced in 5.6 with commit c8e5695eae99 and fixed in 6.10.13 with commit 9432185540ba Issue introduced in 5.6 with commit c8e5695eae99 and fixed in 6.11.2 with commit e9a78d9417e1 Issue introduced in 5.6 with commit c8e5695eae99 and fixed in 6.12-rc1 with commit 0e735a4c6137 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2024-47718 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/net/wireless/realtek/rtw88/main.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/a0c1e2da652cf70825739bc12d49ea15805690bf https://git.kernel.org/stable/c/ceaab3fb64d6a5426a3db8f87f3e5757964f2532 https://git.kernel.org/stable/c/7887ad11995a4142671cc49146db536f923c8568 https://git.kernel.org/stable/c/1b8178a2ae272256ea0dc4f940320a81003535e2 https://git.kernel.org/stable/c/9432185540bafd42b7bfac6e6ef2f0a0fb4be447 https://git.kernel.org/stable/c/e9a78d9417e167410d6fb83c4e908b077ad8ba6d https://git.kernel.org/stable/c/0e735a4c6137262bcefe45bb52fde7b1f5fc6c4d