Skip to contentSkip to conversation

CVE-2026-99096: io_uring/register: don't exempt disabled rings from task restrictions

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 26

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/register: don't exempt disabled rings from task restrictions

A ring created with IORING_SETUP_R_DISABLED is exempt from its register restrictions until it is enabled. This lets the creator register the restrictions and then enable the ring with IORING_REGISTER_ENABLE_RINGS, whether or not that opcode is in the allowed set.

Since commit ed82f35b926b ("io_uring: allow registration of per-task restrictions"), a ring also inherits restrictions from the task that creates it, and the same exemption applies to those. A task whose register opcodes are restricted can therefore create a disabled ring, issue any register opcode on it, and then enable it.

Mark rings whose restrictions were inherited from the task, and keep checking register opcodes for them while the ring is disabled. Enabling such a ring now requires IORING_REGISTER_ENABLE_RINGS to be in the task's allowed set. Per-ring restrictions registered on a disabled ring work as before.

[axboe: amend with inheritance flag fixup]

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

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

	Issue introduced in 7.0 with commit ed82f35b926b2e505c14b7006473614b8f58b4f4 and fixed in 7.2.11 with commit f55c240192ded562386de843bfa067671d2731d5
	Issue introduced in 7.0 with commit ed82f35b926b2e505c14b7006473614b8f58b4f4 and fixed in 7.3 with commit 6da8f402e362b2f546e2efb7167fc9597aef6faf

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-99096

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:
include/linux/io_uring_types.h
io_uring/io_uring.c
io_uring/register.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/f55c240192ded562386de843bfa067671d2731d5
	https://git.kernel.org/stable/c/6da8f402e362b2f546e2efb7167fc9597aef6faf