CVE-2024-57801·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: net/mlx5e: Skip restore TC rules for vport rep without loaded flag During driver unload, unregister_netdev is called after unloading vport rep. So, the mlx5e_rep_priv is already freed while trying to get rpriv->netdev, or walk rpriv->tc_ht, which results in use-after-free. So add the checking to make sure access the data of vport rep which is still loaded.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.12.9
- Published
- 2025-01-15
Affected versions
From: 6.7
Until: 6.12.9
Fixed in: 6.12.9
How to fix this CVE
Update your Linux kernel to version 6.12.9 or later to resolve this use-after-free vulnerability in the MLX5 Ethernet driver's vport representation layer. This fix prevents kernel crashes and potential privilege escalation during driver unload operations. Reboot your system after applying the kernel update to ensure the patched version is active.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your current kernel version with: uname -r
- Step 2: Compare against the vulnerable range (6.7 through 6.12.8) — if your version falls within this range, you are vulnerable
- Step 3: Verify MLX5 driver is loaded with: lsmod | grep mlx5
- Step 4: After patching, reboot and confirm new kernel is active with: uname -r (should be 6.12.9 or later)
- Step 5: Check for any kernel panic logs related to mlx5e_rep or use-after-free with: dmesg | grep -i 'mlx5e_rep\|use-after-free'
FAQ
What is CVE-2024-57801?
This vulnerability is a use-after-free condition in the Linux kernel's MLX5 Ethernet driver that occurs when vport representation rules are restored after the driver has already freed the associated memory structures during unload, potentially causing kernel crashes.
Is CVE-2024-57801 being actively exploited?
No, this vulnerability is not listed in CISA's Known Exploited Vulnerabilities catalog and has no public proof-of-concept exploits available.
What versions of Kernel are affected by CVE-2024-57801?
Linux kernel versions 6.7 through 6.12.8 are vulnerable; version 6.12.9 and later include the fix.
How do I check if my server is vulnerable to CVE-2024-57801?
Run 'uname -r' to get your kernel version and compare it against the range 6.7-6.12.8. If your version falls within this range and you have MLX5 hardware (verify with 'lsmod | grep mlx5'), your system is vulnerable.
Does Defensia detect CVE-2024-57801?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Linux kernel is installed on a monitored server, CVE-2024-57801 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-57801. Free for 1 server.
Get started free