nvmet: fix NULL pointer dereference in nvmet_execute_identify_ns_zns()
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 5.15.221, 6.1.188, 6.6.157, 6.12.110, 6.18.52, and 1 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
In the Linux kernel, the following vulnerability has been resolved: nvmet: fix NULL pointer dereference in nvmet_execute_identify_ns_zns() When a host issues an Identify command with CNS 05h (I/O Command Set specific Identify Namespace) and CSI 02h (ZNS) targeting a file-backed namespace, nvmet_execute_identify_ns_zns() calls bdev_is_zoned() on req->ns->bdev. A file-backed namespace has no block device, so req->ns->bdev is NULL and bdev_is_zoned() dereferences it, oopsing. The I/O command set is selected by the host-supplied CSI field and the command is routed here whenever CONFIG_BLK_DEV_ZONED is enabled, independent of the namespace backing type, so any file-backed namespace is exposed. Reject the command with Invalid Field when the namespace is not backed by a block device.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From aaf2e048af2704da5869f27b508b288f36d5c7b7 · fixed in 1ce8faf90eb0bf5599b90db38500aefea9426485; From aaf2e048af2704da5869f27b508b288f36d5c7b7 · fixed in b873099944dae5702b4b6db6814d1f1e8d4cfb00; From aaf2e048af2704da5869f27b508b288f36d5c7b7 · fixed in ff28a93a895912010a7827a0e1445ebe8be53b4d; From aaf2e048af2704da5869f27b508b288f36d5c7b7 · fixed in cc29f7082b7ab5e0337f27d1fef16359f05fcffa; From aaf2e048af2704da5869f27b508b288f36d5c7b7 · fixed in 1fb1236312ee1a600de6b3ca560f0b3fd5a50471; From aaf2e048af2704da5869f27b508b288f36d5c7b7 · fixed in 0b4cf43f9ca7118590a338de900edbd6047cd89f; From aaf2e048af2704da5869f27b508b288f36d5c7b7 · fixed in f594863967d87b7fcbff6e724d51135fd701a13d
- Linux Linux
5.14
- KernelLinux
From 5.14.0 · fixed in 5.15.221; From 5.16.0 · fixed in 6.1.188; From 6.2.0 · fixed in 6.6.157; From 6.7.0 · fixed in 6.12.110; From 6.13.0 · fixed in 6.18.52; From 6.19.0 · fixed in 7.2.6
References 7
git.kernel.org
- stable/c/1ce8faf90eb0bf5599b90db38500aefea9426485
- stable/c/b873099944dae5702b4b6db6814d1f1e8d4cfb00
- stable/c/ff28a93a895912010a7827a0e1445ebe8be53b4d
- stable/c/cc29f7082b7ab5e0337f27d1fef16359f05fcffa
- stable/c/1fb1236312ee1a600de6b3ca560f0b3fd5a50471
- stable/c/0b4cf43f9ca7118590a338de900edbd6047cd89f
- stable/c/f594863967d87b7fcbff6e724d51135fd701a13d