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 49DBA36E494 for ; Fri, 20 Mar 2026 08:13:41 +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=1773994421; cv=none; b=G+ksYxcTnFGFog8HBgD8eakWJJSdbdzEpBAb7psR8QAG0wNywRTS2U64mz6e4UgTwtzwjDsNq2yxkZGbBtRRXY1cr3f/ugoCUKMkaB0xZ5+bZQZTBaXaVeL73wDHI/km+WJztzunTYMHiNiNXwfzrAMp3JxM+sk3Q0xTFwHwpeQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773994421; c=relaxed/simple; bh=GwcM7d9vdIcJ2MnPmcZsFH+n3ZktygN4CkLQQc3gm7Q=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=iatpHmBZfonI1o/cbo9HalMWti1rgqf8MNX5ghMlxi+w0MTz+FQ+fA2KUueYxqOfOCaC3aHzxTdFz9bA+KLnS8/GrzuYXFZ6Ld7kTMZknzlGUtYdE8Y5NvMyp+5un0XWvxm5JyiUVetWrumPj3T5aNp85LYRhMcK37IyBIGQ4Fo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=MJLhzLpK; 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="MJLhzLpK" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6A267C4CEF7; Fri, 20 Mar 2026 08:13:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1773994420; bh=GwcM7d9vdIcJ2MnPmcZsFH+n3ZktygN4CkLQQc3gm7Q=; h=From:To:Cc:Subject:Date:Reply-To:From; b=MJLhzLpKR9n8fe27L308q0SM2JVmE5s8yNWNFByCIX4Is0oKb8k3MjHVGixNtLhSg U4QrChWKYXYJ+h6dWrwSTCpQj3hau+tvy9pb+y28RQND3ce2Mgv7k6fn1GF+BTEkZK NmK7M91K2kYUW+vzTXLSuKQlyu65DT8AebxeHxpU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-23272: netfilter: nf_tables: unconditionally bump set->nelems before insertion Date: Fri, 20 Mar 2026 09:13:33 +0100 Message-ID: <2026032034-CVE-2026-23272-8ad1@gregkh> X-Mailer: git-send-email 2.53.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2705; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=mky47GglxgYjTCkAUHQHmP5khe5SJXYoleV3rS1Q3Og=; b=owGbwMvMwCRo6H6F97bub03G02pJDJl7Gdc9b1OZ+kzwnENXfM+Fe29k9QxtXuUqP77+Tmqq1 o+Mqb6PO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiVs4M82sOTKv9uuYDk1ds h1qz+i/7K6r8PQzzC2c+P8GwfbJu6kr+b0yGdgc3J9VtAAA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: netfilter: nf_tables: unconditionally bump set->nelems before insertion In case that the set is full, a new element gets published then removed without waiting for the RCU grace period, while RCU reader can be walking over it already. To address this issue, add the element transaction even if set is full, but toggle the set_full flag to report -ENFILE so the abort path safely unwinds the set to its previous state. As for element updates, decrement set->nelems to restore it. A simpler fix is to call synchronize_rcu() in the error path. However, with a large batch adding elements to already maxed-out set, this could cause noticeable slowdown of such batches. The Linux kernel CVE team has assigned CVE-2026-23272 to this issue. Affected and fixed versions =========================== Issue introduced in 4.10 with commit 35d0ac9070ef619e3bf44324375878a1c540387b and fixed in 6.18.17 with commit 6826131c7674329335ca25df2550163eb8a1fd0c Issue introduced in 4.10 with commit 35d0ac9070ef619e3bf44324375878a1c540387b and fixed in 6.19.7 with commit ccb8c8f3c1127cf34d18c737309897c68046bf21 Issue introduced in 4.10 with commit 35d0ac9070ef619e3bf44324375878a1c540387b and fixed in 7.0-rc3 with commit def602e498a4f951da95c95b1b8ce8ae68aa733a Issue introduced in 4.9.33 with commit fefdd79403e89b0c673965343b92e2e01e2713a8 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-2026-23272 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 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/6826131c7674329335ca25df2550163eb8a1fd0c https://git.kernel.org/stable/c/ccb8c8f3c1127cf34d18c737309897c68046bf21 https://git.kernel.org/stable/c/def602e498a4f951da95c95b1b8ce8ae68aa733a