CWE
476
Advisory Published
Updated

CVE-2022-49492: nvme-pci: fix a NULL pointer dereference in nvme_alloc_admin_tags

First published: Wed Feb 26 2025(Updated: )

In the Linux kernel, the following vulnerability has been resolved: nvme-pci: fix a NULL pointer dereference in nvme_alloc_admin_tags In nvme_alloc_admin_tags, the admin_q can be set to an error (typically -ENOMEM) if the blk_mq_init_queue call fails to set up the queue, which is checked immediately after the call. However, when we return the error message up the stack, to nvme_reset_work the error takes us to nvme_remove_dead_ctrl() nvme_dev_disable() nvme_suspend_queue(&dev->queues[0]). Here, we only check that the admin_q is non-NULL, rather than not an error or NULL, and begin quiescing a queue that never existed, leading to bad / NULL pointer dereference.

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

Affected SoftwareAffected VersionHow to fix
Linux Kernel
Linux Kernel<4.9.318
Linux Kernel>=4.10<4.14.283
Linux Kernel>=4.15<4.19.247
Linux Kernel>=4.20<5.4.198
Linux Kernel>=5.5<5.10.121
Linux Kernel>=5.11<5.15.46
Linux Kernel>=5.16<5.17.14
Linux Kernel>=5.18<5.18.3

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-2022-49492?

    CVE-2022-49492 has a severity rating that is typically categorized as high due to the risk of null pointer dereference leading to a potential denial of service.

  • How do I fix CVE-2022-49492?

    To fix CVE-2022-49492, you should upgrade your Linux kernel to a version that includes the patch addressing this vulnerability.

  • Which versions of the Linux kernel are affected by CVE-2022-49492?

    CVE-2022-49492 affects multiple versions of the Linux kernel, specifically those prior to 4.9.318 and between several ranges up to 5.18.3.

  • What are the potential impacts of CVE-2022-49492?

    The potential impacts of CVE-2022-49492 include system crashes and loss of service due to the null pointer dereference.

  • Is there any workaround for CVE-2022-49492?

    Currently, the best resolution for CVE-2022-49492 is to apply the latest security patches rather than relying on workarounds.

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