{"id":"CVE-2026-80813","state":"PUBLISHED","title":"nvmet: fix NULL pointer dereference in nvmet_execute_identify_nslist()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvmet: fix NULL pointer dereference in nvmet_execute_identify_nslist()\n\nWhen a host issues an Identify command with CNS 07h (Active Namespace ID\nList for a specific I/O Command Set), nvmet_execute_identify_nslist() is\ncalled with match_css set. The command-set filter dereferences req->ns,\nbut this handler never calls nvmet_req_find_ns(), so req->ns is always\nNULL (nvmet_req_init() resets it to NULL). As soon as an enabled\nnamespace with an NSID greater than the requested value exists,\nreq->ns->csi dereferences a NULL pointer and oopses.\n\nBesides the crash, the comparison is logically wrong: to filter the list\nby command set it must test the command set of the namespace being\niterated, not a single fixed value. Use the loop variable ns->csi.","publishedAt":"2026-09-04T15:13:33.761Z","updatedAt":"2026-10-19T08:44:07.048Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"61c9967cd63448292a64f9ee9aeb6e2053e3a624","status":"affected","lessThan":"61dc1a37e04d4003a19095f54883358330034a39","versionType":"git"},{"version":"61c9967cd63448292a64f9ee9aeb6e2053e3a624","status":"affected","lessThan":"2bc1e33ff6a558c8ceef7c0077f3ef70a15fcba2","versionType":"git"},{"version":"61c9967cd63448292a64f9ee9aeb6e2053e3a624","status":"affected","lessThan":"123d664ac98d6f3464462ad4a530474b91ba9890","versionType":"git"},{"version":"61c9967cd63448292a64f9ee9aeb6e2053e3a624","status":"affected","lessThan":"79aba4c9403419d822972d2851f2a96a2c0531cf","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/target/admin-cmd.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.13","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.13","versionType":"semver"},{"version":"6.18.47","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.11","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2.1","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/target/admin-cmd.c"]}],"references":["https://git.kernel.org/stable/c/61dc1a37e04d4003a19095f54883358330034a39","https://git.kernel.org/stable/c/2bc1e33ff6a558c8ceef7c0077f3ef70a15fcba2","https://git.kernel.org/stable/c/123d664ac98d6f3464462ad4a530474b91ba9890","https://git.kernel.org/stable/c/79aba4c9403419d822972d2851f2a96a2c0531cf"],"weaknesses":[],"ingestedAt":"2026-10-29T20:13:07.220Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/80xxx/CVE-2026-80813.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-80813","state":"PUBLISHED","datePublished":"2026-09-04T15:13:33.761Z","dateUpdated":"2026-10-19T08:44:07.048Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-08-26T14:34:25.794Z"},"containers":{"cna":{"title":"nvmet: fix NULL pointer dereference in nvmet_execute_identify_nslist()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvmet: fix NULL pointer dereference in nvmet_execute_identify_nslist()\n\nWhen a host issues an Identify command with CNS 07h (Active Namespace ID\nList for a specific I/O Command Set), nvmet_execute_identify_nslist() is\ncalled with match_css set. The command-set filter dereferences req->ns,\nbut this handler never calls nvmet_req_find_ns(), so req->ns is always\nNULL (nvmet_req_init() resets it to NULL). As soon as an enabled\nnamespace with an NSID greater than the requested value exists,\nreq->ns->csi dereferences a NULL pointer and oopses.\n\nBesides the crash, the comparison is logically wrong: to filter the list\nby command set it must test the command set of the namespace being\niterated, not a single fixed value. Use the loop variable ns->csi."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"61c9967cd63448292a64f9ee9aeb6e2053e3a624","status":"affected","lessThan":"61dc1a37e04d4003a19095f54883358330034a39","versionType":"git"},{"version":"61c9967cd63448292a64f9ee9aeb6e2053e3a624","status":"affected","lessThan":"2bc1e33ff6a558c8ceef7c0077f3ef70a15fcba2","versionType":"git"},{"version":"61c9967cd63448292a64f9ee9aeb6e2053e3a624","status":"affected","lessThan":"123d664ac98d6f3464462ad4a530474b91ba9890","versionType":"git"},{"version":"61c9967cd63448292a64f9ee9aeb6e2053e3a624","status":"affected","lessThan":"79aba4c9403419d822972d2851f2a96a2c0531cf","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/target/admin-cmd.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.13","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.13","versionType":"semver"},{"version":"6.18.47","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.11","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2.1","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/target/admin-cmd.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/61dc1a37e04d4003a19095f54883358330034a39"},{"url":"https://git.kernel.org/stable/c/2bc1e33ff6a558c8ceef7c0077f3ef70a15fcba2"},{"url":"https://git.kernel.org/stable/c/123d664ac98d6f3464462ad4a530474b91ba9890"},{"url":"https://git.kernel.org/stable/c/79aba4c9403419d822972d2851f2a96a2c0531cf"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-19T08:44:07.048Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.13","versionEndExcluding":"6.18.47"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.13","versionEndExcluding":"7.1.11"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.13","versionEndExcluding":"7.2.1"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.13","versionEndExcluding":"7.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}