CVE-2026-139400: nvme: pass partition flags to passthrough checks
In the Linux kernel, the following vulnerability has been resolved:
nvme: pass partition flags to passthrough checks
nvmeusercmd() handles NVMEIOCTLIOCMD on namespace block devices, including partitions. It receives flags identifying a partition, but passes 0 to nvmecmdallowed(), 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.119 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.65 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.6-1
Event History
Frequently Asked Questions
Who can exploit this issue?
An unprivileged local user who can issue NVME_IOCTL_IO_CMD passthrough commands against an NVMe namespace partition may be able to exploit it.
What access does exploitation provide?
The bypass can allow passthrough commands issued through a partition device to access sectors outside that partition.
Are whole-namespace NVMe devices affected in the same way?
The described bypass is specific to namespace block-device partitions, because their partition-identifying flags were not passed to the passthrough permission check.
What does the fix change?
The fix passes partition flags to nvme_cmd_allowed(), causing unprivileged passthrough commands on partitions to be rejected.