CVE-2024-50135
kernel: nvme-pci: fix race condition between reset and nvme_dev_disable()
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · November 5, 2024
Updated · October 29, 2026
Description
A flaw was found in the Linux kernel's NVMe PCI driver. A race condition occurs between the nvme_dev_disable() and nvme_pci_update_nr_queues() functions during device reset. This can lead to invalid values being passed to the hardware queue update function, resulting in a kernel crash and a Denial of Service (DoS) for the affected system.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
To mitigate this issue, prevent the nvme kernel module from loading. This can be achieved by creating a blacklist entry.
- Create a file
/etc/modprobe.d/blacklist-nvme.confwith the following content:blacklist nvme - Regenerate the initramfs:
dracut -f -v - Reboot the system for the changes to take effect.
reboot
Warning: Blacklisting the nvme module will disable all NVMe storage devices, which may prevent the system from booting or accessing NVMe-based storage. This mitigation should only be applied if NVMe devices are not essential for system operation.
CVSS / CWE
CVSS 3.1 · 4.7CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
CWE-362 · Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')