CVE-2024-50135

Severity CVSS v4.0:
Pending analysis
Type:
CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
Publication date:
05/11/2024
Last modified:
08/11/2024

Description

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

Vulnerable products and versions

CPE From Up to
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 4.6 (including) 6.6.59 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.7 (including) 6.11.6 (excluding)
cpe:2.3:o:linux:linux_kernel:6.12:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.12:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.12:rc3:*:*:*:*:*:*