# CVE-2024-57801: net/mlx5e: Skip restore TC rules for vport rep without loaded flag

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2025-01-15T13:10:24.619Z
- Modified: 2026-08-05T11:46:35.806Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from d1569537a837d66620aa7ffc2bddf918e902f227 before 3e45dd1622a2c1a83c11bf42fdd8c1810123d6c0; from d1569537a837d66620aa7ffc2bddf918e902f227 before 47c78d3fc26e38ab805613a0f592dc8a820c7c64; from d1569537a837d66620aa7ffc2bddf918e902f227 before 5a03b368562a7ff5f5f1f63b5adf8309cbdbd5be; 6.6 (not affected: before 6.6; from 6.6.70 up to 6.6.*; from 6.12.9 up to 6.12.*; from 6.13 up to *)
- linux linux_kernel: from 6.6 before 6.6.70; from 6.7 before 6.12.9; 6.13

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- CISA-ADP: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/3e45dd1622a2c1a83c11bf42fdd8c1810123d6c0> (patch)
- <https://git.kernel.org/stable/c/47c78d3fc26e38ab805613a0f592dc8a820c7c64> (patch)
- <https://git.kernel.org/stable/c/5a03b368562a7ff5f5f1f63b5adf8309cbdbd5be> (patch)

## Sources

- CVE List: [CVE-2024-57801](https://www.cve.org/CVERecord?id=CVE-2024-57801), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-57801](https://nvd.nist.gov/vuln/detail/CVE-2024-57801), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-57801 · Whole record: https://cve.day/CVE-2024-57801.json · Rebuilt by cve.day 2026-11-25T22:58:51.050Z
