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 D9818192B81 for ; Mon, 20 Jan 2025 10:48: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=1737370121; cv=none; b=uO8YSJz+nHcjxMLbyhTO6omL4SnXARLVarVvkcnXWlbghNo8JxaqwhRlYHx1VlPW+hlUG3jwGFwvw3kXIwdsWUUxBRGGkpHLSolEqHK0HAFEenE/WETm1tpt/7JFcY8Mq+PdOMV9pv3S6bniQJYoDcKAclE2mxfr/bL35hPeiPs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737370121; c=relaxed/simple; bh=HNHppTWcCjKW6I2SoCdfZqrMqg02c3gg3UPEv0bMLW0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=hHkWfyKwQqSv6wKodghud4B4FTwSNs/AVNLyWoWMXX8FJf9iyD/6Ee/dqheqlQgXijDV368iLZ1ya2f73H8DUKOiWxcUX7gRH9FZh2Ur3/8N3OK52ATaErAnwVDHvS4NchWD7pjoqVl2ODuReLLAcjZkNKcm6QiXWiZiT42OZjk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=xug9bDrS; 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="xug9bDrS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E6F75C4CEDD; Mon, 20 Jan 2025 10:48:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1737370120; bh=HNHppTWcCjKW6I2SoCdfZqrMqg02c3gg3UPEv0bMLW0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=xug9bDrSS6215P2UPLB6W6XWX2cx+++8CU1XzOuFMhLV2KBmXajnkorTr/eUQEcOx vslQvcnZ/J/ib+kVsKMSsoGyPKok5ig98DjCVlz4FCAkPBy8C4e1LuooTPUv+3PtT8 F/usfT0oBdwldXxHPtgxfb7SoKJi1eYSk0QaxLws= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52923: netfilter: nf_tables: adapt set backend to use GC transaction API Date: Mon, 20 Jan 2025 11:48:35 +0100 Message-ID: <2025012034-CVE-2023-52923-416e@gregkh> X-Mailer: git-send-email 2.48.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=3603; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=HNHppTWcCjKW6I2SoCdfZqrMqg02c3gg3UPEv0bMLW0=; b=owGbwMvMwCRo6H6F97bub03G02pJDOl9WkzRn1+dXyU2qdIqZH7VApawoB3v2VTe+02ZJVvOd mAPO/ezjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIrgvDXHmR5BPRZpYZYiKx 3q3n/f6/+uvew7DgmNSLJEYWC8GCXvVTAdJO6wS2MkwGAA== 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: nf_tables: adapt set backend to use GC transaction API Use the GC transaction API to replace the old and buggy gc API and the busy mark approach. No set elements are removed from async garbage collection anymore, instead the _DEAD bit is set on so the set element is not visible from lookup path anymore. Async GC enqueues transaction work that might be aborted and retried later. rbtree and pipapo set backends does not set on the _DEAD bit from the sync GC path since this runs in control plane path where mutex is held. In this case, set elements are deactivated, removed and then released via RCU callback, sync GC never fails. The Linux kernel CVE team has assigned CVE-2023-52923 to this issue. Affected and fixed versions =========================== Issue introduced in 4.1 with commit 9d0982927e79049675cb6c6c04a0ebb3dad5a434 and fixed in 4.19.316 with commit cb4d00b563675ba8ff6ef94b077f58d816f68ba3 Issue introduced in 4.1 with commit 9d0982927e79049675cb6c6c04a0ebb3dad5a434 and fixed in 5.4.262 with commit c357648929c8dff891502349769aafb8f0452bc2 Issue introduced in 4.1 with commit 9d0982927e79049675cb6c6c04a0ebb3dad5a434 and fixed in 5.10.198 with commit 146c76866795553dbc19998f36718d7986ad302b Issue introduced in 4.1 with commit 9d0982927e79049675cb6c6c04a0ebb3dad5a434 and fixed in 5.15.134 with commit 479a2cf5259347d6a1f658b0f791d27a34908e91 Issue introduced in 4.1 with commit 9d0982927e79049675cb6c6c04a0ebb3dad5a434 and fixed in 6.1.56 with commit df650d6a4bf47248261b61ef6b174d7c54034d15 Issue introduced in 4.1 with commit 9d0982927e79049675cb6c6c04a0ebb3dad5a434 and fixed in 6.4.11 with commit e4d71d6a9c7db93f7bf20c3a0f0659d63d7de681 Issue introduced in 4.1 with commit 9d0982927e79049675cb6c6c04a0ebb3dad5a434 and fixed in 6.5 with commit f6c383b8c31a93752a52697f8430a71dcbc46adf 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-2023-52923 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/nf_tables_api.c net/netfilter/nft_set_hash.c net/netfilter/nft_set_pipapo.c net/netfilter/nft_set_rbtree.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/cb4d00b563675ba8ff6ef94b077f58d816f68ba3 https://git.kernel.org/stable/c/c357648929c8dff891502349769aafb8f0452bc2 https://git.kernel.org/stable/c/146c76866795553dbc19998f36718d7986ad302b https://git.kernel.org/stable/c/479a2cf5259347d6a1f658b0f791d27a34908e91 https://git.kernel.org/stable/c/df650d6a4bf47248261b61ef6b174d7c54034d15 https://git.kernel.org/stable/c/e4d71d6a9c7db93f7bf20c3a0f0659d63d7de681 https://git.kernel.org/stable/c/f6c383b8c31a93752a52697f8430a71dcbc46adf