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

Published Nov 5, 2024
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

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

nvmedevdisable() modifies the dev->onlinequeues field, therefore nvmepciupdatenrqueues() should avoid racing against it, otherwise we could end up passing invalid values to blkmqupdatenrhwqueues().

WARNING: CPU: 39 PID: 61303 at drivers/pci/msi/api.c:347 pciirqgetaffinity+0x187/0x210 Workqueue: nvme-reset-wq nvmeresetwork [nvme] RIP: 0010:pciirqgetaffinity+0x187/0x210 Call Trace: <TASK> ? blkmqpcimapqueues+0x87/0x3c0 ? pciirqgetaffinity+0x187/0x210 blkmqpcimapqueues+0x87/0x3c0 nvmepcimapqueues+0x189/0x460 [nvme] blkmqupdatenrhwqueues+0x2a/0x40 nvmeresetwork+0x1be/0x2a0 [nvme]

Fix the bug by locking the shutdownlock mutex before using dev->onlinequeues. Give up if nvmedevdisable() is running or if it has been executed already.

Affected Software

8 affected componentsFixes available
Linux Linux kernel>=4.6<6.6.59
Linux Linux kernel>=6.7<6.11.6
Linux Linux kernel=6.12-rc1
Linux Linux kernel=6.12-rc2
Linux Linux kernel=6.12-rc3
debian/linux<=5.10.223-1, <=5.10.234-1, <=6.1.129-1, <=6.1.135-1
6.12.22-16.12.25-1
Microsoft azl3 kernel 6.6.57.1-7
Microsoft azl3 kernel 6.6.64.2-1

Event History

Nov 5, 2024
CVE Published
via MITRE·05:10 PM
Data Sourced
via MITRE·05:10 PM
Description
Data Sourced
via NVD·06:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jan 29, 2025
Data Sourced
via Microsoft·08:00 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·08:00 AM
SeverityAffected Software
Updated
via Microsoft·08:00 AM
Description
Apr 29, 2025
Data Sourced
via Ubuntu·01:03 AM
RemedyDescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

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.

2

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.

3

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.

4

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.

5

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.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203