CVE-2022-49492

nvme-pci: fix a NULL pointer dereference in nvme_alloc_admin_tags

MEDIUM
5.5
CVSS Score
Published: February 26, 2025 at 02:13 AM UTC
Updated: June 17, 2026 at 05:18 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

Description

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 4.9.3183.19 ≤ v < 4.14.2833.19 ≤ v < 4.19.2473.19 ≤ v < 4.9.3183.19 ≤ v < 5.10.1213.19 ≤ v < 5.15.463.19 ≤ v < 5.17.143.19 ≤ v < 5.18.33.19 ≤ v < 5.193.19 ≤ v < 5.4.1984.10 ≤ v < 4.14.2834.15 ≤ v < 4.19.2474.20 ≤ v < 5.4.1985.11 ≤ v < 5.15.465.16 ≤ v < 5.17.145.18 ≤ v < 5.18.35.5 ≤ v < 5.10.1213.1935b489d32fcc37e8735f41aa794b24cf9d1e74f5
Vendor states this is fixed in 54a4c1e47d1b2585e74920399455bd9abbfb2bd7 (fixed)
Vendor states this is fixed in 7a28556082d1fbcbc599baf1c24252dfc73efefc (fixed)
Vendor states this is fixed in 8321b17789f614414206af07e17ce4751c95dc76 (fixed)
Vendor states this is fixed in 8da2b7bdb47e94bbc4062a3978c708926bcb022c (fixed)
Vendor states this is fixed in 906c81dba8ee8057523859b5e1a2479e9fd34860 (fixed)
Vendor states this is fixed in 9e649471b396fa0139d53919354ce1eace9b9a24 (fixed)
Vendor states this is fixed in af98940dd33c9f9e1beb4f71c0a39260100e2a65 (fixed)
Vendor states this is fixed in da42761181627e9bdc37d18368b827948a583929 (fixed)
Vendor states this is fixed in f76729662650cd7bc8f8194e057af381370349a7 (fixed)
Vendor states this is fixed in 3.19 (unaffected)
Vendor states this is fixed in 4.14.283 (unaffected)
Vendor states this is fixed in 4.19.247 (unaffected)
Vendor states this is fixed in 4.9.318 (unaffected)
Vendor states this is fixed in 5.10.121 (unaffected)
Vendor states this is fixed in 5.15.46 (unaffected)
Vendor states this is fixed in 5.17.14 (unaffected)
Vendor states this is fixed in 5.18.3 (unaffected)
Vendor states this is fixed in 5.19 (unaffected)
Vendor states this is fixed in 5.4.198 (unaffected)

References (9)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/54a4c1e47d1b2585e74920399455bd9abbfb2bd7
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/7a28556082d1fbcbc599baf1c24252dfc73efefc
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8321b17789f614414206af07e17ce4751c95dc76
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8da2b7bdb47e94bbc4062a3978c708926bcb022c
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/906c81dba8ee8057523859b5e1a2479e9fd34860
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/9e649471b396fa0139d53919354ce1eace9b9a24
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/af98940dd33c9f9e1beb4f71c0a39260100e2a65
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/da42761181627e9bdc37d18368b827948a583929

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

5.5MEDIUMCISA-ADP
Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-476

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card