CVE-2024-35855: Vulnerability in Linux Linux
In the Linux kernel, the following vulnerability has been resolved: mlxsw: spectrum_acl_tcam: Fix possible use-after-free during activity update The rule activity update delayed work periodically traverses the list of configured rules and queries their activity from the device. As part of this task it accesses the entry pointed by 'ventry->entry', but this entry can be changed concurrently by the rehash delayed work, leading to a use-after-free [1]. Fix by closing the race and perform the activity query under the 'vregion->lock' mutex. [1] BUG: KASAN: slab-use-after-free in mlxsw_sp_acl_tcam_flower_rule_activity_get+0x121/0x140 Read of size 8 at addr ffff8881054ed808 by task kworker/0:18/181 CPU: 0 PID: 181 Comm: kworker/0:18 Not tainted 6.9.0-rc2-custom-00781-gd5ab772d32f7 #2 Hardware name: Mellanox Technologies Ltd. MSN3700/VMOD0005, BIOS 5.11 01/06/2019 Workqueue: mlxsw_core mlxsw_sp_acl_rule_activity_update_work Call Trace: <TASK> dump_stack_lvl+0xc6/0x120 print_report+0xce/0x670 kasan_report+0xd7/0x110 mlxsw_sp_acl_tcam_flower_rule_activity_get+0x121/0x140 mlxsw_sp_acl_rule_activity_update_work+0x219/0x400 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 1039: kasan_save_stack+0x33/0x60 kasan_save_track+0x14/0x30 __kasan_kmalloc+0x8f/0xa0 __kmalloc+0x19c/0x360 mlxsw_sp_acl_tcam_entry_create+0x7b/0x1f0 mlxsw_sp_acl_tcam_vchunk_migrate_all+0x30d/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 Freed by task 1039: 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_vchunk_migrate_all+0x3d7/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
AI Analysis
Technical Summary
CVE-2024-35855 is a use-after-free vulnerability identified in the Linux kernel's mlxsw (Mellanox switch) driver, specifically within the spectrum_acl_tcam component responsible for managing Access Control List (ACL) rules in hardware TCAM (Ternary Content-Addressable Memory). The vulnerability arises during the periodic activity update of ACL rules, where the delayed work task traverses the list of configured rules and queries their activity status from the device. Concurrently, a rehash delayed work can modify the entries, leading to a race condition where the pointer 'ventry->entry' may be freed and replaced while still being accessed. This results in a use-after-free condition, which is a memory safety flaw that can cause kernel crashes or potentially allow attackers to execute arbitrary code or escalate privileges if exploited. The root cause is the lack of proper synchronization between the activity update and rehash operations. The fix implemented involves introducing a mutex lock ('vregion->lock') to serialize access and prevent concurrent modification during the activity query, thereby closing the race condition. The vulnerability was identified through Kernel Address Sanitizer (KASAN) reports indicating slab-use-after-free errors during the execution of the mlxsw_sp_acl_tcam_flower_rule_activity_get function. The affected component is critical in networking hardware using Mellanox Technologies switches, such as the MSN3700 series. The vulnerability affects Linux kernel versions including the 6.9.0-rc2 release candidate and likely other versions incorporating the vulnerable mlxsw driver code. No known exploits are reported in the wild as of the publication date (May 17, 2024). No CVSS score has been assigned yet.
Potential Impact
For European organizations, this vulnerability poses a significant risk particularly to enterprises and data centers relying on Linux-based systems with Mellanox networking hardware for high-performance networking and switching. Exploitation could lead to kernel crashes causing denial of service (DoS), impacting availability of critical network infrastructure. More severe exploitation could allow attackers with local access or the ability to trigger the vulnerable code path to execute arbitrary code within the kernel context, potentially leading to privilege escalation and full system compromise. This is especially critical for cloud providers, telecommunications companies, and financial institutions in Europe that depend on stable and secure network operations. The vulnerability undermines the integrity and availability of network ACL enforcement, which could be leveraged to bypass security controls or disrupt traffic filtering. Given the kernel-level nature of the flaw, remediation delays could expose organizations to persistent risks. However, exploitation requires triggering specific kernel driver operations, suggesting that remote exploitation without prior access is less likely, but local or containerized environments with access to the vulnerable driver remain at risk.
Mitigation Recommendations
European organizations should prioritize updating their Linux kernels to versions that include the patch fixing CVE-2024-35855. Since the patch involves adding mutex locking to prevent race conditions, it is critical to deploy official kernel updates from trusted Linux distributions or Mellanox firmware updates where applicable. Network administrators should audit their infrastructure to identify systems running Mellanox switches with the vulnerable mlxsw driver and schedule maintenance windows for kernel upgrades. In environments where immediate patching is not feasible, organizations should restrict access to systems with Mellanox hardware to trusted users only and monitor kernel logs for suspicious activity or crashes related to mlxsw. Employing kernel hardening techniques such as Kernel Address Sanitizer (KASAN) in testing environments can help detect similar issues proactively. Additionally, organizations should implement strict network segmentation and access controls to limit the ability of unprivileged users or containers to interact with the vulnerable driver code paths. Regular vulnerability scanning and compliance checks should include verification of kernel versions and Mellanox driver updates.
Affected Countries
Germany, France, United Kingdom, Netherlands, Sweden, Finland, Italy, Spain
CVE-2024-35855: Vulnerability in Linux Linux
Description
In the Linux kernel, the following vulnerability has been resolved: mlxsw: spectrum_acl_tcam: Fix possible use-after-free during activity update The rule activity update delayed work periodically traverses the list of configured rules and queries their activity from the device. As part of this task it accesses the entry pointed by 'ventry->entry', but this entry can be changed concurrently by the rehash delayed work, leading to a use-after-free [1]. Fix by closing the race and perform the activity query under the 'vregion->lock' mutex. [1] BUG: KASAN: slab-use-after-free in mlxsw_sp_acl_tcam_flower_rule_activity_get+0x121/0x140 Read of size 8 at addr ffff8881054ed808 by task kworker/0:18/181 CPU: 0 PID: 181 Comm: kworker/0:18 Not tainted 6.9.0-rc2-custom-00781-gd5ab772d32f7 #2 Hardware name: Mellanox Technologies Ltd. MSN3700/VMOD0005, BIOS 5.11 01/06/2019 Workqueue: mlxsw_core mlxsw_sp_acl_rule_activity_update_work Call Trace: <TASK> dump_stack_lvl+0xc6/0x120 print_report+0xce/0x670 kasan_report+0xd7/0x110 mlxsw_sp_acl_tcam_flower_rule_activity_get+0x121/0x140 mlxsw_sp_acl_rule_activity_update_work+0x219/0x400 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 1039: kasan_save_stack+0x33/0x60 kasan_save_track+0x14/0x30 __kasan_kmalloc+0x8f/0xa0 __kmalloc+0x19c/0x360 mlxsw_sp_acl_tcam_entry_create+0x7b/0x1f0 mlxsw_sp_acl_tcam_vchunk_migrate_all+0x30d/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 Freed by task 1039: 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_vchunk_migrate_all+0x3d7/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
AI-Powered Analysis
Technical Analysis
CVE-2024-35855 is a use-after-free vulnerability identified in the Linux kernel's mlxsw (Mellanox switch) driver, specifically within the spectrum_acl_tcam component responsible for managing Access Control List (ACL) rules in hardware TCAM (Ternary Content-Addressable Memory). The vulnerability arises during the periodic activity update of ACL rules, where the delayed work task traverses the list of configured rules and queries their activity status from the device. Concurrently, a rehash delayed work can modify the entries, leading to a race condition where the pointer 'ventry->entry' may be freed and replaced while still being accessed. This results in a use-after-free condition, which is a memory safety flaw that can cause kernel crashes or potentially allow attackers to execute arbitrary code or escalate privileges if exploited. The root cause is the lack of proper synchronization between the activity update and rehash operations. The fix implemented involves introducing a mutex lock ('vregion->lock') to serialize access and prevent concurrent modification during the activity query, thereby closing the race condition. The vulnerability was identified through Kernel Address Sanitizer (KASAN) reports indicating slab-use-after-free errors during the execution of the mlxsw_sp_acl_tcam_flower_rule_activity_get function. The affected component is critical in networking hardware using Mellanox Technologies switches, such as the MSN3700 series. The vulnerability affects Linux kernel versions including the 6.9.0-rc2 release candidate and likely other versions incorporating the vulnerable mlxsw driver code. No known exploits are reported in the wild as of the publication date (May 17, 2024). No CVSS score has been assigned yet.
Potential Impact
For European organizations, this vulnerability poses a significant risk particularly to enterprises and data centers relying on Linux-based systems with Mellanox networking hardware for high-performance networking and switching. Exploitation could lead to kernel crashes causing denial of service (DoS), impacting availability of critical network infrastructure. More severe exploitation could allow attackers with local access or the ability to trigger the vulnerable code path to execute arbitrary code within the kernel context, potentially leading to privilege escalation and full system compromise. This is especially critical for cloud providers, telecommunications companies, and financial institutions in Europe that depend on stable and secure network operations. The vulnerability undermines the integrity and availability of network ACL enforcement, which could be leveraged to bypass security controls or disrupt traffic filtering. Given the kernel-level nature of the flaw, remediation delays could expose organizations to persistent risks. However, exploitation requires triggering specific kernel driver operations, suggesting that remote exploitation without prior access is less likely, but local or containerized environments with access to the vulnerable driver remain at risk.
Mitigation Recommendations
European organizations should prioritize updating their Linux kernels to versions that include the patch fixing CVE-2024-35855. Since the patch involves adding mutex locking to prevent race conditions, it is critical to deploy official kernel updates from trusted Linux distributions or Mellanox firmware updates where applicable. Network administrators should audit their infrastructure to identify systems running Mellanox switches with the vulnerable mlxsw driver and schedule maintenance windows for kernel upgrades. In environments where immediate patching is not feasible, organizations should restrict access to systems with Mellanox hardware to trusted users only and monitor kernel logs for suspicious activity or crashes related to mlxsw. Employing kernel hardening techniques such as Kernel Address Sanitizer (KASAN) in testing environments can help detect similar issues proactively. Additionally, organizations should implement strict network segmentation and access controls to limit the ability of unprivileged users or containers to interact with the vulnerable driver code paths. Regular vulnerability scanning and compliance checks should include verification of kernel versions and Mellanox driver updates.
Affected Countries
For access to advanced analysis and higher rate limits, contact root@offseq.com
Technical Details
- Data Version
- 5.1
- Assigner Short Name
- Linux
- Date Reserved
- 2024-05-17T13:50:33.106Z
- Cisa Enriched
- true
- Cvss Version
- null
- State
- PUBLISHED
Threat ID: 682d982ac4522896dcbe3682
Added to database: 5/21/2025, 9:08:58 AM
Last enriched: 6/29/2025, 4:41:35 PM
Last updated: 8/16/2025, 11:19:56 PM
Views: 14
Related Threats
CVE-2025-53948: CWE-415 Double Free in Santesoft Sante PACS Server
HighCVE-2025-52584: CWE-122 Heap-based Buffer Overflow in Ashlar-Vellum Cobalt
HighCVE-2025-46269: CWE-122 Heap-based Buffer Overflow in Ashlar-Vellum Cobalt
HighCVE-2025-54862: CWE-79 Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') in Santesoft Sante PACS Server
MediumCVE-2025-54759: CWE-79 Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') in Santesoft Sante PACS Server
MediumActions
Updates to AI analysis are available only with a Pro account. Contact root@offseq.com for access.
External Links
Need enhanced features?
Contact root@offseq.com for Pro access with improved analysis and higher rate limits.