Linux
nvmet: fix NULL pointer dereference in nvmet_execute_identify_ns_zns()
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= aaf2e048af2704da5869f27b508b288f36d5c7b7, < 1ce8faf90eb0bf5599b90db38500aefea9426485
- >= aaf2e048af2704da5869f27b508b288f36d5c7b7, < b873099944dae5702b4b6db6814d1f1e8d4cfb00
- >= aaf2e048af2704da5869f27b508b288f36d5c7b7, < ff28a93a895912010a7827a0e1445ebe8be53b4d
- >= aaf2e048af2704da5869f27b508b288f36d5c7b7, < cc29f7082b7ab5e0337f27d1fef16359f05fcffa
- >= aaf2e048af2704da5869f27b508b288f36d5c7b7, < 1fb1236312ee1a600de6b3ca560f0b3fd5a50471
- >= aaf2e048af2704da5869f27b508b288f36d5c7b7, < 0b4cf43f9ca7118590a338de900edbd6047cd89f
- >= aaf2e048af2704da5869f27b508b288f36d5c7b7, < f594863967d87b7fcbff6e724d51135fd701a13d
Fixed in 1ce8faf90eb0bf5599b90db38500aefea9426485, b873099944dae5702b4b6db6814d1f1e8d4cfb00, ff28a93a895912010a7827a0e1445ebe8be53b4d, cc29f7082b7ab5e0337f27d1fef16359f05fcffa, 1fb1236312ee1a600de6b3ca560f0b3fd5a50471, 0b4cf43f9ca7118590a338de900edbd6047cd89f, f594863967d87b7fcbff6e724d51135fd701a13d
- 5.14
Fixed in 0, 5.15.221, 6.1.188, 6.6.157, 6.12.110, 6.18.52, 7.2.6, 7.3
Mitigation
Upgrade Linux to 1ce8faf90eb0bf5599b90db38500aefea9426485 or b873099944dae5702b4b6db6814d1f1e8d4cfb00 or ff28a93a895912010a7827a0e1445ebe8be53b4d or cc29f7082b7ab5e0337f27d1fef16359f05fcffa or 1fb1236312ee1a600de6b3ca560f0b3fd5a50471 or 0b4cf43f9ca7118590a338de900edbd6047cd89f or f594863967d87b7fcbff6e724d51135fd701a13d or later.
Upgrade Linux to 0 or 5.15.221 or 6.1.188 or 6.6.157 or 6.12.110 or 6.18.52 or 7.2.6 or 7.3 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.