Skip to contentSkip to conversation

CVE-2026-99265: io_uring/openclose: keep the lock in io_pipe_fixed()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Nov 3

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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.

The Linux kernel CVE team has assigned CVE-2026-99265 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.16 with commit 53db8a71ecb42c2ec5e9c6925269a750255f9af5 and fixed in 6.18.60 with commit b4b7b2d19dab611f3cf3d052aa19278e7e4c4683
	Issue introduced in 6.16 with commit 53db8a71ecb42c2ec5e9c6925269a750255f9af5 and fixed in 7.2.14 with commit 7299a32764ab875443b58581d929027954dcf24c

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-99265

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
io_uring/openclose.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/b4b7b2d19dab611f3cf3d052aa19278e7e4c4683
	https://git.kernel.org/stable/c/7299a32764ab875443b58581d929027954dcf24c
	https://git.kernel.org/stable/c/a3d7ee11289f657aa9af826d8f0844221292a27a