Skip to content
Heist/ feed
Back to feed
MediumFix available

nvme-pci: fix a NULL pointer dereference in nvme_alloc_admin_tags

Type: advisorySources: OSV

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.

Products
Kernel
Affected versions
Not specified
Fixed versions
4.14.283, 4.19.247, 4.9.318, 5.10.121, 5.15.46, 5.17.14, 5.18.3, 5.4.198
CVEs
CVE-2022-49492
Confirmed fixed CVEs
Not specified
Updated in this feed
8 Nov 2026, 01:55 UTC · Revision 1

Source evidence

nvme-pci: fix a NULL pointer dereference in nvme_alloc_admin_tags

core-osv · Original source

Published 26 Feb 2025, 02:13 UTC

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.

osv:CVE-2022-49492

Kernel

Fixed versions: 4.9.318, 4.14.283, 4.19.247, 5.4.198, 5.10.121, 5.15.46, 5.17.14, 5.18.3

Complete source record
{
  "id": "992d3f1fff85c60098ff95687a88d7c34e3968008c07e558976806ec01b50ff4",
  "url": "https://osv.dev/vulnerability/CVE-2022-49492",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "nvme-pci: fix a NULL pointer dereference in nvme_alloc_admin_tags",
    "summary": "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.",
    "evidence": "osv:CVE-2022-49492",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "4.9.318",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "4.14.283",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "4.19.247",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.4.198",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.10.121",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.46",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.17.14",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.18.3",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "CVE-2022-49492",
      "aliases": [
        "CVE-2022-49492"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "35b489d32fcc37e8735f41aa794b24cf9d1e74f5"
                },
                {
                  "fixed": "8321b17789f614414206af07e17ce4751c95dc76"
                },
                {
                  "fixed": "9e649471b396fa0139d53919354ce1eace9b9a24"
                },
                {
                  "fixed": "8da2b7bdb47e94bbc4062a3978c708926bcb022c"
                },
                {
                  "fixed": "f76729662650cd7bc8f8194e057af381370349a7"
                },
                {
                  "fixed": "af98940dd33c9f9e1beb4f71c0a39260100e2a65"
                },
                {
                  "fixed": "906c81dba8ee8057523859b5e1a2479e9fd34860"
                },
                {
                  "fixed": "7a28556082d1fbcbc599baf1c24252dfc73efefc"
                },
                {
                  "fixed": "54a4c1e47d1b2585e74920399455bd9abbfb2bd7"
                },
                {
                  "fixed": "da42761181627e9bdc37d18368b827948a583929"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49492.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "3.19.0"
                },
                {
                  "fixed": "4.9.318"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.10.0"
                },
                {
                  "fixed": "4.14.283"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.15.0"
                },
                {
                  "fixed": "4.19.247"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.20.0"
                },
                {
                  "fixed": "5.4.198"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.5.0"
                },
                {
                  "fixed": "5.10.121"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.46"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "5.17.14"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.18.0"
                },
                {
                  "fixed": "5.18.3"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49492.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:52.786558697Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/54a4c1e47d1b2585e74920399455bd9abbfb2bd7",
        "https://git.kernel.org/stable/c/7a28556082d1fbcbc599baf1c24252dfc73efefc",
        "https://git.kernel.org/stable/c/8321b17789f614414206af07e17ce4751c95dc76",
        "https://git.kernel.org/stable/c/8da2b7bdb47e94bbc4062a3978c708926bcb022c",
        "https://git.kernel.org/stable/c/906c81dba8ee8057523859b5e1a2479e9fd34860",
        "https://git.kernel.org/stable/c/9e649471b396fa0139d53919354ce1eace9b9a24",
        "https://git.kernel.org/stable/c/af98940dd33c9f9e1beb4f71c0a39260100e2a65",
        "https://git.kernel.org/stable/c/da42761181627e9bdc37d18368b827948a583929",
        "https://git.kernel.org/stable/c/f76729662650cd7bc8f8194e057af381370349a7",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49492.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-49492",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49492.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-49492",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 521541,
  "published_at": "2025-02-26T02:13:28.82+00:00"
}