VDB

CVE-2026-23231

CVE-2026-23231 PUBLISHED CVSS 7.8 HIGH

netfilter: nf_tables: fix use-after-free in nf_tables_addchain()

Reported by linux · Published March 4, 2026

In the Linux kernel, the following vulnerability has been resolved: netfilter: nf_tables: fix use-after-free in nf_tables_addchain() nf_tables_addchain() publishes the chain to table->chains via list_add_tail_rcu() (in nft_chain_add()) before registering hooks. If nf_tables_register_hook() then fails, the error path calls nft_chain_del() (list_del_rcu()) followed by nf_tables_chain_destroy() with no RCU grace period in between. This creates two use-after-free conditions: 1) Control-plane: nf_tables_dump_chains() traverses table->chains under rcu_read_lock(). A concurrent dump can still be walking the chain when the error path frees it. 2) Packet path: for NFPROTO_INET, nf_register_net_hook() briefly installs the IPv4 hook before IPv6 registration fails. Packets entering nft_do_chain() via the transient IPv4 hook can still be dereferencing chain->blob_gen_X when the error path frees the chain. Add synchronize_rcu() between nft_chain_del() and the chain destroy so that all RCU readers -- both dump threads and in-flight packet evaluation -- have finished before the chain is freed.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel-rt-moduleserrata.rockylinux.org0:6.12.0-124.47.1.el10_1.x86_64, 0:6.12.0-124.47.1.el10_1.aarch64
kernel-rt-64k-debug-moduleserrata.rockylinux.org0:6.12.0-124.47.1.el10_1.aarch64, 0:5.14.0-611.47.1.el9_7.aarch64
kernel-tools-libserrata.rockylinux.org0:6.12.0-124.47.1.el10_1.x86_64, 0:6.12.0-124.47.1.el10_1.ppc64le
kernel-develerrata.rockylinux.org0:6.12.0-124.47.1.el10_1.s390x, 0:4.18.0-553.117.1.el8_10.x86_64
kernel-rt-64k-debug-modules-coreerrata.rockylinux.org0:6.12.0-124.47.1.el10_1.aarch64, 0:5.14.0-611.47.1.el9_7.aarch64
kernel-modules-extra-commonAmazon Linux1:6.1.166-197.305.amzn2023
kernel-debug-uki-virterrata.rockylinux.org0:6.12.0-124.47.1.el10_1.x86_64, 0:5.14.0-611.47.1.el9_7.x86_64
perferrata.rockylinux.org0:4.18.0-553.117.1.el8_10.x86_64
kernel-rt-debug-moduleserrata.rockylinux.org0:6.12.0-124.47.1.el10_1.x86_64
kernel-debuginfoerrata.rockylinux.org0:6.12.0-124.47.1.el10_1.s390x, 0:4.18.0-553.117.1.el8_10.x86_64
kernel-rt-64k-debug-coreerrata.rockylinux.org0:5.14.0-611.47.1.el9_7.aarch64
perf-debuginfoerrata.rockylinux.org0:6.12.0-124.47.1.el10_1.aarch64, 0:5.14.0-611.47.1.el9_7.aarch64

50 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinux91c7b38dc9f0de4f7f444b796d14476bc12df7bc, 91c7b38dc9f0de4f7f444b796d14476bc12df7bc, 91c7b38dc9f0de4f7f444b796d14476bc12df7bc
LinuxLinux3.16, 0, 6.1.165
amazon:2023kernel-modules-extra-common0
amazon:2023kernel-livepatch-6.12.77-99.1400
amazon:2023kernel6.12-modules-extra0
SiemensSIPLUS S7-1500 CPU 1518-4 PN/DP MFP3.1.5, 3.1.6, 3.1.7
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0)3.1.5, 3.1.6, 3.1.7
SiemensSIMATIC S7-1500 TM MFP - GNU/Linux subsystem0
amazon:2023kernel0
amazon:2023kernel6.12-headers0
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0)3.1.5, 3.1.7, 3.1.6
amazon:2023bpftool0
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0)3.1.6, 3.1.7, 3.1.5
amazon:2023perf6.120
amazon:2023kernel-modules-extra0
amazon:2023kernel6.12-libbpf0
amazon:2023kernel6.12-libbpf-devel0
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)3.1.6, 3.1.5, 3.1.7
amazon:2023kernel-devel0
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP3.1.7, 3.1.6, 3.1.5

…and 23 more

Timeline

  • Mar 4, 2026 CVE Published
  • Mar 5, 2026 EPSS Score (30 in total, the first dated here)
  • Mar 22, 2026 Coalition ESS Score (3 in total, the first dated here)
  • Mar 30, 2026 Distribution Patch (78 in total, the first dated here)
  • Mar 30, 2026 Security Advisory (78 in total, the first dated here)
  • Aug 2, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-23231
vulnetix vdb fixes CVE-2026-23231

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-23231/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›