CVE-2024-57801
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2024-57801 is a use-after-free vulnerability discovered in the Linux kernel's network driver component. The vulnerability affects the net/mlx5e driver, specifically during the driver unload process when handling vport representative TC rules. The issue was identified and disclosed on January 15, 2025, affecting Linux kernel versions from 6.6 up to 6.6.70, 6.7 up to 6.12.9, and 6.13-rc1 through 6.13-rc5 (NVD).

Technical details

The vulnerability occurs during driver unload when unregisternetdev is called after unloading vport rep. At this point, the mlx5ereppriv is already freed while the system attempts to access rpriv->netdev or walk rpriv->tcht, resulting in a use-after-free condition. The vulnerability has been assigned a CVSS v3.1 base score of 7.8 (High), with the vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, indicating local access requirements but high impact potential (NVD).

Impact

The use-after-free vulnerability could potentially lead to system crashes, memory corruption, or privilege escalation in affected Linux systems. The high CVSS score of 7.8 indicates that successful exploitation could result in complete compromise of system confidentiality, integrity, and availability (NVD).

Mitigation and workarounds

The vulnerability has been patched in the Linux kernel through a fix that adds checking to ensure access to vport rep data only occurs while it is still loaded. The fix was implemented through commit 5a03b368562a7ff5f5f1f63b5adf8309cbdbd5be. Users are advised to update their Linux kernel to versions containing this fix (Kernel Patch).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management