VDB

CVE-2024-50135

CVE-2024-50135 PUBLISHED CVSS 4.7 MEDIUM

nvme-pci: fix race condition between reset and nvme_dev_disable()

Reported by linux · Published November 5, 2024

In the Linux kernel, the following vulnerability has been resolved: nvme-pci: fix race condition between reset and nvme_dev_disable() nvme_dev_disable() modifies the dev->online_queues field, therefore nvme_pci_update_nr_queues() should avoid racing against it, otherwise we could end up passing invalid values to blk_mq_update_nr_hw_queues(). WARNING: CPU: 39 PID: 61303 at drivers/pci/msi/api.c:347 pci_irq_get_affinity+0x187/0x210 Workqueue: nvme-reset-wq nvme_reset_work [nvme] RIP: 0010:pci_irq_get_affinity+0x187/0x210 Call Trace: <TASK> ? blk_mq_pci_map_queues+0x87/0x3c0 ? pci_irq_get_affinity+0x187/0x210 blk_mq_pci_map_queues+0x87/0x3c0 nvme_pci_map_queues+0x189/0x460 [nvme] blk_mq_update_nr_hw_queues+0x2a/0x40 nvme_reset_work+0x1be/0x2a0 [nvme] Fix the bug by locking the shutdown_lock mutex before using dev->online_queues. Give up if nvme_dev_disable() is running or if it has been executed already.

Risk scores

CVSS 3.1
4.7
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H

Affected products

VendorProductVersions
LinuxLinux949928c1c731417cc0f070912c63878b62b544f4, 949928c1c731417cc0f070912c63878b62b544f4, 949928c1c731417cc0f070912c63878b62b544f4
LinuxLinux4.6, 0, 6.1.191
LinuxLinux6.12, 0, 6.1.191
linuxlinux_kernel4.6, 4.6, 4.6

Timeline

  • Nov 5, 2024 CVE Published
  • Nov 6, 2024 EPSS Score (30 in total, the first dated here)
  • Nov 6, 2024 Coalition ESS Score (8 in total, the first dated here)
  • Jan 2, 2026 Security Advisory (170 in total, the first dated here)
  • Apr 29, 2026 Distribution Patch (129 in total, the first dated here)
  • Oct 30, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-50135
vulnetix vdb fixes CVE-2024-50135

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-50135/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›