CVE-2026-23231
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-rt-modules | errata.rockylinux.org | 0:6.12.0-124.47.1.el10_1.x86_64, 0:6.12.0-124.47.1.el10_1.aarch64 |
| kernel-rt-64k-debug-modules | errata.rockylinux.org | 0:6.12.0-124.47.1.el10_1.aarch64, 0:5.14.0-611.47.1.el9_7.aarch64 |
| kernel-tools-libs | errata.rockylinux.org | 0:6.12.0-124.47.1.el10_1.x86_64, 0:6.12.0-124.47.1.el10_1.ppc64le |
| kernel-devel | errata.rockylinux.org | 0: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-core | errata.rockylinux.org | 0:6.12.0-124.47.1.el10_1.aarch64, 0:5.14.0-611.47.1.el9_7.aarch64 |
| kernel-modules-extra-common | Amazon Linux | 1:6.1.166-197.305.amzn2023 |
| kernel-debug-uki-virt | errata.rockylinux.org | 0:6.12.0-124.47.1.el10_1.x86_64, 0:5.14.0-611.47.1.el9_7.x86_64 |
| perf | errata.rockylinux.org | 0:4.18.0-553.117.1.el8_10.x86_64 |
| kernel-rt-debug-modules | errata.rockylinux.org | 0:6.12.0-124.47.1.el10_1.x86_64 |
| kernel-debuginfo | errata.rockylinux.org | 0:6.12.0-124.47.1.el10_1.s390x, 0:4.18.0-553.117.1.el8_10.x86_64 |
| kernel-rt-64k-debug-core | errata.rockylinux.org | 0:5.14.0-611.47.1.el9_7.aarch64 |
| perf-debuginfo | errata.rockylinux.org | 0: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
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 91c7b38dc9f0de4f7f444b796d14476bc12df7bc, 91c7b38dc9f0de4f7f444b796d14476bc12df7bc, 91c7b38dc9f0de4f7f444b796d14476bc12df7bc |
| Linux | Linux | 3.16, 0, 6.1.165 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2023 | kernel-livepatch-6.12.77-99.140 | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | 3.1.5, 3.1.6, 3.1.7 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) | 3.1.5, 3.1.6, 3.1.7 |
| Siemens | SIMATIC S7-1500 TM MFP - GNU/Linux subsystem | 0 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | kernel6.12-headers | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0) | 3.1.5, 3.1.7, 3.1.6 |
| amazon:2023 | bpftool | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) | 3.1.6, 3.1.7, 3.1.5 |
| amazon:2023 | perf6.12 | 0 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | kernel6.12-libbpf | 0 |
| amazon:2023 | kernel6.12-libbpf-devel | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) | 3.1.6, 3.1.5, 3.1.7 |
| amazon:2023 | kernel-devel | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | 3.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
References
- https://cert-portal.siemens.com/productcert/html/ssa-082556.html url
- https://cert-portal.siemens.com/productcert/html/ssa-253495.html url
- https://cert-portal.siemens.com/productcert/html/ssa-019113.html url
- https://cert-portal.siemens.com/productcert/html/ssa-457936.html url
- https://cert-portal.siemens.com/productcert/html/ssa-784472.html url