{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2024-45019",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2024-08-21T05:34:56.683Z",
        "datePublished": "2024-09-11T15:13:53.933Z",
        "dateUpdated": "2026-08-05T11:37:43.782Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-08-05T11:37:43.782Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet/mlx5e: Take state lock during tx timeout reporter\n\nmlx5e_safe_reopen_channels() requires the state lock taken. The\nreferenced changed in the Fixes tag removed the lock to fix another\nissue. This patch adds it back but at a later point (when calling\nmlx5e_safe_reopen_channels()) to avoid the deadlock referenced in the\nFixes tag."
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                        "baseScore": 7.8,
                        "baseSeverity": "HIGH"
                    },
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "AV:L - The defect is a missing mutex in the mlx5e driver's local error-recovery path; the racing accesses come from local interfaces (`ndo_get_stats64` via /proc/net/dev, ip -s link, ethtool/netlink stats) rather than from parsing remote data. No remote peer input reaches the vulnerable function.\nAC:L - No lock is taken at all, and the unprotected window spans a full channel teardown/rebuild (firmware commands plus synchronize_net()), so the attacker-controlled side of the race — continuously requeuing `mlx5e_update_stats_work()` by looping on unprivileged stats reads — hits it reliably rather than depending on a narrow timing window.\nPR:L - Driving the racing `state_lock` holder requires only an unprivileged local account: `mlx5e_get_stats()` queues `mlx5e_update_stats_work()` and is reachable from `cat /proc/net/dev`, `ip -s link`, or `/sys/class/net/*/statistics/*` with no capability check.\nUI:N - The recovery work runs from a kernel workqueue and the stats path is driven entirely by the attacker's own reads; no victim action is required.\nS:U - The corrupted objects (`priv->channels`, `mlx5e_channel`, `mlx5e_selq`) all belong to the kernel's own security authority; no VM, IOMMU, or sandbox boundary is crossed.\nC:H - `mlx5e_close_channels()` kvfree()s each channel and kfree()s the `chs->c` array while the concurrent stats worker still dereferences them, giving a use-after-free read of slab memory that the attacker can groom (the same path immediately reallocates channels), which can be leveraged to disclose kernel memory.\nI:H - The same use-after-free on freed and reallocated channel/SQ/RQ objects yields attacker-influenceable pointer dereferences, and the unsynchronized `mlx5e_selq_prepare_params()`/`mlx5e_selq_apply()` sequence can publish inconsistent queue-selection parameters — both are exploitable for memory corruption.\nA:H - The race reliably produces a use-after-free/inconsistent `priv->channels` state leading to an oops or NIC-recovery failure (plus lockdep/WARN splats), taking down the network device and potentially the machine."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/net/ethernet/mellanox/mlx5/core/en/reporter_tx.c"
                    ],
                    "versions": [
                        {
                            "version": "514232495aa523641febaa58b687fe6df1cd0b73",
                            "lessThan": "03d3734bd692affe4d0e9c9d638f491aaf37411b",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "8ce3d969348a7c7fa3469588eb1319f9f3cc0eaa",
                            "lessThan": "b3b9a87adee97854bcd71057901d46943076267e",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "eab0da38912ebdad922ed0388209f7eb0a5163cd",
                            "lessThan": "8e57e66ecbdd2fddc9fbf3e984b1c523b70e9809",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "eab0da38912ebdad922ed0388209f7eb0a5163cd",
                            "lessThan": "e6b5afd30b99b43682a7764e1a74a42fe4d5f4b3",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "6.1.69",
                            "lessThan": "6.1.107",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.6.8",
                            "lessThan": "6.6.48",
                            "status": "affected",
                            "versionType": "semver"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/net/ethernet/mellanox/mlx5/core/en/reporter_tx.c"
                    ],
                    "versions": [
                        {
                            "version": "6.7",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "6.7",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1.107",
                            "lessThanOrEqual": "6.1.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.6.48",
                            "lessThanOrEqual": "6.6.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.10.7",
                            "lessThanOrEqual": "6.10.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.11",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.1.69",
                                    "versionEndExcluding": "6.1.107"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.6.8",
                                    "versionEndExcluding": "6.6.48"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.7",
                                    "versionEndExcluding": "6.10.7"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.7",
                                    "versionEndExcluding": "6.11"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/03d3734bd692affe4d0e9c9d638f491aaf37411b"
                },
                {
                    "url": "https://git.kernel.org/stable/c/b3b9a87adee97854bcd71057901d46943076267e"
                },
                {
                    "url": "https://git.kernel.org/stable/c/8e57e66ecbdd2fddc9fbf3e984b1c523b70e9809"
                },
                {
                    "url": "https://git.kernel.org/stable/c/e6b5afd30b99b43682a7764e1a74a42fe4d5f4b3"
                }
            ],
            "title": "net/mlx5e: Take state lock during tx timeout reporter",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        },
        "adp": [
            {
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2024-09-29T15:48:31.371644Z",
                                "id": "CVE-2024-45019",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "partial"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2024-09-29T15:48:46.673Z"
                }
            },
            {
                "title": "CVE Program Container",
                "references": [
                    {
                        "url": "https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"
                    }
                ],
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2025-11-03T22:15:26.924Z"
                }
            }
        ]
    }
}