Skip to main content

Linux Kernel CVE-2024-35854

HIGH
Use After Free (CWE-416)
2024-05-17 416baaa9-dc9f-4396-8d5f-8c081fb06d67
7.8
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. Recon
    Obtain local low-privilege access
  2. Delivery
    Manipulate tc ACL flower filter rules
  3. Exploit
    Trigger TCAM rehash workqueue execution
  4. Install
    Induce migration failure with non-negative credits
  5. C2
    Driver frees source region prematurely
  6. Execute
    Read/write freed kernel slab memory
  7. Impact
    Escalate privileges or crash kernel

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK

2 techniques across 2 tactics: Execution, 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: (1) local access to the target system with at minimum low-privilege credentials (CVSS PR:L); (2) the Linux kernel mlxsw driver loaded and a Mellanox Spectrum network device present and active - systems without this hardware are entirely unaffected; (3) the ability to manipulate ACL filter rules via tc (traffic control), which typically requires CAP_NET_ADMIN or equivalent, potentially limiting exploitation to privileged-but-not-root users in some configurations. The vulnerability is triggered inside the mlxsw_sp_acl_tcam_vregion_rehash_work kernel workqueue handler, not through any network-accessible interface. No network-facing exploitation path exists. The migration failure condition that precipitates the use-after-free is not trivially induced and depends on internal driver state, limiting opportunistic exploitation.

Impact

The NVD CVSS 7.8 score (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) assigns high impact and low complexity, but this warrants scrutiny. Inducing the precise failure condition - a rehash migration that fails while leaving non-negative credits - requires manipulation of ACL filter rules and is dependent on internal scheduler state, suggesting real-world complexity is higher than AC:L implies. The EPSS score of 0.94% (57th percentile) corroborates this: despite a 7.8 CVSS, the probability of exploitation in the next 30 days is low. There is no CISA KEV listing and no identified public proof-of-concept. The hardware dependency (Mellanox Spectrum NICs/switches with mlxsw driver loaded) substantially narrows the attack surface to datacenter and enterprise networking environments; typical servers, workstations, and cloud VMs are unaffected. For operators of Mellanox Spectrum infrastructure, this is an elevated-priority local privilege escalation requiring kernel patching; for all others, the practical risk is negligible.

Exploit ScenarioDerived

A local user with standard account access on a Linux host running the mlxsw driver for Mellanox Spectrum hardware manipulates tc flower ACL filter rules to trigger a TCAM rehash operation, then contrives conditions (e.g., resource exhaustion or policy conflicts) that cause the migration to fail while returning non-negative credits. The workqueue handler then frees the source TCAM region while active filter objects retain pointers to it; a subsequent filter deletion operation reads the freed memory, producing kernel memory corruption that an attacker may exploit for privilege escalation. No public proof-of-concept exploit has been identified at time of analysis.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.9% 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 in the Linux kernel's mlxsw Mellanox Spectrum ACL TCAM rehash path allows a local attacker with low privileges to corrupt kernel memory, enabling potential privilege escalation on systems running the affected Mellanox switch driver. The flaw arises because a failed filter migration during the rehash workqueue handler can produce a non-negative credit count - a condition previously assumed to indicate only successful completion - causing the source TCAM region to be freed while active filter entries still hold live references to it. With no CISA KEV listing, no known public exploit, and an EPSS of 0.94%, real-world exploitation risk is constrained by the requirement for Mellanox Spectrum hardware and local system access.

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

Use-after-free in the Linux kernel's mlxsw Spectrum ACL TCAM rehash subsystem allows a local authenticated attacker on systems with Mellanox Spectrum-series switching ASICs to corrupt kernel heap memory, potentially escalating privileges to root. The flaw lies in the rehash delayed work incorrectly treating a non-negative credit count as proof of successful filter migration when it can also signal a failed migration, causing the source TCAM region to be freed while live filter references remain - confirmed by a KASAN slab-use-after-free trace on Linux 6.9-rc2. No public exploit code or CISA KEV listing exists at time of analysis, and EPSS of 0.94% reflects limited exploitation likelihood despite the high CVSS score.

v1 Aug 04, 2026 - 12:37 cvss changed CVSS 7.8

Use-after-free in the Linux kernel's mlxsw Spectrum ACL TCAM driver allows a local low-privileged attacker on systems with Mellanox Spectrum hardware to corrupt kernel heap memory by triggering a flawed TCAM region rehash logic. The rehash workqueue incorrectly destroys the source TCAM region when migration fails - because a non-negative credit count is mistakenly treated as indicating success - leaving active filter pointers referencing freed memory. No public exploit exists and the vulnerability is absent from CISA KEV, but the kernel-level UAF with C:H/I:H/A:H impact means successful exploitation could achieve full system compromise on affected hardware.

RemediationAI

Upstream fixes are available as patches committed to multiple Linux stable branches; administrators should update to a kernel version incorporating commits 311eeaa7b9e2, 4c89642ca47f, 54225988889931, 813e2ab753a8f8, a02687044e12, a429a912d6c7, and e118e7ea24d1, all accessible at https://git.kernel.org/stable/. Debian users should apply the kernel security update referenced in https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html. Exact patched kernel release version numbers beyond the upstream commits are not independently confirmed in the provided data. As a compensating control where immediate patching is not feasible, administrators can restrict local user access to systems running the mlxsw driver (reducing the PR:L attack surface), prevent unprivileged users from manipulating tc flower filter rules via Linux capabilities controls (CAP_NET_ADMIN restriction), or unload the mlxsw kernel module on hosts where Mellanox Spectrum hardware is not operationally required - noting that unloading the driver will disable the associated network interfaces.

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 the mlxsw driver subsystem (drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c), which manages ACL policy enforcement on Mellanox Spectrum ASICs via a software abstraction over the hardware TCAM. During a rehash operation dispatched as a deferred kernel workqueue task (mlxsw_sp_acl_tcam_vregion_rehash_work), the driver migrates ACL filter entries from one TCAM region to another using a credit-based progress counter. The logic incorrectly treats a non-negative credit balance as unambiguous proof of completion and destroys the source region, but a partially failed migration can also leave a non-negative balance. This violates the object lifetime contract for the region structure, producing a CWE-416 (Use After Free) condition confirmed by a KASAN slab-use-after-free report: a subsequent read of the freed region struct at mlxsw_sp_acl_ctcam_region_entry_remove+0x21d triggers the crash. CPE data identifies affected versions spanning multiple stable Linux kernel branches and 6.9-rc1 through 6.9-rc4.

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.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 7.0 HIGH

AC raised to H because inducing the specific migration-failure-with-non-negative-credits condition requires non-trivial timing and ACL rule manipulation beyond attacker-controlled inputs alone.

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:N/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
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

5
Analysis Updated
Aug 04, 2026 - 12:39 vuln.today
v3 - CVSS changed
Analysis Updated
Aug 04, 2026 - 12:37 vuln.today
v2 - CVSS changed
Analysis Updated
Aug 04, 2026 - 12:37 vuln.today
v1 - CVSS changed
CVSS changed
Aug 04, 2026 - 11:23 NVD
8.8 (HIGH) 7.8 (HIGH)
CVE Published
May 17, 2024 - 15:15 cve.org
HIGH 8.8

DescriptionCVE.org

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

mlxsw: spectrum_acl_tcam: Fix possible use-after-free during rehash

The rehash delayed work migrates filters from one region to another according to the number of available credits.

The migrated from region is destroyed at the end of the work if the number of credits is non-negative as the assumption is that this is indicative of migration being complete. This assumption is incorrect as a non-negative number of credits can also be the result of a failed migration.

The destruction of a region that still has filters referencing it can result in a use-after-free [1].

Fix by not destroying the region if migration failed.

[1] BUG: KASAN: slab-use-after-free in mlxsw_sp_acl_ctcam_region_entry_remove+0x21d/0x230 Read of size 8 at addr ffff8881735319e8 by task kworker/0:31/3858

CPU: 0 PID: 3858 Comm: kworker/0:31 Tainted: G W 6.9.0-rc2-custom-00782-gf2275c2157d8 #5 Hardware name: Mellanox Technologies Ltd. MSN3700/VMOD0005, BIOS 5.11 01/06/2019 Workqueue: mlxsw_core mlxsw_sp_acl_tcam_vregion_rehash_work Call Trace: <TASK> dump_stack_lvl+0xc6/0x120 print_report+0xce/0x670 kasan_report+0xd7/0x110 mlxsw_sp_acl_ctcam_region_entry_remove+0x21d/0x230 mlxsw_sp_acl_ctcam_entry_del+0x2e/0x70 mlxsw_sp_acl_atcam_entry_del+0x81/0x210 mlxsw_sp_acl_tcam_vchunk_migrate_all+0x3cd/0xb50 mlxsw_sp_acl_tcam_vregion_rehash_work+0x157/0x1300 process_one_work+0x8eb/0x19b0 worker_thread+0x6c9/0xf70 kthread+0x2c9/0x3b0 ret_from_fork+0x4d/0x80 ret_from_fork_asm+0x1a/0x30 </TASK>

Allocated by task 174: kasan_save_stack+0x33/0x60 kasan_save_track+0x14/0x30 __kasan_kmalloc+0x8f/0xa0 __kmalloc+0x19c/0x360 mlxsw_sp_acl_tcam_region_create+0xdf/0x9c0 mlxsw_sp_acl_tcam_vregion_rehash_work+0x954/0x1300 process_one_work+0x8eb/0x19b0 worker_thread+0x6c9/0xf70 kthread+0x2c9/0x3b0 ret_from_fork+0x4d/0x80 ret_from_fork_asm+0x1a/0x30

Freed by task 7: kasan_save_stack+0x33/0x60 kasan_save_track+0x14/0x30 kasan_save_free_info+0x3b/0x60 poison_slab_object+0x102/0x170 __kasan_slab_free+0x14/0x30 kfree+0xc1/0x290 mlxsw_sp_acl_tcam_region_destroy+0x272/0x310 mlxsw_sp_acl_tcam_vregion_rehash_work+0x731/0x1300 process_one_work+0x8eb/0x19b0 worker_thread+0x6c9/0xf70 kthread+0x2c9/0x3b0 ret_from_fork+0x4d/0x80 ret_from_fork_asm+0x1a/0x30

Executive ViewAI

Why It Matters

A use-after-free vulnerability in Mellanox Spectrum Linux kernel drivers (CVE-2024-35854) allows local system users to corrupt kernel memory and escalate privileges. Organizations operating Mellanox Spectrum switches must apply available patches to prevent internal actors or compromised accounts from gaining system-level access.

Business Impact: Medium
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.9%
Top 43% exploitable
Prevalence
Low
Requires Mellanox Spectrum switch hardware with mlxsw driver active
Data Quality
3 sources
Confidence: Low

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.9%
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
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
Medium

Priority Score

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

Attack Technique

Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

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

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:linux:linux_kernel:6.9:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.9:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.9:rc5:*:*:*:*:*:*
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