CVE-2026-139400

nvme: pass partition flags to passthrough checks

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The Linux kernel’s NVMe implementation allows a local user to issue NVME_IOCTL_IO_CMD commands against namespace block devices that are actually partitions. The code incorrectly passes zero to the permission check, effectively ignoring the flag that indicates a partition. As a result, unprivileged commands can read or write sectors outside the intended partition. This bypass of partition boundaries can lead to data leakage, corruption of other regions, or in the worst case, kernel memory corruption that may enable arbitrary code execution. The weakness is an example of Improper Authorization (CWE‑286).

Affected Systems

All Linux kernels with NVMe support that have not yet incorporated the commit sequence referenced in the advisory are potentially affected. The exact version range is not specified in the advisory, but the patch references recent kernel commits that address the issue. Kernel maintainers and users should verify whether their distribution’s kernel has incorporated those commits.

Risk and Exploitability

The vulnerability is exploitable locally by any user that can send NVMe I/O commands to a device. No elevated privileges are required to trigger the bypass. Because data and potentially kernel memory can be accessed outside the partition bounds, an attacker could exfiltrate confidential data or inject malicious writes. No CVSS score is provided, and the EPSS score is unavailable, but the lack of KEV listing suggests that there is no current evidence of widescale exploitation. Nevertheless, the attack vector—local ioctl usage—makes it practical for privileged users or compromised applications to leverage the flaw. The risk is moderate to high if the attacker can gain access to an NVMe device while the system is running a vulnerable kernel.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that includes the nvme partition guard fix (apply the commits referenced in the advisory).
  • Ensure that NVMe support is compiled and enabled in the kernel configuration so that the permission check is active (CONFIG_NVME).
  • If an immediate kernel update is not possible, limit NVMe device access to root or a trusted set of users by adjusting device file permissions or enforcing SELinux/AppArmor access controls.

Generated by OpenCVE AI on November 30, 2026 at 21:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-286
Type Values Removed Values Added
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.
Title nvme: pass partition flags to passthrough checks
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-286

    Incorrect User Management

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:34 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Nov 30, 2026, 2:19 PM