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 1A31516D31C for ; Fri, 12 Jul 2024 12:38:26 +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=1720787906; cv=none; b=q39veUvpFNPawO6yyvVadwrOsdZutv8kAXS0zEz2E2lwci2RHATznbIy5d68lB161QMEOTh2P7Dd5jkQR3jrJEF3no5sv2z7zpjLlMwSOKIwTGRk99h8T4pbvhSGa5u0qEKBfheIOyFg3826cVjDCSa/fIGv7Thyu9Pb7uZMCtA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720787906; c=relaxed/simple; bh=IsK0afuPvdWejugG6wgWWLX9S0laPzxXBr8p0gfopRw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=J/ukZ0TmEmqOcv+UEqMvsnjkH5dFTlWgI9uJ0PCAIIgTx9U4Bxs+7+Kobx6wuuoctBvVtkMSPPLPlJXTKnbB/dLCwjakZm3tAHHkxh+JkYCB0xwN/rtEQPb+ssdKTnF6lI6374Dde3idWTbkyGef7vg6n10Gl6tQWJnPLN1kRLs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=qpbn5dwe; 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="qpbn5dwe" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 928EBC32782; Fri, 12 Jul 2024 12:38:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1720787906; bh=IsK0afuPvdWejugG6wgWWLX9S0laPzxXBr8p0gfopRw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=qpbn5dweAYGT7tGbBrD2w0XIMzIqEFxsMQ/1aLIN+1WC6d2MXQfYV/dVRuk3VdR5C ew6e0hXTxXRQ8XLn/CGrYUACqLlxhY4Nd/njJq8vKW03ca9MHJdSs50S4AkzPOalvd QOwcPlvIiMBz3B5TtXV47sfqPlXrLYhmqdGYvP0M= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-40993: netfilter: ipset: Fix suspicious rcu_dereference_protected() Date: Fri, 12 Jul 2024 14:37:57 +0200 Message-ID: <2024071250-CVE-2024-40993-ee08@gregkh> X-Mailer: git-send-email 2.45.2 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=2571; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=IsK0afuPvdWejugG6wgWWLX9S0laPzxXBr8p0gfopRw=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkTlefd/7B5WeThR7lT5t57MsNr8qPw8t72j9zn4lef2 J0jax5r1xHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQAT0ZZhmGew1fBlhfHx7ofz mM9MSdW9sMHg1HmGuaImZetNTyiFdfZkTbDMP/hk9ZGL8QA= 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: Fix suspicious rcu_dereference_protected() When destroying all sets, we are either in pernet exit phase or are executing a "destroy all sets command" from userspace. The latter was taken into account in ip_set_dereference() (nfnetlink mutex is held), but the former was not. The patch adds the required check to rcu_dereference_protected() in ip_set_dereference(). The Linux kernel CVE team has assigned CVE-2024-40993 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1.95 with commit 390b353d1a1d and fixed in 6.1.96 with commit 788d585e62f4 Issue introduced in 6.6.35 with commit 2ba35b37f780 and fixed in 6.6.36 with commit 94dd411c18d7 Issue introduced in 6.9.6 with commit 90ae20d47de6 and fixed in 6.9.7 with commit 3fc09e1ca854 Issue introduced in 6.10-rc4 with commit 4e7aaa6b82d6 and fixed in 6.10-rc5 with commit 8ecd06277a76 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-40993 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/3799d02ae4208af08e81310770d8754863a246a1 https://git.kernel.org/stable/c/72d9611968867cc4c5509e7708b1507d692b797a https://git.kernel.org/stable/c/523bed6489e089dd8040e72453fb79da47b144c2 https://git.kernel.org/stable/c/788d585e62f487bc4536d454937f737b70d39a33 https://git.kernel.org/stable/c/94dd411c18d7fff9e411555d5c662d29416501e4 https://git.kernel.org/stable/c/3fc09e1ca854bc234e007a56e0f7431f5e2defb5 https://git.kernel.org/stable/c/8ecd06277a7664f4ef018abae3abd3451d64e7a6