Database/Kernel, userspace & hypervisor
Linux kernel SCSI bsg: TOCTOU on the shared io_uring SQE overflows the SCSI command buffer
Impact
scsi_bsg_uring_cmd() reads the bsg_uring_cmd structure straight out of the mmap'd io_uring submission queue entry, which userspace can still write. request_len is validated and then re-read at use time, so it can grow past sizeof(scmd->cmnd) between the bound check and the copy_from_user(), overflowing the SCSI command buffer inside the kernel. That is a controlled kernel heap/stack write reachable from whoever holds the bsg device, which is a straightforward local privilege escalation primitive. On a GPU node that matters wherever SCSI passthrough is handed to a container for storage tooling or enclosure management - a container escape there takes the whole node and every co-tenant pod on it.
Who can reach it
Local. A process that can open a /dev/bsg/* device and submit io_uring passthrough commands - normally root or a container granted that device node. No authentication over the network.
What to do
Take the stable kernel fix that READ_ONCE()s the SQE fields into locals before checking and using them (commits 4b3c5965fca9, f033530105aa). Requires installing the patched kernel and rebooting each node; drain GPU workloads first. Until then, do not expose /dev/bsg/* into containers and keep SCSI generic passthrough restricted to trusted host tooling.
References
Related entries
- Linux kernel bsg: sense data copy ignores max_response_len and overruns the user bufferCVE-2026-90010 · Linux kernel SCSI bsg (io_uring sense copy)High
- Linux kernel page allocator: unsafe spin_trylock in NMI context on uniprocessor buildsCVE-2026-90046 · Linux kernel mm/page_alloc (free_pages_nolock in NMI on UP builds)High
- Linux kernel acomp: stack-request clone is undersized, letting async offload drivers write past the slab objectCVE-2026-90069 · Linux kernel crypto acomp (ACOMP_REQUEST_ON_STACK request cloning)High
- Linux kernel XDP: BPF_LINK_UPDATE bypasses offload checks, putting a device-bound program on the software pathCVE-2026-90146 · Linux kernel bpf/xdp (bpf_xdp_link_update offload checks)High
- Linux kernel BPF verifier (atomic RMW destination pointer type tracking): The verifier recorded an instruction'sCVE-2026-90177 · Linux kernel BPF verifier (atomic RMW destination pointer type tracking)High
- Linux kernel BPF: use-after-free when multi-attach trampoline update fails and the still-live old image is freedCVE-2026-90210 · Linux kernel BPF trampoline (bpf_trampoline_multi_attach_free on update failure)High
This entry is curated: imported from vendor advisories with machine assistance, not yet individually verified. Confirm against your vendor's advisory before acting, and report anything wrong.