CVE-2026-139400
published high CVSS 3.1 · 7.8nvme: pass partition flags to passthrough checks
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux313c08c72ee7f87c54e34baec5cc4f4005e8800d to < 75849948cf4401c7bf01e0ac7a070c48c4e733a8 · 313c08c72ee7f87c54e34baec5cc4f4005e8800d to < be556c7761d5f9cbaae5baba821940d5b0523e89 · 313c08c72ee7f87c54e34baec5cc4f4005e8800d to < c2b4c37bd98626ba9436823672cdc54d35ce143d · 313c08c72ee7f87c54e34baec5cc4f4005e8800d to < 2ee5a26ec6d3b3e2b3d6ed981b46d9bd59a1fd4d · 313c08c72ee7f87c54e34baec5cc4f4005e8800d to < 6908a702955929b0876baac9fdc57070780a76f0 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.2 (affected) · 0 to < 6.2 (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.119 through 6.12.* (unaffected · semver) · 6.18.65 through 6.18.* (unaffected · semver) · 7.3.6 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected; Pending Fix | Not stated | Amazon Linux assessment |
Description
In the Linux kernel, the following vulnerability has been resolved: nvme: pass partition flags to passthrough checks nvme_user_cmd() handles NVME_IOCTL_IO_CMD on namespace block devices, including partitions. It receives flags identifying a partition, but passes 0 to nvme_cmd_allowed(), bypassing the partition guard and allowing unprivileged passthrough commands to access sectors outside the partition. Pass flags to the permission check, rejecting unprivileged commands on partitions.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The trigger is a local ioctl(NVME_IOCTL_IO_CMD) on an NVMe partition block device (blkdev_ioctl -> nvme_ioctl or nvme_ns_head_ioctl -> nvme_ns_ioctl -> nvme_user_cmd). The attacker supplies the passthrough command from userspace, and no remote protocol carries it. AC:L - One deterministic ioctl with an arbitrary SLBA in cdw10/11; no race involved. nvme_user_cmd passes 0 instead of flags to nvme_cmd_allowed, and nvme_submit_user_cmd sends the command to ns->queue with no partition remap or bounds check. Read/Write only need CSUPP set in the controller's Commands Supported and Effects log, which common drives report. PR:L - Needs only an open fd on a delegated partition (e.g. docker --device, a raw-block PV or a udev grant) and no CAP_SYS_ADMIN in init_user_ns. That is the exact case the NVME_IOCTL_PARTITION guard in nvme_cmd_allowed exists to block. Holders of CAP_SYS_ADMIN already bypass the check, so the bug only helps low-privilege holders. UI:N - The attacker opens their own delegated partition and issues the ioctl. No other user, mount or admin action is needed at the time of the attack. S:U - The kernel's partition check is bypassed and the impact lands on data in the same namespace (other partitions on the same NVMe namespace), all under the same kernel authority. This is a standard kernel privilege escalation, not a VM or IOMMU boundary crossing. C:H - An nvme_cmd_read passthrough with any SLBA, which works even on an O_RDONLY fd, reads every block of the namespace. That includes other partitions such as the host root filesystem, /etc/shadow and keys, not just the delegated partition. I:H - With the partition open for write, Write, Write Zeroes and Write Uncorrectable (CSUPP+LBCC, allowed by nvme_ns_cmd_allowed) can change any LBA in the namespace. Overwriting host root filesystem binaries or config on another partition leads to root code execution on the host. A:H - Arbitrary writes, Write Zeroes or Write Uncorrectable to LBAs outside the partition can destroy the host's root filesystem and partition table, leaving the system unbootable and its data unrecoverable.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 313c08c72ee7f87c54e34baec5cc4f4005e8800d to < 75849948cf4401c7bf01e0ac7a070c48c4e733a8 (affected · git)313c08c72ee7f87c54e34baec5cc4f4005e8800d to < be556c7761d5f9cbaae5baba821940d5b0523e89 (affected · git)313c08c72ee7f87c54e34baec5cc4f4005e8800d to < c2b4c37bd98626ba9436823672cdc54d35ce143d (affected · git)313c08c72ee7f87c54e34baec5cc4f4005e8800d to < 2ee5a26ec6d3b3e2b3d6ed981b46d9bd59a1fd4d (affected · git)313c08c72ee7f87c54e34baec5cc4f4005e8800d to < 6908a702955929b0876baac9fdc57070780a76f0 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.2 (affected)0 to < 6.2 (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.119 through 6.12.* (unaffected · semver)6.18.65 through 6.18.* (unaffected · semver)7.3.6 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
5- https://git.kernel.org/stable/c/2ee5a26ec6d3b3e2b3d6ed981b46d9bd59a1fd4d
- https://git.kernel.org/stable/c/6908a702955929b0876baac9fdc57070780a76f0
- https://git.kernel.org/stable/c/75849948cf4401c7bf01e0ac7a070c48c4e733a8
- https://git.kernel.org/stable/c/be556c7761d5f9cbaae5baba821940d5b0523e89
- https://git.kernel.org/stable/c/c2b4c37bd98626ba9436823672cdc54d35ce143d
Provider assertions
1Linux · cna
nvme: pass partition flags to passthrough checks
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 84fa7cb5cb262e2335c9678523d31144dd6ae993d9f8e8f41b34b8a3f0bf2890
- Ingested
- 01 Dec 2026, 05:47:22 UTC
- Source record
- Official CVE record