Linux Kernel NVMe Double-Free Flaw Can Crash Systems on Discard Retry Failures
Vulnerability Disclosure · 2 sources · Updated 3mo ago · First seen Jul 29, 2024

A double-free vulnerability in the Linux kernel's NVMe subsystem, tracked as CVE-2024-41073, can let a local attacker trigger memory corruption and cause a denial of service. The bug occurs when a discard request is retried and then fails before a new special payload is attached, leaving cleanup logic to free the same resource twice unless the RQF_SPECIAL_PAYLOAD flag is cleared. The flaw affects drivers/nvme/host/core.c and is classified as CWE-1341.
The Linux kernel CVE team said the issue was fixed in stable releases 5.15.164, 6.1.101, 6.6.42, 6.9.11, and 6.10, and advised users to update to the latest stable kernel rather than cherry-picking patches. Red Hat rated the issue Moderate for its products with a CVSS v3 score of 5.5, noting fixes for multiple Red Hat Enterprise Linux 8 and 9 kernel packages through RHSA advisories, while RHEL 6 was listed as not affected; Red Hat also highlighted that external databases assigned higher scores to the same CVE.
Why it matters
Impact assessment
CVE-2024-41073 affects Linux systems running vulnerable kernels with the NVMe host subsystem and workloads capable of issuing discard/TRIM requests. A local authenticated attacker can trigger kernel memory corruption and a system crash, creating high-availability and operational-disruption risk for servers, virtual hosts, storage systems, and multi-user Linux environments.
- Primary impact: denial of service through a kernel crash; Red Hat's product-specific vector specifies no direct confidentiality or integrity impact.
- Scope: exposure is limited to vulnerable Linux kernel versions and configurations using NVMe storage/discard request handling, rather than all Linux hosts.
- Severity: Red Hat rates the issue Moderate, CVSS 3.1 5.5 (
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H). NVD lists 7.8 and cve.org lists 9.8; prioritize vendor-supported package status and local environmental exposure over cross-database score differences. - Known exploitation: the references do not report exploitation in the wild.
- Red Hat Enterprise Linux 8 and 9 kernel streams have affected packages; RHEL 6 is listed as not affected.
Supporting facts
- Affected component: Linux NVMe host subsystem,
drivers/nvme/host/core.c. - Weakness: CWE-1341, Multiple Releases of Same Resource or Handle.
- Red Hat tracking: Bugzilla 2301637,
kernel: nvme: avoid double free special payload.


