CVE-2026-90228: nvmet: fix NULL pointer dereference in nvmet_execute_identify_ns_zns()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
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.
The Linux kernel CVE team has assigned CVE-2026-90228 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.14 with commit aaf2e048af2704da5869f27b508b288f36d5c7b7 and fixed in 5.15.221 with commit 1ce8faf90eb0bf5599b90db38500aefea9426485 Issue introduced in 5.14 with commit aaf2e048af2704da5869f27b508b288f36d5c7b7 and fixed in 6.1.188 with commit b873099944dae5702b4b6db6814d1f1e8d4cfb00 Issue introduced in 5.14 with commit aaf2e048af2704da5869f27b508b288f36d5c7b7 and fixed in 6.6.157 with commit ff28a93a895912010a7827a0e1445ebe8be53b4d Issue introduced in 5.14 with commit aaf2e048af2704da5869f27b508b288f36d5c7b7 and fixed in 6.12.110 with commit cc29f7082b7ab5e0337f27d1fef16359f05fcffa Issue introduced in 5.14 with commit aaf2e048af2704da5869f27b508b288f36d5c7b7 and fixed in 6.18.52 with commit 1fb1236312ee1a600de6b3ca560f0b3fd5a50471 Issue introduced in 5.14 with commit aaf2e048af2704da5869f27b508b288f36d5c7b7 and fixed in 7.2.6 with commit 0b4cf43f9ca7118590a338de900edbd6047cd89f Issue introduced in 5.14 with commit aaf2e048af2704da5869f27b508b288f36d5c7b7 and fixed in 7.3-rc1 with commit f594863967d87b7fcbff6e724d51135fd701a13d
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-90228
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/nvme/target/zns.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/1ce8faf90eb0bf5599b90db38500aefea9426485 https://git.kernel.org/stable/c/b873099944dae5702b4b6db6814d1f1e8d4cfb00 https://git.kernel.org/stable/c/ff28a93a895912010a7827a0e1445ebe8be53b4d https://git.kernel.org/stable/c/cc29f7082b7ab5e0337f27d1fef16359f05fcffa https://git.kernel.org/stable/c/1fb1236312ee1a600de6b3ca560f0b3fd5a50471 https://git.kernel.org/stable/c/0b4cf43f9ca7118590a338de900edbd6047cd89f https://git.kernel.org/stable/c/f594863967d87b7fcbff6e724d51135fd701a13d