CVE-2026-23231

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

7.8 high EPSS 1.03%

Published 4 Mar 2026 Updated 23 Nov 2026 CNA: Linux

Check your servers for CVE-2026-23231

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-23231 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

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.

Severity (CVSS)

7.8 high CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
low: an attack works without special conditions
Privileges required
low: the attacker needs an ordinary user account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 1.03%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 62.9% of all scored CVEs. Scores of 30 Nov 2026.

The assessment of CISA (SSVC, 16 Jun 2026):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
total: full control of the component or of its data

Weakness

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 91c7b38dc9f0de4f7f444b796d14476bc12df7bc, before d719eb1c1dd2e05dbcf5c45d580a4361fb42ba5b
affected from 91c7b38dc9f0de4f7f444b796d14476bc12df7bc, before 7e3de296af465b65fb941133459dcbdedab7f497
affected from 91c7b38dc9f0de4f7f444b796d14476bc12df7bc, before 2a6586ecfa4ce1413daaafee250d2590e05f1a33
affected from 91c7b38dc9f0de4f7f444b796d14476bc12df7bc, before 7017745068a9068904e1e7a1b170a5785647cc81
affected from 91c7b38dc9f0de4f7f444b796d14476bc12df7bc, before f3fe58ce37926a10115ede527d59b91bcc05400a
affected from 91c7b38dc9f0de4f7f444b796d14476bc12df7bc, before dbd0af8083dd201f07c49110b2ee93710abdff28
affected from 91c7b38dc9f0de4f7f444b796d14476bc12df7bc, before 2f9a4ffeb763aec822f8ff3d1e82202d27d46d4b
affected from 91c7b38dc9f0de4f7f444b796d14476bc12df7bc, before 71e99ee20fc3f662555118cf1159443250647533
Other versions: unaffected
Linux
affected 3.16
unaffected before 3.16
unaffected from 5.10.275 up to and including 5.10.*
unaffected from 5.15.226 up to and including 5.15.*
unaffected from 6.1.165 up to and including 6.1.*
unaffected from 6.6.128 up to and including 6.6.*
unaffected from 6.12.75 up to and including 6.12.*
unaffected from 6.18.14 up to and including 6.18.*
unaffected from 6.19.4 up to and including 6.19.*
unaffected 7.0 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-23231 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-23231

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-23231
trivy image --scanners vuln IMAGE | grep CVE-2026-23231

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2026-23231 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.