nvme/ioctl: check SUBMIT_IO with nvme_cmd_allowed()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
nvme/ioctl: check SUBMIT_IO with nvme_cmd_allowed()
Unlike IO_CMD / IO64_CMD, NVME_IOCTL_SUBMIT_IO never calls nvme_cmd_allowed(). Unprivileged callers can thus issue I/O on a partition device or write through a read-only file descriptor.
Pass flags and open_for_write through and reject disallowed commands with -EACCES.
From the CVE record · Linux
The Linux kernel’s NVME_IOCTL_SUBMIT_IO path does not check whether a command is allowed. An unprivileged local caller can issue I/O on a partition device or write through a read-only file descriptor; no additional user interaction is described.
Engineers running Linux kernels with the affected NVME_IOCTL_SUBMIT_IO implementation should check their systems; affected versions are not specified.