CVE-2024-57801

net/mlx5e: Skip restore TC rules for vport rep without loaded flag

State
Published
Severity
7.8 High
Published
Jan 15, 2025
Updated
Aug 5, 2026
Reserved
Jan 15, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HCISA-ADP

Weaknesses

Affected Products

ProductVersions
LinuxLinux
  • d1569537a837d66620aa7ffc2bddf918e902f227 to before 3e45dd1622a2c1a83c11bf42fdd8c1810123d6c0Affected
  • d1569537a837d66620aa7ffc2bddf918e902f227 to before 47c78d3fc26e38ab805613a0f592dc8a820c7c64Affected
  • d1569537a837d66620aa7ffc2bddf918e902f227 to before 5a03b368562a7ff5f5f1f63b5adf8309cbdbd5beAffected
LinuxLinux
  • 6.6Affected
  • before 6.6Not affected
  • 6.6.70 through 6.6.*Not affected
  • 6.12.9 through 6.12.*Not affected
  • 6.13 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.