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 6E3EF50282 for ; Wed, 1 May 2024 05:32:59 +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=1714541579; cv=none; b=FirVNDLOjziE8ogd0+fMwjACPxZ2eNTfBBB8yzmDe+L5zQSHpyBYnyle3MmZ0ktwXEOd5q4ma0L2s4oTxXWa1xBXqNoiR8VKb5AEzL9HcRbb5zs4Su+Ocq2/gZSP6h3Bu43CIH7E3VuDXx3q2T4bF5kjTDKACUQflPB3MnAvASY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714541579; c=relaxed/simple; bh=pUTaU5JzznNu/DJPWzOax75nmBUqPMkVXS96fbdbCsU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=LJiPGDf+WCQgLFJJUqyJ+zMX3xH45rxqvuGvtlyI6icNd3uWRMvu83jgyXPneSkMzd8NtcXQxvxmBf5edizlWhEEAQ4MAsm3e3SvEhjDJVhwys6zUt76RQuhPMWTSGg8DYO6W76diDpyk42091rLxTTC+d9rvYcNBEZ6My7iI3I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=hwzufzTV; 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="hwzufzTV" Received: by smtp.kernel.org (Postfix) with ESMTPSA id ED1E7C4AF14; Wed, 1 May 2024 05:32:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1714541579; bh=pUTaU5JzznNu/DJPWzOax75nmBUqPMkVXS96fbdbCsU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=hwzufzTVhrwguj6gZSgZ4vQaXHYDYGkRnrzKkIC9cBYu5EyonMLJMVDcFqW+n+pGg YS2Myr2XP+2riYKNG1K1LcGX7Vhpz8gQioxHqsEtcj+XOikiFZbTvMxJlhO8+hDzPp 9nGI0TeXAGgok0D1PbD5M/9iCBeC0v8mNjA0DBKY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-27021: r8169: fix LED-related deadlock on module removal Date: Wed, 1 May 2024 07:31:22 +0200 Message-ID: <2024050151-CVE-2024-27021-6a83@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=2098; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=pUTaU5JzznNu/DJPWzOax75nmBUqPMkVXS96fbdbCsU=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmGl7szbdv3vutdn7fJiWVG5S3j4k/aZZZz+euXnONyN Huz/uLpjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIiAbD/GJBk977rxQ9SyRm POsW/1j7m2m9JcN857Yyt5xzhzbkBrLG1DpzlT3YsLwbAA== 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: r8169: fix LED-related deadlock on module removal Binding devm_led_classdev_register() to the netdev is problematic because on module removal we get a RTNL-related deadlock. Fix this by avoiding the device-managed LED functions. Note: We can safely call led_classdev_unregister() for a LED even if registering it failed, because led_classdev_unregister() detects this and is a no-op in this case. The Linux kernel CVE team has assigned CVE-2024-27021 to this issue. Affected and fixed versions =========================== Issue introduced in 6.8 with commit 18764b883e15 and fixed in 6.8.8 with commit 53d986f39acd Issue introduced in 6.8 with commit 18764b883e15 and fixed in 6.9-rc4 with commit 19fa4f2a85d7 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-27021 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/ethernet/realtek/r8169.h drivers/net/ethernet/realtek/r8169_leds.c drivers/net/ethernet/realtek/r8169_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/53d986f39acd8ea11c9e460732bfa5add66360d9 https://git.kernel.org/stable/c/19fa4f2a85d777a8052e869c1b892a2f7556569d