# CVE-2024-35899: netfilter: nf\_tables: flush pending destroy work before exit\_net release

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

- **Severity:** HIGH 7.3
- **CVSS:** 7.3 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: Required; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.26% (percentile 11, 2026-11-26)
- **CWE:** CWE-362
- **Published:** 2024-05-19T08:34:53.267Z
- **Modified:** 2026-10-15T01:17:51.550Z

## Who should check

- Anyone running Linux \>= 0935d558840099b3679c67bb7468dc78fcbad940, \< f4e14695fe805eb0f0cb36e0ad6a560b9f985e86; \>= 0935d558840099b3679c67bb7468dc78fcbad940, \< 46c4481938e2ca62343b16ea83ab28f4c1733d31; \>= 0935d558840099b3679c67bb7468dc78fcbad940, \< f7e3c88cc2a977c2b9a8aa52c1ce689e7b394e49; \>= 0935d558840099b3679c67bb7468dc78fcbad940, \< 4e8447a9a3d367b5065a0b7abe101da6e0037b6e; \>= 0935d558840099b3679c67bb7468dc78fcbad940, \< 333b5085522cf1898d5a0d92616046b414f631a7; \>= 0935d558840099b3679c67bb7468dc78fcbad940, \< d2c9eb19fc3b11caebafde4c30a76a49203d18a6; \>= 0935d558840099b3679c67bb7468dc78fcbad940, \< 24cea9677025e0de419989ecb692acd4bb34cac2
- Anyone running Linux 4.20

## Description

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

netfilter: nf\_tables: flush pending destroy work before exit\_net release

Similar to 2c9f0293280e ("netfilter: nf\_tables: flush pending destroy
work before netlink notifier") to address a race between exit\_net and
the destroy workqueue.

The trace below shows an element to be released via destroy workqueue
while exit\_net path (triggered via module removal) has already released
the set that is used in such transaction.

\[ 1360.547789\] BUG: KASAN: slab-use-after-free in nf\_tables\_trans\_destroy\_work+0x3f5/0x590 \[nf\_tables\]
\[ 1360.547861\] Read of size 8 at addr ffff888140500cc0 by task kworker/4:1/152465
\[ 1360.547870\] CPU: 4 PID: 152465 Comm: kworker/4:1 Not tainted 6.8.0+ \#359
\[ 1360.547882\] Workqueue: events nf\_tables\_trans\_destroy\_work \[nf\_tables\]
\[ 1360.547984\] Call Trace:
\[ 1360.547991\]  \<TASK\>
\[ 1360.547998\]  dump\_stack\_lvl+0x53/0x70
\[ 1360.548014\]  print\_report+0xc4/0x610
\[ 1360.548026\]  ? \_\_virt\_addr\_valid+0xba/0x160
\[ 1360.548040\]  ? \_\_pfx\_\_raw\_spin\_lock\_irqsave+0x10/0x10
\[ 1360.548054\]  ? nf\_tables\_trans\_destroy\_work+0x3f5/0x590 \[nf\_tables\]
\[ 1360.548176\]  kasan\_report+0xae/0xe0
\[ 1360.548189\]  ? nf\_tables\_trans\_destroy\_work+0x3f5/0x590 \[nf\_tables\]
\[ 1360.548312\]  nf\_tables\_trans\_destroy\_work+0x3f5/0x590 \[nf\_tables\]
\[ 1360.548447\]  ? \_\_pfx\_nf\_tables\_trans\_destroy\_work+0x10/0x10 \[nf\_tables\]
\[ 1360.548577\]  ? \_raw\_spin\_unlock\_irq+0x18/0x30
\[ 1360.548591\]  process\_one\_work+0x2f1/0x670
\[ 1360.548610\]  worker\_thread+0x4d3/0x760
\[ 1360.548627\]  ? \_\_pfx\_worker\_thread+0x10/0x10
\[ 1360.548640\]  kthread+0x16b/0x1b0
\[ 1360.548653\]  ? \_\_pfx\_kthread+0x10/0x10
\[ 1360.548665\]  ret\_from\_fork+0x2f/0x50
\[ 1360.548679\]  ? \_\_pfx\_kthread+0x10/0x10
\[ 1360.548690\]  ret\_from\_fork\_asm+0x1a/0x30
\[ 1360.548707\]  \</TASK\>

\[ 1360.548719\] Allocated by task 192061:
\[ 1360.548726\]  kasan\_save\_stack+0x20/0x40
\[ 1360.548739\]  kasan\_save\_track+0x14/0x30
\[ 1360.548750\]  \_\_kasan\_kmalloc+0x8f/0xa0
\[ 1360.548760\]  \_\_kmalloc\_node+0x1f1/0x450
\[ 1360.548771\]  nf\_tables\_newset+0x10c7/0x1b50 \[nf\_tables\]
\[ 1360.548883\]  nfnetlink\_rcv\_batch+0xbc4/0xdc0 \[nfnetlink\]
\[ 1360.548909\]  nfnetlink\_rcv+0x1a8/0x1e0 \[nfnetlink\]
\[ 1360.548927\]  netlink\_unicast+0x367/0x4f0
\[ 1360.548935\]  netlink\_sendmsg+0x34b/0x610
\[ 1360.548944\]  \_\_\_\_sys\_sendmsg+0x4d4/0x510
\[ 1360.548953\]  \_\_\_sys\_sendmsg+0xc9/0x120
\[ 1360.548961\]  \_\_sys\_sendmsg+0xbe/0x140
\[ 1360.548971\]  do\_syscall\_64+0x55/0x120
\[ 1360.548982\]  entry\_SYSCALL\_64\_after\_hwframe+0x55/0x5d

\[ 1360.548994\] Freed by task 192222:
\[ 1360.548999\]  kasan\_save\_stack+0x20/0x40
\[ 1360.549009\]  kasan\_save\_track+0x14/0x30
\[ 1360.549019\]  kasan\_save\_free\_info+0x3b/0x60
\[ 1360.549028\]  poison\_slab\_object+0x100/0x180
\[ 1360.549036\]  \_\_kasan\_slab\_free+0x14/0x30
\[ 1360.549042\]  kfree+0xb6/0x260
\[ 1360.549049\]  \_\_nft\_release\_table+0x473/0x6a0 \[nf\_tables\]
\[ 1360.549131\]  nf\_tables\_exit\_net+0x170/0x240 \[nf\_tables\]
\[ 1360.549221\]  ops\_exit\_list+0x50/0xa0
\[ 1360.549229\]  free\_exit\_list+0x101/0x140
\[ 1360.549236\]  unregister\_pernet\_operations+0x107/0x160
\[ 1360.549245\]  unregister\_pernet\_subsys+0x1c/0x30
\[ 1360.549254\]  nf\_tables\_module\_exit+0x43/0x80 \[nf\_tables\]
\[ 1360.549345\]  \_\_do\_sys\_delete\_module+0x253/0x370
\[ 1360.549352\]  do\_syscall\_64+0x55/0x120
\[ 1360.549360\]  entry\_SYSCALL\_64\_after\_hwframe+0x55/0x5d

(gdb) list \*\_\_nft\_release\_table+0x473
0x1e033 is in \_\_nft\_release\_table (net/netfilter/nf\_tables\_api.c:11354).
11349           list\_for\_each\_entry\_safe(flowtable, nf, &table-\>flowtables, list) {
11350                   list\_del(&flowtable-\>list);
11351                   nft\_use\_dec(&table-\>use);
11352                   nf\_tables\_flowtable\_destroy(flowtable);
11353           }
11354           list\_for\_each\_entry\_safe(set, ns, &table-\>sets, list) {
11355                   list\_del(&set-\>list);
11356                   nft\_use\_dec(&table-\>use);
11357                   if (set-\>flags & (NFT\_SET\_MAP \| NFT\_SET\_OBJECT))
11358                           nft\_map\_deactivat
---truncated---

## Affected and fixed versions

- Linux: \>= 0935d558840099b3679c67bb7468dc78fcbad940, \< f4e14695fe805eb0f0cb36e0ad6a560b9f985e86; \>= 0935d558840099b3679c67bb7468dc78fcbad940, \< 46c4481938e2ca62343b16ea83ab28f4c1733d31; \>= 0935d558840099b3679c67bb7468dc78fcbad940, \< f7e3c88cc2a977c2b9a8aa52c1ce689e7b394e49; \>= 0935d558840099b3679c67bb7468dc78fcbad940, \< 4e8447a9a3d367b5065a0b7abe101da6e0037b6e; \>= 0935d558840099b3679c67bb7468dc78fcbad940, \< 333b5085522cf1898d5a0d92616046b414f631a7; \>= 0935d558840099b3679c67bb7468dc78fcbad940, \< d2c9eb19fc3b11caebafde4c30a76a49203d18a6; \>= 0935d558840099b3679c67bb7468dc78fcbad940, \< 24cea9677025e0de419989ecb692acd4bb34cac2 (cvelist)
- Linux: 4.20 (cvelist)

## Mitigation

- Upgrade Linux to 24cea9677025e0de419989ecb692acd4bb34cac2 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-35899.md
Affected: Linux >= 0935d558840099b3679c67bb7468dc78fcbad940, < f4e14695fe805eb0f0cb36e0ad6a560b9f985e86; >= 0935d558840099b3679c67bb7468dc78fcbad940, < 46c4481938e2ca62343b16ea83ab28f4c1733d31; >= 0935d558840099b3679c67bb7468dc78fcbad940, < f7e3c88cc2a977c2b9a8aa52c1ce689e7b394e49; >= 0935d558840099b3679c67b…
Fixed in: Linux 46c4481938e2ca62343b16ea83ab28f4c1733d31, Linux 4e8447a9a3d367b5065a0b7abe101da6e0037b6e, Linux 333b5085522cf1898d5a0d92616046b414f631a7, Linux 24cea9677025e0de419989ecb692acd4bb34cac2

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-2024-35899 being exploited?

There is no confirmed exploitation: CVE-2024-35899 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.26% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-35899?

High: CVSS 7.3 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2024-35899?

Linux \>= 0935d558840099b3679c67bb7468dc78fcbad940, \< f4e14695fe805eb0f0cb36e0ad6a560b9f985e86; \>= 0935d558840099b3679c67bb7468dc78fcbad940, \< 46c4481938e2ca62343b16ea83ab28f4c1733d31; \>= 0935d558840099b3679c67bb7468dc78fcbad940, \< f7e3c88cc2a977c2b9a8aa52c1ce689e7b394e49; \>= 0935d558840099b3679c67bb7468dc78fcbad940, \< 4e8447a9a3d367b5065a0b7abe101da6e0037b6e; \>= 0935d558840099b3679c67bb7468dc78fcbad940, \< 333b5085522cf1898d5a0d92616046b414f631a7; \>= 0935d558840099b3679c67bb7468dc78fcbad940, \< d2c9eb19fc3b11caebafde4c30a76a49203d18a6; \>= 0935d558840099b3679c67bb7468dc78fcbad940, \< 24cea9677025e0de419989ecb692acd4bb34cac2; Linux 4.20.

### Is there a fix for CVE-2024-35899?

Yes. Fixed in Linux 46c4481938e2ca62343b16ea83ab28f4c1733d31, Linux 4e8447a9a3d367b5065a0b7abe101da6e0037b6e, Linux 333b5085522cf1898d5a0d92616046b414f631a7, Linux 24cea9677025e0de419989ecb692acd4bb34cac2. Upgrade Linux to 24cea9677025e0de419989ecb692acd4bb34cac2 or later.

### How do I check if I'm affected by CVE-2024-35899?

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/f4e14695fe805eb0f0cb36e0ad6a560b9f985e86>
- patch: <https://git.kernel.org/stable/c/46c4481938e2ca62343b16ea83ab28f4c1733d31>
- patch: <https://git.kernel.org/stable/c/f7e3c88cc2a977c2b9a8aa52c1ce689e7b394e49>
- patch: <https://git.kernel.org/stable/c/4e8447a9a3d367b5065a0b7abe101da6e0037b6e>
- patch: <https://git.kernel.org/stable/c/333b5085522cf1898d5a0d92616046b414f631a7>
- patch: <https://git.kernel.org/stable/c/d2c9eb19fc3b11caebafde4c30a76a49203d18a6>
- patch: <https://git.kernel.org/stable/c/24cea9677025e0de419989ecb692acd4bb34cac2>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-265688.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-2024-35899>

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