{"id":"CVE-2024-45019","state":"PUBLISHED","title":"net/mlx5e: Take state lock during tx timeout reporter","description":"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.","publishedAt":"2024-09-11T15:13:53.933Z","updatedAt":"2026-08-05T11:37:43.782Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"514232495aa523641febaa58b687fe6df1cd0b73","status":"affected","lessThan":"03d3734bd692affe4d0e9c9d638f491aaf37411b","versionType":"git"},{"version":"8ce3d969348a7c7fa3469588eb1319f9f3cc0eaa","status":"affected","lessThan":"b3b9a87adee97854bcd71057901d46943076267e","versionType":"git"},{"version":"eab0da38912ebdad922ed0388209f7eb0a5163cd","status":"affected","lessThan":"8e57e66ecbdd2fddc9fbf3e984b1c523b70e9809","versionType":"git"},{"version":"eab0da38912ebdad922ed0388209f7eb0a5163cd","status":"affected","lessThan":"e6b5afd30b99b43682a7764e1a74a42fe4d5f4b3","versionType":"git"},{"version":"6.1.69","status":"affected","lessThan":"6.1.107","versionType":"semver"},{"version":"6.6.8","status":"affected","lessThan":"6.6.48","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/mellanox/mlx5/core/en/reporter_tx.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.7","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.7","versionType":"semver"},{"version":"6.1.107","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.48","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.10.7","status":"unaffected","lessThanOrEqual":"6.10.*","versionType":"semver"},{"version":"6.11","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/mellanox/mlx5/core/en/reporter_tx.c"]}],"references":["https://git.kernel.org/stable/c/03d3734bd692affe4d0e9c9d638f491aaf37411b","https://git.kernel.org/stable/c/b3b9a87adee97854bcd71057901d46943076267e","https://git.kernel.org/stable/c/8e57e66ecbdd2fddc9fbf3e984b1c523b70e9809","https://git.kernel.org/stable/c/e6b5afd30b99b43682a7764e1a74a42fe4d5f4b3","https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"],"weaknesses":[],"ingestedAt":"2026-10-29T20:07:47.831Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/45xxx/CVE-2024-45019.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-45019","state":"PUBLISHED","datePublished":"2024-09-11T15:13:53.933Z","dateUpdated":"2026-08-05T11:37:43.782Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-08-21T05:34:56.683Z"},"containers":{"cna":{"title":"net/mlx5e: Take state lock during tx timeout reporter","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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"514232495aa523641febaa58b687fe6df1cd0b73","status":"affected","lessThan":"03d3734bd692affe4d0e9c9d638f491aaf37411b","versionType":"git"},{"version":"8ce3d969348a7c7fa3469588eb1319f9f3cc0eaa","status":"affected","lessThan":"b3b9a87adee97854bcd71057901d46943076267e","versionType":"git"},{"version":"eab0da38912ebdad922ed0388209f7eb0a5163cd","status":"affected","lessThan":"8e57e66ecbdd2fddc9fbf3e984b1c523b70e9809","versionType":"git"},{"version":"eab0da38912ebdad922ed0388209f7eb0a5163cd","status":"affected","lessThan":"e6b5afd30b99b43682a7764e1a74a42fe4d5f4b3","versionType":"git"},{"version":"6.1.69","status":"affected","lessThan":"6.1.107","versionType":"semver"},{"version":"6.6.8","status":"affected","lessThan":"6.6.48","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/mellanox/mlx5/core/en/reporter_tx.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.7","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.7","versionType":"semver"},{"version":"6.1.107","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.48","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.10.7","status":"unaffected","lessThanOrEqual":"6.10.*","versionType":"semver"},{"version":"6.11","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/mellanox/mlx5/core/en/reporter_tx.c"]}],"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"}],"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."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T11:37:43.782Z"},"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"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","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"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","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":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-03T22:15:26.924Z"}}]}}}