{"id":"CVE-2024-41073","state":"PUBLISHED","title":"nvme: avoid double free special payload","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvme: avoid double free special payload\n\nIf a discard request needs to be retried, and that retry may fail before\na new special payload is added, a double free will result. Clear the\nRQF_SPECIAL_LOAD when the request is cleaned.","publishedAt":"2024-07-29T14:57:33.253Z","updatedAt":"2026-08-05T11:35:12.169Z","severity":{"score":9.8,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/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":"f9d03f96b988002027d4b28ea1b7a24729a4c9b5","status":"affected","lessThan":"882574942a9be8b9d70d13462ddacc80c4b385ba","versionType":"git"},{"version":"f9d03f96b988002027d4b28ea1b7a24729a4c9b5","status":"affected","lessThan":"c5942a14f795de957ae9d66027aac8ff4fe70057","versionType":"git"},{"version":"f9d03f96b988002027d4b28ea1b7a24729a4c9b5","status":"affected","lessThan":"f3ab45aacd25d957547fb6d115c1574c20964b3b","versionType":"git"},{"version":"f9d03f96b988002027d4b28ea1b7a24729a4c9b5","status":"affected","lessThan":"ae84383c96d6662c24697ab6b44aae855ab670aa","versionType":"git"},{"version":"f9d03f96b988002027d4b28ea1b7a24729a4c9b5","status":"affected","lessThan":"1b9fd1265fac85916f90b4648de02adccdb7220b","versionType":"git"},{"version":"f9d03f96b988002027d4b28ea1b7a24729a4c9b5","status":"affected","lessThan":"e5d574ab37f5f2e7937405613d9b1a724811e5ad","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/host/core.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.10","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.10","versionType":"semver"},{"version":"5.10.237","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.164","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.101","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.42","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.9.11","status":"unaffected","lessThanOrEqual":"6.9.*","versionType":"semver"},{"version":"6.10","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/host/core.c"]}],"references":["https://git.kernel.org/stable/c/882574942a9be8b9d70d13462ddacc80c4b385ba","https://git.kernel.org/stable/c/c5942a14f795de957ae9d66027aac8ff4fe70057","https://git.kernel.org/stable/c/f3ab45aacd25d957547fb6d115c1574c20964b3b","https://git.kernel.org/stable/c/ae84383c96d6662c24697ab6b44aae855ab670aa","https://git.kernel.org/stable/c/1b9fd1265fac85916f90b4648de02adccdb7220b","https://git.kernel.org/stable/c/e5d574ab37f5f2e7937405613d9b1a724811e5ad","https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html","https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"],"weaknesses":[],"ingestedAt":"2026-10-29T20:07:39.287Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/41xxx/CVE-2024-41073.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-41073","state":"PUBLISHED","datePublished":"2024-07-29T14:57:33.253Z","dateUpdated":"2026-08-05T11:35:12.169Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-07-12T12:17:45.631Z"},"containers":{"cna":{"title":"nvme: avoid double free special payload","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvme: avoid double free special payload\n\nIf a discard request needs to be retried, and that retry may fail before\na new special payload is added, a double free will result. Clear the\nRQF_SPECIAL_LOAD when the request is cleaned."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"f9d03f96b988002027d4b28ea1b7a24729a4c9b5","status":"affected","lessThan":"882574942a9be8b9d70d13462ddacc80c4b385ba","versionType":"git"},{"version":"f9d03f96b988002027d4b28ea1b7a24729a4c9b5","status":"affected","lessThan":"c5942a14f795de957ae9d66027aac8ff4fe70057","versionType":"git"},{"version":"f9d03f96b988002027d4b28ea1b7a24729a4c9b5","status":"affected","lessThan":"f3ab45aacd25d957547fb6d115c1574c20964b3b","versionType":"git"},{"version":"f9d03f96b988002027d4b28ea1b7a24729a4c9b5","status":"affected","lessThan":"ae84383c96d6662c24697ab6b44aae855ab670aa","versionType":"git"},{"version":"f9d03f96b988002027d4b28ea1b7a24729a4c9b5","status":"affected","lessThan":"1b9fd1265fac85916f90b4648de02adccdb7220b","versionType":"git"},{"version":"f9d03f96b988002027d4b28ea1b7a24729a4c9b5","status":"affected","lessThan":"e5d574ab37f5f2e7937405613d9b1a724811e5ad","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/host/core.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.10","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.10","versionType":"semver"},{"version":"5.10.237","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.164","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.101","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.42","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.9.11","status":"unaffected","lessThanOrEqual":"6.9.*","versionType":"semver"},{"version":"6.10","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/host/core.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/882574942a9be8b9d70d13462ddacc80c4b385ba"},{"url":"https://git.kernel.org/stable/c/c5942a14f795de957ae9d66027aac8ff4fe70057"},{"url":"https://git.kernel.org/stable/c/f3ab45aacd25d957547fb6d115c1574c20964b3b"},{"url":"https://git.kernel.org/stable/c/ae84383c96d6662c24697ab6b44aae855ab670aa"},{"url":"https://git.kernel.org/stable/c/1b9fd1265fac85916f90b4648de02adccdb7220b"},{"url":"https://git.kernel.org/stable/c/e5d574ab37f5f2e7937405613d9b1a724811e5ad"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":9.8,"baseSeverity":"CRITICAL"},"scenarios":[{"lang":"en","value":"AV:N - The vulnerable retry path in drivers/nvme/host/core.c is driven by completion status taken directly off the wire from a remote NVMe-oF peer (nvme-tcp/rdma/fc), which selects the RETRY disposition, and by remote connection teardown, which forces the second cleanup. A malicious or compromised target — or an attacker injecting into a plaintext NVMe/TCP session on port 4420 — reaches this entirely over the network.\nAC:L - The remote peer deterministically controls both steps: return a non-DNR, non-path-related error status for a DSM/discard command to force the requeue, then close the connection so the re-dispatch hits nvme_fail_nonready_command()->nvme_host_path_error(). The requeue-to-reconnect window is seconds, so no race must be won and no uncontrolled state is required.\nPR:N - NVMe/TCP has no authentication or transport security in its default configuration, so the attacking target or network peer holds no credentials on the victim host. The host-side discards that carry the special payload are produced by routine filesystem activity, not by any privileged attacker action.\nUI:N - No victim action is needed — discard requests are generated automatically by mounted filesystems, fstrim, and swap on an already-connected NVMe-oF namespace. The attacker only has to respond to one that is already in flight.\nS:U - The heap corruption is confined to the kernel's own memory allocator and the compromise stays within the kernel's security authority. No VM, IOMMU, or sandbox boundary is crossed.\nC:H - The double free re-inserts a live kmalloc-4k chunk into the freelist so two allocations receive the same memory, yielding a use-after-free/type-confusion primitive that permits reading adjacent kernel objects and leaking arbitrary kernel memory. SLUB's consecutive-double-free hardening does not catch it because many allocations occur between the two frees.\nI:H - The same overlapping-allocation primitive gives an attacker-groomable kernel write, the classic route to control-flow hijack and privilege escalation. In the shared discard_page variant, the extra clear_bit_unlock() breaks mutual exclusion so concurrent DSM commands share one range buffer and the device deallocates the wrong LBAs, silently destroying on-disk data.\nA:H - Freelist corruption from the double free reliably causes kernel panics, and where SLUB debugging/hardening does detect it the result is an immediate BUG. The trigger can be repeated on every retried discard, so the host can be crashed at will."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T11:35:12.169Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.10","versionEndExcluding":"5.10.237"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.10","versionEndExcluding":"5.15.164"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.10","versionEndExcluding":"6.1.101"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.10","versionEndExcluding":"6.6.42"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.10","versionEndExcluding":"6.9.11"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.10","versionEndExcluding":"6.10"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/c5942a14f795de957ae9d66027aac8ff4fe70057","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/f3ab45aacd25d957547fb6d115c1574c20964b3b","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/ae84383c96d6662c24697ab6b44aae855ab670aa","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/1b9fd1265fac85916f90b4648de02adccdb7220b","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/e5d574ab37f5f2e7937405613d9b1a724811e5ad","tags":["x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html"},{"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:00:26.841Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2024-41073","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-09-10T16:21:30.593926Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-09-11T17:34:00.546Z"}}]}}}