{"id":"CVE-2022-49492","state":"PUBLISHED","title":"nvme-pci: fix a NULL pointer dereference in nvme_alloc_admin_tags","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvme-pci: fix a NULL pointer dereference in nvme_alloc_admin_tags\n\nIn nvme_alloc_admin_tags, the admin_q can be set to an error (typically\n-ENOMEM) if the blk_mq_init_queue call fails to set up the queue, which\nis checked immediately after the call. However, when we return the error\nmessage up the stack, to nvme_reset_work the error takes us to\nnvme_remove_dead_ctrl()\n  nvme_dev_disable()\n   nvme_suspend_queue(&dev->queues[0]).\n\nHere, we only check that the admin_q is non-NULL, rather than not\nan error or NULL, and begin quiescing a queue that never existed, leading\nto bad / NULL pointer dereference.","publishedAt":"2025-02-26T02:13:28.820Z","updatedAt":"2026-05-11T19:00:56.954Z","severity":{"score":5.5,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","source":"CISA-ADP"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"35b489d32fcc37e8735f41aa794b24cf9d1e74f5","status":"affected","lessThan":"8321b17789f614414206af07e17ce4751c95dc76","versionType":"git"},{"version":"35b489d32fcc37e8735f41aa794b24cf9d1e74f5","status":"affected","lessThan":"9e649471b396fa0139d53919354ce1eace9b9a24","versionType":"git"},{"version":"35b489d32fcc37e8735f41aa794b24cf9d1e74f5","status":"affected","lessThan":"8da2b7bdb47e94bbc4062a3978c708926bcb022c","versionType":"git"},{"version":"35b489d32fcc37e8735f41aa794b24cf9d1e74f5","status":"affected","lessThan":"f76729662650cd7bc8f8194e057af381370349a7","versionType":"git"},{"version":"35b489d32fcc37e8735f41aa794b24cf9d1e74f5","status":"affected","lessThan":"af98940dd33c9f9e1beb4f71c0a39260100e2a65","versionType":"git"},{"version":"35b489d32fcc37e8735f41aa794b24cf9d1e74f5","status":"affected","lessThan":"906c81dba8ee8057523859b5e1a2479e9fd34860","versionType":"git"},{"version":"35b489d32fcc37e8735f41aa794b24cf9d1e74f5","status":"affected","lessThan":"7a28556082d1fbcbc599baf1c24252dfc73efefc","versionType":"git"},{"version":"35b489d32fcc37e8735f41aa794b24cf9d1e74f5","status":"affected","lessThan":"54a4c1e47d1b2585e74920399455bd9abbfb2bd7","versionType":"git"},{"version":"35b489d32fcc37e8735f41aa794b24cf9d1e74f5","status":"affected","lessThan":"da42761181627e9bdc37d18368b827948a583929","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/host/pci.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.19","versionType":"semver"},{"version":"4.9.318","status":"unaffected","lessThanOrEqual":"4.9.*","versionType":"semver"},{"version":"4.14.283","status":"unaffected","lessThanOrEqual":"4.14.*","versionType":"semver"},{"version":"4.19.247","status":"unaffected","lessThanOrEqual":"4.19.*","versionType":"semver"},{"version":"5.4.198","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.121","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.46","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.17.14","status":"unaffected","lessThanOrEqual":"5.17.*","versionType":"semver"},{"version":"5.18.3","status":"unaffected","lessThanOrEqual":"5.18.*","versionType":"semver"},{"version":"5.19","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/host/pci.c"]}],"references":["https://git.kernel.org/stable/c/8321b17789f614414206af07e17ce4751c95dc76","https://git.kernel.org/stable/c/9e649471b396fa0139d53919354ce1eace9b9a24","https://git.kernel.org/stable/c/8da2b7bdb47e94bbc4062a3978c708926bcb022c","https://git.kernel.org/stable/c/f76729662650cd7bc8f8194e057af381370349a7","https://git.kernel.org/stable/c/af98940dd33c9f9e1beb4f71c0a39260100e2a65","https://git.kernel.org/stable/c/906c81dba8ee8057523859b5e1a2479e9fd34860","https://git.kernel.org/stable/c/7a28556082d1fbcbc599baf1c24252dfc73efefc","https://git.kernel.org/stable/c/54a4c1e47d1b2585e74920399455bd9abbfb2bd7","https://git.kernel.org/stable/c/da42761181627e9bdc37d18368b827948a583929"],"weaknesses":["CWE-476"],"ingestedAt":"2026-10-29T20:05:26.763Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/49xxx/CVE-2022-49492.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-49492","state":"PUBLISHED","datePublished":"2025-02-26T02:13:28.820Z","dateUpdated":"2026-05-11T19:00:56.954Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-02-26T02:08:31.585Z"},"containers":{"cna":{"title":"nvme-pci: fix a NULL pointer dereference in nvme_alloc_admin_tags","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvme-pci: fix a NULL pointer dereference in nvme_alloc_admin_tags\n\nIn nvme_alloc_admin_tags, the admin_q can be set to an error (typically\n-ENOMEM) if the blk_mq_init_queue call fails to set up the queue, which\nis checked immediately after the call. However, when we return the error\nmessage up the stack, to nvme_reset_work the error takes us to\nnvme_remove_dead_ctrl()\n  nvme_dev_disable()\n   nvme_suspend_queue(&dev->queues[0]).\n\nHere, we only check that the admin_q is non-NULL, rather than not\nan error or NULL, and begin quiescing a queue that never existed, leading\nto bad / NULL pointer dereference."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"35b489d32fcc37e8735f41aa794b24cf9d1e74f5","status":"affected","lessThan":"8321b17789f614414206af07e17ce4751c95dc76","versionType":"git"},{"version":"35b489d32fcc37e8735f41aa794b24cf9d1e74f5","status":"affected","lessThan":"9e649471b396fa0139d53919354ce1eace9b9a24","versionType":"git"},{"version":"35b489d32fcc37e8735f41aa794b24cf9d1e74f5","status":"affected","lessThan":"8da2b7bdb47e94bbc4062a3978c708926bcb022c","versionType":"git"},{"version":"35b489d32fcc37e8735f41aa794b24cf9d1e74f5","status":"affected","lessThan":"f76729662650cd7bc8f8194e057af381370349a7","versionType":"git"},{"version":"35b489d32fcc37e8735f41aa794b24cf9d1e74f5","status":"affected","lessThan":"af98940dd33c9f9e1beb4f71c0a39260100e2a65","versionType":"git"},{"version":"35b489d32fcc37e8735f41aa794b24cf9d1e74f5","status":"affected","lessThan":"906c81dba8ee8057523859b5e1a2479e9fd34860","versionType":"git"},{"version":"35b489d32fcc37e8735f41aa794b24cf9d1e74f5","status":"affected","lessThan":"7a28556082d1fbcbc599baf1c24252dfc73efefc","versionType":"git"},{"version":"35b489d32fcc37e8735f41aa794b24cf9d1e74f5","status":"affected","lessThan":"54a4c1e47d1b2585e74920399455bd9abbfb2bd7","versionType":"git"},{"version":"35b489d32fcc37e8735f41aa794b24cf9d1e74f5","status":"affected","lessThan":"da42761181627e9bdc37d18368b827948a583929","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/host/pci.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.19","versionType":"semver"},{"version":"4.9.318","status":"unaffected","lessThanOrEqual":"4.9.*","versionType":"semver"},{"version":"4.14.283","status":"unaffected","lessThanOrEqual":"4.14.*","versionType":"semver"},{"version":"4.19.247","status":"unaffected","lessThanOrEqual":"4.19.*","versionType":"semver"},{"version":"5.4.198","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.121","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.46","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.17.14","status":"unaffected","lessThanOrEqual":"5.17.*","versionType":"semver"},{"version":"5.18.3","status":"unaffected","lessThanOrEqual":"5.18.*","versionType":"semver"},{"version":"5.19","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/host/pci.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/8321b17789f614414206af07e17ce4751c95dc76"},{"url":"https://git.kernel.org/stable/c/9e649471b396fa0139d53919354ce1eace9b9a24"},{"url":"https://git.kernel.org/stable/c/8da2b7bdb47e94bbc4062a3978c708926bcb022c"},{"url":"https://git.kernel.org/stable/c/f76729662650cd7bc8f8194e057af381370349a7"},{"url":"https://git.kernel.org/stable/c/af98940dd33c9f9e1beb4f71c0a39260100e2a65"},{"url":"https://git.kernel.org/stable/c/906c81dba8ee8057523859b5e1a2479e9fd34860"},{"url":"https://git.kernel.org/stable/c/7a28556082d1fbcbc599baf1c24252dfc73efefc"},{"url":"https://git.kernel.org/stable/c/54a4c1e47d1b2585e74920399455bd9abbfb2bd7"},{"url":"https://git.kernel.org/stable/c/da42761181627e9bdc37d18368b827948a583929"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T19:00:56.954Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.19","versionEndExcluding":"4.9.318"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.19","versionEndExcluding":"4.14.283"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.19","versionEndExcluding":"4.19.247"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.19","versionEndExcluding":"5.4.198"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.19","versionEndExcluding":"5.10.121"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.19","versionEndExcluding":"5.15.46"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.19","versionEndExcluding":"5.17.14"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.19","versionEndExcluding":"5.18.3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.19","versionEndExcluding":"5.19"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":5.5,"attackVector":"LOCAL","baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"LOW","confidentialityImpact":"NONE"}},{"other":{"type":"ssvc","content":{"id":"CVE-2022-49492","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2025-10-01T19:38:56.150719Z"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-476","lang":"en","type":"CWE","description":"CWE-476 NULL Pointer Dereference"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-10-01T19:46:43.988Z"}}]}}}