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 542F912BEA0 for ; Wed, 1 May 2024 12:58:39 +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=1714568319; cv=none; b=nZlytBG4ETT1RLwxbU+mpYqZgKlmHXtGvNju/1B4Md/Gi5uu2vpC49+9vqEQjmJrIBoZk0mc6neD0tMxpf52Hj+9UOItgyAI0YiDUi2oK8Icxb66CHZu4lmn1jl5MhT+gwXas+xjfJAD94rOfWShkt32hw9sV7sS+M7PtCk1S3M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714568319; c=relaxed/simple; bh=ysNXUyx+YaPnTJCTzy2Ff2TdEeAtN/f2xYCl89Ykhcs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=tW2LWu1i55NpkLPukHPQvbHG8bp9jAvUXt0EPKOLFa4PjaO39HkrBZynWDHQQThkdLaD2cl5A7Kf77yU6Q3Xh1rHdyGpfxZSX5TN1FkJOngRnCQ2v9FTf08cTH6cOWsFKv1hl34ylWAGTGQDLycqLGNW8wYPvnTtFhcfo54cqxI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=KwDzauHV; 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="KwDzauHV" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 860E2C4AF19; Wed, 1 May 2024 12:58:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1714568318; bh=ysNXUyx+YaPnTJCTzy2Ff2TdEeAtN/f2xYCl89Ykhcs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=KwDzauHVnfXgNPrXvcaKZBheCQXayTE/JBiXYgFXZKgiJDD8LekhtYaHIIvJXQShs ZOVNq30/BijdEHDesMUDs2ahu9JjH9rqqg57PW+ErX/eNVSS+HsVS2/Pm4AWhNXwf3 vtq48WQYDDl1OEpppIw16oyUzJzeEhMO2QU+W1k8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-27052: wifi: rtl8xxxu: add cancel_work_sync() for c2hcmd_work Date: Wed, 1 May 2024 14:57:37 +0200 Message-ID: <2024050115-CVE-2024-27052-fb6d@gregkh> X-Mailer: git-send-email 2.44.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=2675; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ysNXUyx+YaPnTJCTzy2Ff2TdEeAtN/f2xYCl89Ykhcs=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlGNtqnZmh6q+4PNeF71C7S8jI7UaJ+0xv5NVe7zxw60 X4ku6i+I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACYy25Rhvh/TK6MjNgIddZz1 Fxc18b7+sCvnJ8P89Heb1RaelxO2d0v/teTXbQbvacd7AQ== 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: rtl8xxxu: add cancel_work_sync() for c2hcmd_work The workqueue might still be running, when the driver is stopped. To avoid a use-after-free, call cancel_work_sync() in rtl8xxxu_stop(). The Linux kernel CVE team has assigned CVE-2024-27052 to this issue. Affected and fixed versions =========================== Issue introduced in 5.5 with commit e542e66b7c2e and fixed in 5.10.214 with commit dddedfa3b29a Issue introduced in 5.5 with commit e542e66b7c2e and fixed in 5.15.153 with commit ac512507ac89 Issue introduced in 5.5 with commit e542e66b7c2e and fixed in 6.1.83 with commit 3518cea837de Issue introduced in 5.5 with commit e542e66b7c2e and fixed in 6.6.23 with commit 156012667b85 Issue introduced in 5.5 with commit e542e66b7c2e and fixed in 6.7.11 with commit 7059cdb69f8e Issue introduced in 5.5 with commit e542e66b7c2e and fixed in 6.8.2 with commit 58fe3bbddfec Issue introduced in 5.5 with commit e542e66b7c2e and fixed in 6.9-rc1 with commit 1213acb478a7 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-27052 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/rtl8xxxu/rtl8xxxu_core.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/dddedfa3b29a63c2ca4336663806a6128b8545b4 https://git.kernel.org/stable/c/ac512507ac89c01ed6cd4ca53032f52cdb23ea59 https://git.kernel.org/stable/c/3518cea837de4d106efa84ddac18a07b6de1384e https://git.kernel.org/stable/c/156012667b85ca7305cb363790d3ae8519a6f41e https://git.kernel.org/stable/c/7059cdb69f8e1a2707dd1e2f363348b507ed7707 https://git.kernel.org/stable/c/58fe3bbddfec10c6b216096d8c0e517cd8463e3a https://git.kernel.org/stable/c/1213acb478a7181cd73eeaf00db430f1e45b1361