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 EC06E1F63F6 for ; Fri, 27 Dec 2024 15:03:40 +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=1735311821; cv=none; b=UoDlmgv3h5jmYBZoz8kizGG+5++1ZXGe3nde5zjzeRZdY/Bd6ntewKw7Vc1clxt18eV9kzTvGy0N5ewq7LSBQpsM+IhRmmLLweJr3jJxvldhv1UL5+QdpGZMxSpGmfd1pjqiiB1VJ5GDTnf4ASZPn4DVnaYetdKwUPNvXsV051E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735311821; c=relaxed/simple; bh=6ZdS51T5qlwmQphagWAO5aGpiO2jCfqhDZh+hmgxU34=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=tigtHoZcP2KQxY7x8WTMwpriPegcIj4Dgzy3f3bbFRreDUlLQwAUfOl4ouoI2jBj9T2rq4rvUnIZ7BWaOWqk0tv4NAZdmstcXzENJTdwwGjlnOXGMre+l+YPpB4Ob96/QHuQy1N7tFEi09HNUbvyscGP3KnUvPoKNMjqRAJLGys= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=nkKR2Pvk; 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="nkKR2Pvk" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5BD28C4CED0; Fri, 27 Dec 2024 15:03:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1735311820; bh=6ZdS51T5qlwmQphagWAO5aGpiO2jCfqhDZh+hmgxU34=; h=From:To:Cc:Subject:Date:Reply-to:From; b=nkKR2Pvkpuify+f6cg5AH1+5ZymlFWEHkVB7xhk7C93KnhvQZOaHX2XRS4RRdANPS fLuqVmwtbg/lRqvz8EfOu3nt+3jrqEvoU/LiXBkQBradpgKW5fssqY4yifOv2j1qZ/ r2kIU+PdywfQJtQuE8npj/jHolVq1X9mLpEyUn+A= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-56637: netfilter: ipset: Hold module reference while requesting a module Date: Fri, 27 Dec 2024 16:02:38 +0100 Message-ID: <2024122735-CVE-2024-56637-23bb@gregkh> X-Mailer: git-send-email 2.47.1 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=3159; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=6ZdS51T5qlwmQphagWAO5aGpiO2jCfqhDZh+hmgxU34=; b=owGbwMvMwCRo6H6F97bub03G02pJDOl5B7v1DFT2q/61LrD/Na38gvjzbX9U/NZUTeKsXKRx+ dZ+eW+FjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIGhvDglOPYuUKGVM5DgU4 +TkVT3aql5q2hmHBtTjG6unl91S/WEX/i9t5v0MqfcJhAA== 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: netfilter: ipset: Hold module reference while requesting a module User space may unload ip_set.ko while it is itself requesting a set type backend module, leading to a kernel crash. The race condition may be provoked by inserting an mdelay() right after the nfnl_unlock() call. The Linux kernel CVE team has assigned CVE-2024-56637 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.39 with commit a7b4f989a629493bb4ec4a354def784d440b32c4 and fixed in 5.4.287 with commit e5e2d3024753fdaca818b822e3827614bacbdccf Issue introduced in 2.6.39 with commit a7b4f989a629493bb4ec4a354def784d440b32c4 and fixed in 5.10.231 with commit 6099b5d3e37145484fac4b8b4070c3f1abfb3519 Issue introduced in 2.6.39 with commit a7b4f989a629493bb4ec4a354def784d440b32c4 and fixed in 5.15.174 with commit 0e67805e805c1f3edd6f43adbe08ea14b552694b Issue introduced in 2.6.39 with commit a7b4f989a629493bb4ec4a354def784d440b32c4 and fixed in 6.1.120 with commit 5bae60a933ba5d16eed55c6b279be51bcbbc79b0 Issue introduced in 2.6.39 with commit a7b4f989a629493bb4ec4a354def784d440b32c4 and fixed in 6.6.66 with commit 90bf312a6b6b3d6012137f6776a4052ee85e0340 Issue introduced in 2.6.39 with commit a7b4f989a629493bb4ec4a354def784d440b32c4 and fixed in 6.12.5 with commit ba5e070f36682d07ca7ad2a953e6c9d96be19dca Issue introduced in 2.6.39 with commit a7b4f989a629493bb4ec4a354def784d440b32c4 and fixed in 6.13-rc2 with commit 456f010bfaefde84d3390c755eedb1b0a5857c3c 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-56637 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: net/netfilter/ipset/ip_set_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/e5e2d3024753fdaca818b822e3827614bacbdccf https://git.kernel.org/stable/c/6099b5d3e37145484fac4b8b4070c3f1abfb3519 https://git.kernel.org/stable/c/0e67805e805c1f3edd6f43adbe08ea14b552694b https://git.kernel.org/stable/c/5bae60a933ba5d16eed55c6b279be51bcbbc79b0 https://git.kernel.org/stable/c/90bf312a6b6b3d6012137f6776a4052ee85e0340 https://git.kernel.org/stable/c/ba5e070f36682d07ca7ad2a953e6c9d96be19dca https://git.kernel.org/stable/c/456f010bfaefde84d3390c755eedb1b0a5857c3c