net/mlx5e: Skip restore TC rules for vport rep without loaded flag
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.12.9, 6.6.70
- CVEs
- CVE-2024-57801
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 14:46 UTC · Revision 1
Source evidence
net/mlx5e: Skip restore TC rules for vport rep without loaded flag
core-osv · Original sourcePublished 15 Jan 2025, 13:10 UTC
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.
osv:CVE-2024-57801
Kernel
Fixed versions: 6.6.70, 6.12.9
Complete source record
{
"id": "0d6b29817cd35abd07b4de1819e25d62db3d059da2c323d5444c2740be3881aa",
"url": "https://osv.dev/vulnerability/CVE-2024-57801",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "net/mlx5e: Skip restore TC rules for vport rep without loaded flag",
"summary": "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.",
"evidence": "osv:CVE-2024-57801",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.6.70",
"evidence": "/affected/1/ranges"
},
{
"value": "6.12.9",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "CVE-2024-57801",
"aliases": [
"CVE-2024-57801"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "d1569537a837d66620aa7ffc2bddf918e902f227"
},
{
"fixed": "3e45dd1622a2c1a83c11bf42fdd8c1810123d6c0"
},
{
"fixed": "47c78d3fc26e38ab805613a0f592dc8a820c7c64"
},
{
"fixed": "5a03b368562a7ff5f5f1f63b5adf8309cbdbd5be"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-57801.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.6.0"
},
{
"fixed": "6.6.70"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.12.9"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-57801.json"
}
}
],
"modified": "2026-10-28T02:30:29.718151841Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/3e45dd1622a2c1a83c11bf42fdd8c1810123d6c0",
"https://git.kernel.org/stable/c/47c78d3fc26e38ab805613a0f592dc8a820c7c64",
"https://git.kernel.org/stable/c/5a03b368562a7ff5f5f1f63b5adf8309cbdbd5be",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/57xxx/CVE-2024-57801.json",
"https://nvd.nist.gov/vuln/detail/CVE-2024-57801",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/57xxx/CVE-2024-57801.json"
}
},
"related_cves": [
{
"value": "CVE-2024-57801",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 496481,
"published_at": "2025-01-15T13:10:24.619+00:00"
}