What’s Vulnerable › Vulnerabilities
CVE-2024-57801: net/mlx5e: Skip restore TC rules for vport rep without loaded flag
- Severity: high (CVSS 7.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-01-15 · updated 2026-06-17
- Weakness: CWE-416
Description
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.
Affected products
- Linux kernel: from 6.6 before 6.6.70; from 6.7 before 6.12.9; 6.13-rc1, 6.13-rc2, 6.13-rc3, 6.13-rc4, 6.13-rc5 — fixed in 6.12.9, 6.6.70
How to fix
Upgrade to a fixed version: Linux kernel 6.12.9, 6.6.70. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/3e45dd1622a2c1a83c11bf42fdd8c1810123d6c0
- https://git.kernel.org/stable/c/47c78d3fc26e38ab805613a0f592dc8a820c7c64
- https://git.kernel.org/stable/c/5a03b368562a7ff5f5f1f63b5adf8309cbdbd5be
Get alerted when CVE-2024-57801 or the next vulnerability affects your stack