Skip to main content

Linux Kernel CVE-2024-35899

HIGH
Race Condition (CWE-362)
2024-05-19 416baaa9-dc9f-4396-8d5f-8c081fb06d67
7.3
CVSS 3.1 · Vendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain local shell with CAP_NET_ADMIN
  2. Delivery
    Create nf_tables sets and queue element destruction via nfnetlink
  3. Exploit
    Trigger concurrent nf_tables module removal or namespace teardown
  4. Execution
    Race exit_net set-free against destroy workqueue access
  5. Persist
    Trigger slab-use-after-free on freed set memory
  6. Impact
    Read kernel memory or corrupt heap for privilege escalation

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V15 - Secure Coding and Architecture Concurrency control, locking
MITRE ATT&CK

1 technique across 1 tactic: Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires local system access and CAP_NET_ADMIN capability, which is needed to create nf_tables rules and sets via the nfnetlink Netlink socket interface. The race is triggered only when two concurrent events occur: (1) pending set element destruction transactions are queued in the nf_tables destroy workqueue, AND (2) the nf_tables module is being unloaded or a network namespace is torn down via the exit_net path. The CVSS UI:R metric reflects that module removal (an explicit privileged action) must occur concurrently - meaning either the attacker themselves triggers removal, or a concurrent administrative action creates the window. This vulnerability does NOT affect systems where nf_tables is not loaded or not actively used. Remote exploitation is impossible (AV:L). The key limiting factors are: local-only access, CAP_NET_ADMIN requirement (restricts to privileged or container-escaped attackers), inherent difficulty of winning kernel scheduling races reliably, and the need for a specific concurrent module lifecycle event.

Impact

The official CVSS 3.1 score of 7.3 with vector AV:L/AC:L/PR:L/UI:R likely overstates exploitability: AC:L is inconsistent with a workqueue race condition that inherently requires winning precise kernel scheduling timing, and a more accurate assessment places this at AC:H. The EPSS score of 0.01% (1st percentile) independently corroborates that no measurable exploitation is occurring. This CVE is absent from the CISA KEV catalog and no POC exploit code has been identified in provided intelligence. The local-only attack vector (AV:L) and CAP_NET_ADMIN requirement (PR:L) restrict the threat to attackers who already have a privileged foothold - remote exploitation is impossible by design. Despite high C/I/A scores (use-after-free theoretically enables kernel memory read/write primitives and privilege escalation), the combination of local-only access, privilege requirement, AC:H race condition complexity, and near-zero EPSS places this in the patch-on-next-cycle rather than emergency-response tier for most environments. The high impact scores remain valid if reliably triggered, particularly in multi-tenant or container environments where CAP_NET_ADMIN may be delegated to non-root users.

Exploit ScenarioDerived

A local attacker with CAP_NET_ADMIN capability (e.g., a privileged container user or low-privileged system account with net admin rights) creates nf_tables sets and queues element destruction transactions via the nfnetlink interface, then simultaneously triggers nf_tables module removal or network namespace teardown. If the destroy workqueue processes the pending transaction after exit_net has already freed the owning set, the attacker achieves a controlled slab-use-after-free read - readable kernel memory at the freed address (as shown by the 8-byte read in the KASAN trace) - which could be developed into an information leak or, with additional exploitation primitives, a privilege escalation to root. No public POC exploit code is known at time of analysis.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv3 – Aug 04, 2026

Use-after-free race condition in the Linux kernel netfilter nf_tables subsystem allows a local attacker with low privileges to trigger kernel memory corruption during module teardown. The race exists between the asynchronous destroy workqueue (nf_tables_trans_destroy_work) and the exit_net cleanup path (__nft_release_table), confirmed by KASAN stack traces captured on kernel 6.8.0+: when the nf_tables module is removed while pending set element destruction transactions remain queued, the exit_net path frees the owning set before the workqueue processes the element. No public exploit code has been identified and EPSS sits at 0.01%, reflecting negligible current exploitation probability; this is not in CISA KEV.

Earlier versions of this analysis (2)
v2 Aug 04, 2026 - 12:29 cvss changed CVSS 7.3

Use-after-free in the Linux kernel's nf_tables netfilter subsystem arises from a race condition between the module exit_net cleanup path and the pending destroy workqueue. When the nf_tables module is unloaded while transactions remain queued for deferred destruction, the exit_net path frees the underlying nftables sets via __nft_release_table before the destroy workqueue finishes processing those same objects, triggering a slab-use-after-free confirmed by a KASAN trace at nf_tables_trans_destroy_work+0x3f5. No public exploit has been identified and the EPSS score of 0.01% reflects negligible observed exploitation activity despite a CVSS 7.3 rating.

v1 Aug 04, 2026 - 12:28 cvss changed CVSS 7.3

Use-after-free in the Linux kernel's netfilter nf_tables subsystem allows a local attacker with CAP_NET_ADMIN to corrupt kernel memory by racing the exit_net module-removal path against the pending destroy workqueue. The destroy workqueue's nf_tables_trans_destroy_work accesses set memory that exit_net has already freed via __nft_release_table, producing a KASAN-confirmed slab-use-after-free at kernel address space. No public exploit has been identified at time of analysis, and EPSS sits at 0.01%, consistent with a kernel race that requires precise timing and local access rather than remote opportunistic exploitation.

RemediationAI

Patches are available via seven commits to the Linux kernel stable tree, resolving the race by flushing pending destroy work before the exit_net path releases nf_tables resources. Key upstream commits include https://git.kernel.org/stable/c/24cea9677025e0de419989ecb692acd4bb34cac2, https://git.kernel.org/stable/c/333b5085522cf1898d5a0d92616046b414f631a7, https://git.kernel.org/stable/c/46c4481938e2ca62343b16ea83ab28f4c1733d31, https://git.kernel.org/stable/c/4e8447a9a3d367b5065a0b7abe101da6e0037b6e, https://git.kernel.org/stable/c/d2c9eb19fc3b11caebafde4c30a76a49203d18a6, https://git.kernel.org/stable/c/f4e14695fe805eb0f0cb36e0ad6a560b9f985e86, and https://git.kernel.org/stable/c/f7e3c88cc2a977c2b9a8aa52c1ce689e7b394e49. No precise fixed kernel release version number (e.g., 6.8.x) was confirmed in available data - consult your distribution for the exact patched package version. Debian users should apply the LTS update at https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html. Where immediate patching is not feasible, restricting CAP_NET_ADMIN to only trusted users and processes via Linux capability controls or seccomp profiles reduces exposure by preventing untrusted actors from creating nf_tables state; note this does not eliminate the race for privileged users who legitimately rely on nf_tables.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability resides in net/netfilter/nf_tables_api.c within the Linux kernel's nf_tables framework - the successor to iptables that provides a flexible, kernel-side packet classification engine accessed via the nfnetlink netlink socket family. The root cause is CWE-362 (Concurrent Execution Using Shared Resource with Improper Synchronization): nf_tables defers element cleanup to an asynchronous workqueue (nf_tables_trans_destroy_work), but the exit_net teardown path in nf_tables_exit_net() calls __nft_release_table() to free sets without first flushing that workqueue. The result is a classic TOCTOU slab-use-after-free - the workqueue reads a set pointer at nf_tables_trans_destroy_work+0x3f5 that exit_net already freed via kfree inside __nft_release_table+0x473 (nf_tables_api.c:11354). The fix mirrors the earlier fix in commit 2c9f0293280e ('netfilter: nf_tables: flush pending destroy work before netlink notifier') by inserting a flush_work() call before the exit_net resource release. CPE data confirms impact across multiple Linux kernel stable branches including 6.9-rc1 and 6.9-rc2, as well as Debian Linux 10.0.

Know when Debian Linux gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67) PRIMARY 7.3 HIGH
AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
vuln.today AI 7.0 HIGH

Race condition requires precise kernel scheduling timing (AC:H); CAP_NET_ADMIN needed for nf_tables operations (PR:L); attacker can control both sides of the race without separate user interaction (UI:N).

3.1 AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67).

CVSS VectorVendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

6
Analysis Updated
Aug 04, 2026 - 12:31 vuln.today
v3 - CVSS changed
Analysis Updated
Aug 04, 2026 - 12:29 vuln.today
v2 - CVSS changed
Analysis Updated
Aug 04, 2026 - 12:28 vuln.today
v1 - CVSS changed
Severity Changed
Aug 04, 2026 - 11:23 NVD
MEDIUM HIGH
CVSS changed
Aug 04, 2026 - 11:23 NVD
6.1 (MEDIUM) 7.3 (HIGH)
CVE Published
May 19, 2024 - 09:15 cve.org
MEDIUM 6.1

DescriptionCVE.org

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

Executive ViewAI

Why It Matters

A use-after-free race condition in the Linux kernel netfilter nf_tables subsystem (CVE-2024-35899) allows local, low-privilege users to trigger kernel memory corruption during module teardown, potentially causing denial of service or system compromise. This affects all Linux-based infrastructure running kernel versions 6.8.0 and later with nf_tables enabled, requiring immediate patching to eliminate this attack vector.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.0%
Top 99% exploitable
Prevalence
Ubiquitous
Linux kernel underpins the majority of servers, cloud VMs, and embedded devices
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Race conditions occur when multiple concurrent requests exploit the brief time gap between checking a condition and acting upon it (TOCTOU - Time of Check, Time of Use).

Affected Products (CPE)CVE.org

cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.9:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.9:rc2:*:*:*:*:*:*
cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
CVE-2021-44228 CRITICAL POC
10.0 Dec 10

Apache Log4j2 contains a critical JNDI injection vulnerability known as 'Log4Shell' that allows unauthenticated remote c

CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2014-6271 CRITICAL POC
9.8 Sep 24

GNU Bash through 4.3 processes trailing strings after function definitions in the values of environment variables, which

CVE-2017-7494 CRITICAL POC
9.8 May 30

Samba since version 3.5.0 and before 4.6.4, 4.5.10 and 4.4.14 is vulnerable to remote code execution vulnerability, allo

CVE-2012-0507 CRITICAL POC
9.8 Jun 07

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2022-30333 HIGH POC
7.5 May 09

RARLAB UnRAR before 6.12 on Linux and UNIX allows directory traversal to write to files during an extract (aka unpack) o

CVE-2016-3714 HIGH POC
8.4 May 05

The (1) EPHEMERAL, (2) HTTPS, (3) MVG, (4) MSL, (5) TEXT, (6) SHOW, (7) WIN, and (8) PLT coders in ImageMagick before 6.

CVE-2017-12617 HIGH POC
8.1 Oct 04

When running Apache Tomcat versions 9.0.0.M1 to 9.0.0, 8.5.0 to 8.5.22, 8.0.0.RC1 to 8.0.46 and 7.0.0 to 7.0.81 with HTT

CVE-2020-1938 CRITICAL POC
9.8 Feb 24

When using the Apache JServ Protocol (AJP), care must be taken when trusting incoming connections to Apache Tomcat. Rate

CVE-2018-7602 CRITICAL POC
9.8 Jul 19

A remote code execution vulnerability exists within multiple subsystems of Drupal 7.x and 8.x. Rated critical severity (

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy