KernelScan.io

HIGH Introduced in 6.16

io_uring PipeFixed Race

CVE-2026-99265

CVSS 7.0 / 10.0 KernelScan AI

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

01

In the Linux kernel, the following vulnerability has been resolved: io_uring/openclose: keep the lock in io_pipe_fixed() io_pipe_fixed() installs both ends of the pipe in the fixed file table, drops ->uring_lock, and copies the slot numbers to the application. If that faults, it takes the lock again and removes whatever is in these slots. If the request is run by io-wq the lock really is dropped in between, and the slots are visible to everybody else. By the time the error path gets to them, they may have been closed and reused, by IORING_OP_CLOSE and a direct open or accept, or by IORING_REGISTER_FILES_UPDATE. Then a file is removed from the table that has nothing to do with the failed request. Do the copy with the lock held. Faulting in user memory under ->uring_lock is fine, the registration paths do it all the time.

02

Engine v0.10.0

Risk summary

A local unprivileged user can exploit a race condition in io_uring's IORING_OP_PIPE handling to remove arbitrary file descriptors from the fixed file table, potentially leading to use-after-free, privilege escalation, or kernel crash. The vulnerability is reachable from containers and user namespaces.

Affectedio_uring/openclose.c (io_uring subsystem)

Vulnerability analysis

The io_pipe_fixed() function installs both ends of a pipe into the fixed file table, then drops the uring lock before copying the slot numbers to user space. If the copy faults, it re-acquires the lock and removes whatever occupies those slots. When the request runs via io-wq worker threads, the lock is genuinely released during the copy, creating a window where concurrent operations (close, open, accept, or file registration updates) can close and reuse those slots. The error path then removes the wrong file — one unrelated to the failed pipe operation — causing file descriptor corruption, use-after-free, or kernel instability. The fix holds the lock across the copy_to_user() call so the slots cannot be reused before the error path examines them. Any local user with access to io_uring (including inside containers and user namespaces) can trigger this race, though winning it requires precise timing.

03

BranchIntroducedFixed inPatch commit
6.186.166.18.60b4b7b2d19dab
7.26.167.2.147299a32764ab
mainline6.167.4-rc1a3d7ee11289f