# CVE-2026-23399: nf_tables: nft_dynset: fix possible stateful expression memleak in error path

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 9% of CVEs (2026-12-02)
- Published: 2026-03-28T07:16:09.888Z
- Modified: 2026-11-10T13:18:45.010Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

nf_tables: nft_dynset: fix possible stateful expression memleak in error path

If cloning the second stateful expression in the element via GFP_ATOMIC
fails, then the first stateful expression remains in place without being
released.

   unreferenced object (percpu) 0x607b97e9cab8 (size 16):
     comm "softirq", pid 0, jiffies 4294931867
     hex dump (first 16 bytes on cpu 3):
       00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     backtrace (crc 0):
       pcpu_alloc_noprof+0x453/0xd80
       nft_counter_clone+0x9c/0x190 [nf_tables]
       nft_expr_clone+0x8f/0x1b0 [nf_tables]
       nft_dynset_new+0x2cb/0x5f0 [nf_tables]
       nft_rhash_update+0x236/0x11c0 [nf_tables]
       nft_dynset_eval+0x11f/0x670 [nf_tables]
       nft_do_chain+0x253/0x1700 [nf_tables]
       nft_do_chain_ipv4+0x18d/0x270 [nf_tables]
       nf_hook_slow+0xaa/0x1e0
       ip_local_deliver+0x209/0x330

(As written by CVE List.)

## Affected

- Linux Linux: from 563125a73ac30d7036ae69ca35c40500562c1de4 before eb7bf413e59945df03d4567b73ce464eebe2f4ea; from 563125a73ac30d7036ae69ca35c40500562c1de4 before 4357dbb1d9c35ca0b4443d71c98a48e6666f7689; from 563125a73ac30d7036ae69ca35c40500562c1de4 before e6661add2d9c6913e1dad97336595e23a2bed195; from 563125a73ac30d7036ae69ca35c40500562c1de4 before d1354873cbe3b344899c4311ac05897fd83e3f21; from 563125a73ac30d7036ae69ca35c40500562c1de4 before 31641c682db73353e4647e40735c7f2a75ff58ef; from 563125a73ac30d7036ae69ca35c40500562c1de4 before c88a9fd26cee365bec932196f76175772a941cca; from 563125a73ac30d7036ae69ca35c40500562c1de4 before 0548a13b5a145b16e4da0628b5936baf35f51b43; 5.11 (not affected: before 5.11; from 5.15.209 up to 5.15.*; from 6.1.175 up to 6.1.*; from 6.6.136 up to 6.6.*; from 6.12.78 up to 6.12.*; from 6.18.20 up to 6.18.*; from 6.19.10 up to 6.19.*; from 7.0 up to *)
- linux linux_kernel: from 5.11.1 before 6.12.78; from 6.13 before 6.18.20; from 6.19 before 6.19.10; 5.11; 7.0

## References

- <https://git.kernel.org/stable/c/eb7bf413e59945df03d4567b73ce464eebe2f4ea>
- <https://git.kernel.org/stable/c/4357dbb1d9c35ca0b4443d71c98a48e6666f7689>
- <https://git.kernel.org/stable/c/e6661add2d9c6913e1dad97336595e23a2bed195>
- <https://git.kernel.org/stable/c/d1354873cbe3b344899c4311ac05897fd83e3f21> (patch)
- <https://git.kernel.org/stable/c/31641c682db73353e4647e40735c7f2a75ff58ef> (patch)
- <https://git.kernel.org/stable/c/c88a9fd26cee365bec932196f76175772a941cca> (patch)
- <https://git.kernel.org/stable/c/0548a13b5a145b16e4da0628b5936baf35f51b43> (patch)
- <https://cert-portal.siemens.com/productcert/html/ssa-019113.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-457936.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-784472.html>

## Sources

- CVE List: [CVE-2026-23399](https://www.cve.org/CVERecord?id=CVE-2026-23399), CVE Terms of Use, modified 2026-11-10
- NVD: [CVE-2026-23399](https://nvd.nist.gov/vuln/detail/CVE-2026-23399), Public domain, modified 2026-11-10

---

Page: https://cve.day/CVE-2026-23399 · Whole record: https://cve.day/CVE-2026-23399.json · Rebuilt by cve.day 2026-11-25T22:59:17.468Z
