CVE-2022-49492

nvme-pci: fix a NULL pointer dereference in nvme_alloc_admin_tags

Medium · published February 26, 2025

CVSS v3.1
5.5
EPSS
0%
Percentile
20.5
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
5.5 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00291 · 20.5th percentile
Published
2025-02-26T02:13Z
EPSS history
Timeline
  • 26 FEB 02:13Z
    nvme-pci: fix a NULL pointer dereference in nvme_alloc_admin_tags
    cvelistv5