CWE
362
Advisory Published
Updated

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

First published: Tue Nov 05 2024(Updated: )

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.

Credit: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Affected SoftwareAffected VersionHow to fix
Linux Kernel>=4.6<6.6.59
Linux Kernel>=6.7<6.11.6
Linux Kernel=6.12-rc1
Linux Kernel=6.12-rc2
Linux Kernel=6.12-rc3
debian/linux<=5.10.223-1<=5.10.226-1<=6.1.123-1<=6.1.128-1
6.12.12-1
6.12.15-1

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2024-50135?

    CVE-2024-50135 has been classified as a medium severity vulnerability due to its potential impact on system stability.

  • How do I fix CVE-2024-50135?

    To resolve CVE-2024-50135, you should upgrade your Linux kernel to the latest patched version that addresses this issue.

  • Which versions of the Linux kernel are affected by CVE-2024-50135?

    CVE-2024-50135 affects Linux kernel versions between 4.6 and 6.6.59 as well as versions between 6.7 and 6.11.6, including 6.12-rc1, 6.12-rc2, and 6.12-rc3.

  • What type of vulnerability is CVE-2024-50135?

    CVE-2024-50135 is a race condition vulnerability found in the nvme-pci driver of the Linux kernel.

  • Who is primarily affected by CVE-2024-50135?

    Users and administrators running the affected versions of the Linux kernel, particularly those utilizing NVMe devices, are primarily impacted by CVE-2024-50135.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203