CVE-2024-57801
JSON

7.8high

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

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.22% (higher than 13% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 *
CVE List
linux linux_kernelfrom 6.6 before 6.6.70, from 6.7 before 6.12.9, 6.13NVD

All scores

Linux7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CISA-ADP7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-416

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: net/mlx5e: Omitir reglas de restauración de TC para vport rep sin indicador cargado Durante la descarga del controlador, se llama a unregister_netdev después de descargar vport rep. Por lo tanto, mlx5e_rep_priv ya está liberado al intentar obtener rpriv->netdev, o recorrer rpriv->tc_ht, lo que da como resultado un use-after-free. Por lo tanto, agregue la verificación para asegurarse de acceder a los datos de vport rep que aún están cargados.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-57801 changed 2026-08-05CVE Terms of Use
NVDCVE-2024-57801 changed 2026-06-17Public domain