# CVE-2026-23231: netfilter: nf\_tables: fix use-after-free in nf\_tables\_addchain()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.59% (percentile 42, 2026-11-26)
- **CWE:** CWE-416
- **Aliases:** EDB-52549
- **Published:** 2026-03-04T12:58:42.029Z
- **Modified:** 2026-11-23T08:17:14.987Z

## Who should check

- Anyone running Linux \>= 91c7b38dc9f0de4f7f444b796d14476bc12df7bc, \< d719eb1c1dd2e05dbcf5c45d580a4361fb42ba5b; \>= 91c7b38dc9f0de4f7f444b796d14476bc12df7bc, \< 7e3de296af465b65fb941133459dcbdedab7f497; \>= 91c7b38dc9f0de4f7f444b796d14476bc12df7bc, \< 2a6586ecfa4ce1413daaafee250d2590e05f1a33; \>= 91c7b38dc9f0de4f7f444b796d14476bc12df7bc, \< 7017745068a9068904e1e7a1b170a5785647cc81; \>= 91c7b38dc9f0de4f7f444b796d14476bc12df7bc, \< f3fe58ce37926a10115ede527d59b91bcc05400a; \>= 91c7b38dc9f0de4f7f444b796d14476bc12df7bc, \< dbd0af8083dd201f07c49110b2ee93710abdff28; \>= 91c7b38dc9f0de4f7f444b796d14476bc12df7bc, \< 2f9a4ffeb763aec822f8ff3d1e82202d27d46d4b; \>= 91c7b38dc9f0de4f7f444b796d14476bc12df7bc, \< 71e99ee20fc3f662555118cf1159443250647533
- Anyone running Linux 3.16

## 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.

## Affected and fixed versions

- Linux: \>= 91c7b38dc9f0de4f7f444b796d14476bc12df7bc, \< d719eb1c1dd2e05dbcf5c45d580a4361fb42ba5b; \>= 91c7b38dc9f0de4f7f444b796d14476bc12df7bc, \< 7e3de296af465b65fb941133459dcbdedab7f497; \>= 91c7b38dc9f0de4f7f444b796d14476bc12df7bc, \< 2a6586ecfa4ce1413daaafee250d2590e05f1a33; \>= 91c7b38dc9f0de4f7f444b796d14476bc12df7bc, \< 7017745068a9068904e1e7a1b170a5785647cc81; \>= 91c7b38dc9f0de4f7f444b796d14476bc12df7bc, \< f3fe58ce37926a10115ede527d59b91bcc05400a; \>= 91c7b38dc9f0de4f7f444b796d14476bc12df7bc, \< dbd0af8083dd201f07c49110b2ee93710abdff28; \>= 91c7b38dc9f0de4f7f444b796d14476bc12df7bc, \< 2f9a4ffeb763aec822f8ff3d1e82202d27d46d4b; \>= 91c7b38dc9f0de4f7f444b796d14476bc12df7bc, \< 71e99ee20fc3f662555118cf1159443250647533 (cvelist)
- Linux: 3.16 (cvelist)

## Mitigation

- Upgrade Linux to 71e99ee20fc3f662555118cf1159443250647533 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-23231. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-23231.md
Affected: Linux >= 91c7b38dc9f0de4f7f444b796d14476bc12df7bc, < d719eb1c1dd2e05dbcf5c45d580a4361fb42ba5b; >= 91c7b38dc9f0de4f7f444b796d14476bc12df7bc, < 7e3de296af465b65fb941133459dcbdedab7f497; >= 91c7b38dc9f0de4f7f444b796d14476bc12df7bc, < 2a6586ecfa4ce1413daaafee250d2590e05f1a33; >= 91c7b38dc9f0de4f7f444b7…
Fixed in: Linux 7e3de296af465b65fb941133459dcbdedab7f497, Linux 2a6586ecfa4ce1413daaafee250d2590e05f1a33, Linux 7017745068a9068904e1e7a1b170a5785647cc81, Linux 2f9a4ffeb763aec822f8ff3d1e82202d27d46d4b, Linux 71e99ee20fc3f662555118cf1159443250647533

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-23231 being exploited?

There is no confirmed exploitation: CVE-2026-23231 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 0.59% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-23231?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-23231?

Linux \>= 91c7b38dc9f0de4f7f444b796d14476bc12df7bc, \< d719eb1c1dd2e05dbcf5c45d580a4361fb42ba5b; \>= 91c7b38dc9f0de4f7f444b796d14476bc12df7bc, \< 7e3de296af465b65fb941133459dcbdedab7f497; \>= 91c7b38dc9f0de4f7f444b796d14476bc12df7bc, \< 2a6586ecfa4ce1413daaafee250d2590e05f1a33; \>= 91c7b38dc9f0de4f7f444b796d14476bc12df7bc, \< 7017745068a9068904e1e7a1b170a5785647cc81; \>= 91c7b38dc9f0de4f7f444b796d14476bc12df7bc, \< f3fe58ce37926a10115ede527d59b91bcc05400a; \>= 91c7b38dc9f0de4f7f444b796d14476bc12df7bc, \< dbd0af8083dd201f07c49110b2ee93710abdff28; \>= 91c7b38dc9f0de4f7f444b796d14476bc12df7bc, \< 2f9a4ffeb763aec822f8ff3d1e82202d27d46d4b; \>= 91c7b38dc9f0de4f7f444b796d14476bc12df7bc, \< 71e99ee20fc3f662555118cf1159443250647533; Linux 3.16.

### Is there a fix for CVE-2026-23231?

Yes. Fixed in Linux 7e3de296af465b65fb941133459dcbdedab7f497, Linux 2a6586ecfa4ce1413daaafee250d2590e05f1a33, Linux 7017745068a9068904e1e7a1b170a5785647cc81, Linux 2f9a4ffeb763aec822f8ff3d1e82202d27d46d4b, Linux 71e99ee20fc3f662555118cf1159443250647533. Upgrade Linux to 71e99ee20fc3f662555118cf1159443250647533 or later.

### How do I check if I'm affected by CVE-2026-23231?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/2a6586ecfa4ce1413daaafee250d2590e05f1a33>
- patch: <https://git.kernel.org/stable/c/7017745068a9068904e1e7a1b170a5785647cc81>
- patch: <https://git.kernel.org/stable/c/f3fe58ce37926a10115ede527d59b91bcc05400a>
- patch: <https://git.kernel.org/stable/c/dbd0af8083dd201f07c49110b2ee93710abdff28>
- patch: <https://git.kernel.org/stable/c/2f9a4ffeb763aec822f8ff3d1e82202d27d46d4b>
- patch: <https://git.kernel.org/stable/c/71e99ee20fc3f662555118cf1159443250647533>
- exploit: <https://www.exploit-db.com/exploits/52549>
- other: <https://git.kernel.org/stable/c/d719eb1c1dd2e05dbcf5c45d580a4361fb42ba5b>
- other: <https://git.kernel.org/stable/c/7e3de296af465b65fb941133459dcbdedab7f497>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-082556.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-253495.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-019113.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-457936.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-784472.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-23231>
- Exploit-DB: Exploit metadata (ID and link only) from the Exploit Database <https://www.exploit-db.com/exploits/52549>

HTML: <https://flawdb.com/CVE-2026-23231> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-23231>
