CVE-2026-99801: Linux kernel io_uring BPF ops submit SQEs with the BPF run context still set, so a task without the capability can change protected socket options

ByLinuxtastic

December 2, 2026 #CVE, #Linux Kernel

Kernel 7.1 added BPF ops for io_uring: a struct_ops program that drives a ring from inside the kernel and can submit SQEs itself. The kernel CNA record says the program “calls io_submit_sqes() from inside the loop program, with current->bpf_ctx set, and requests issued inline run with it set too”, and that the socket code uses that context to recognise calls from bpf_setsockopt(), “where the caller holds the socket lock and has already been vetted, and skips both.” A SOCKET_URING_OP_SETSOCKOPT taken from the submission queue therefore passed sockopt_capable() with no capability and ran without lock_sock(). Red Hat rates it Important at 7.8; it is a 7.1 regression, so no enterprise kernel carries it. On a 7.1, 7.2, 7.3.0 or 7.3.1 kernel, upgrade to 7.3.2 or later; until then set kernel.io_uring_disabled=2 or keep kernel.unprivileged_bpf_disabled=1, which stops an unprivileged task reaching the path at all.

CVE-2026-99801 at a glance.

ComponentLinux kernel, io_uring BPF ops (io_uring/bpf-ops.c, new in 7.1); the exposed callers are the socket option and SOCK_DESTROY paths under net/ that trust has_current_bpf_ctx()
Affected versionsfrom 890819248a86 (“io_uring/bpf-ops: add kfunc helpers”): 7.1, 7.2, 7.3.0 and 7.3.1; everything before 7.1 is unaffected because the code does not exist there, and 7.3.2 onward is fixed
Fixed inmainline 7.4-rc1 (commit 8543a39f, Chris Mason, authored 21 October 2026, io_uring/bpf-ops.c +15/−1: save the run context, call bpf_set_run_ctx(NULL) around io_submit_sqes(), restore it after) and stable 7.3.2 (521861b1). No Reported-by and no Cc: stable trailer on the commit
SeverityRed Hat Important, CVSS 3.1 7.8 (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, draft, CWE-270 privilege context switching error), bug 2577834 “Privilege escalation via uncleared BPF context in io_uring”; Ubuntu High, showing CVSS 4.0 7.1 (AV:L/AC:L/AT:P/PR:H/UI:N/VC:H/VI:H/VA:H); SUSE 5.1 Moderate (AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:H); the kernel CNA gives no score and NVD (Received, 20 November) carries none
Exploited in the wildNot on the CISA KEV catalogue (2026.11.30). EPSS 0.00274 (21st percentile) on 1 December 2026
Who is exposedA host on 7.1 to 7.3.1 where a local task can both create an io_uring ring and attach a BPF ops program to it. The record speaks of “a task with no capability” for the socket options; whether an unprivileged task can load the struct_ops program in the first place is governed by kernel.unprivileged_bpf_disabled, which every major distribution ships as 1 or 2. Red Hat: “remote exploitation is not possible”
PublishedCVE record 20 November 2026 (kernel CNA); this page built 2 December 2026, last updated 2 December 2026

What it is

io_uring’s BPF ops let a program run inside the ring’s wait loop and, through kfunc helpers, submit SQEs on the ring’s behalf. While a BPF program runs, current->bpf_ctx points at its run context, and several places in the network stack use has_current_bpf_ctx() as shorthand for “we were called from bpf_setsockopt() or a sibling helper”: such a caller already holds the socket lock and has already been permission-checked, so the socket code skips both lock_sock() and the capability test.

The record describes what that meant for SQEs submitted from the program. bpf_io_uring_submit_sqes() called io_submit_sqes() with the context still set, and the requests it issued inline inherited it. A SOCKET_URING_OP_SETSOCKOPT placed in the queue by userspace thus “passes sockopt_capable() without the capability, and runs without lock_sock(). A task with no capability can set SO_MARK, IP_TRANSPARENT or TCP_REPAIR, and two threads changing IP_OPTIONS on one socket, one through the ring, double free in no time. SOCK_DESTROY via IORING_OP_SENDMSG ends up in tcp_abort() without the lock the same way.” Red Hat’s summary is privilege escalation, memory corruption or denial of service by a local unprivileged attacker.

The fix is small and direct: commit 8543a39f clears the run context around io_submit_sqes() and restores it afterwards, so SQEs that come from userspace are issued like those of any other ring. The record notes they still run inside the program’s RCU tasks trace read section, so a request that sleeps there holds up that grace period, “but other request types do that already.” The change is 15 lines in io_uring/bpf-ops.c, written by Chris Mason and committed by Jens Axboe; Debian places it in 7.4-rc1, and 7.3.2 carries the backport.

Who is affected on Linux

Each row is what the distribution’s own security tracker said on 2 December 2026; the link in the row is the tracker page, which will be newer than this one. Because the vulnerable code arrived in 7.1, only distributions shipping a 7.1 to 7.3.1 kernel are affected, which in practice means rolling releases, Ubuntu 26.10 and self-built kernels.

DistributionStatusFixed package
AlpineNot consulted for this page: the Alpine tracker refused the automated reader on 2 December 2026—
Debianbookworm (6.1) and trixie (6.12) not affected (“Vulnerable code not present”); forky (7.3.5-1) and sid (7.3.6-1) fixed, first fixed upload 7.3.3-1unstable 7.3.3-1
UbuntuHigh. 26.10 (stonking): linux vulnerable, “work in progress in 7.3.0-12.13”, and the aws, azure, gcp, oracle, raspi, realtime and riscv flavours vulnerable; 26.04 LTS, 24.04 LTS, 22.04 LTS, 20.04 LTS and older not affected— (pending for 26.10)
RHEL, Rocky, Alma, CentOS StreamImportant, 7.8 (bug 2577834, CWE-270); kernel and kernel-rt not affected in RHEL 6, 7, 8, 9 and 10 and every OpenShift 4/5 RHCOS image, none of which is on 7.1— (not affected)
openSUSE/SLEResolved, Moderate 5.1 (bug 1291388): every SLE and openSUSE Leap product not affected— (not affected)
Fedora, Arch; self-built kernelsNot consulted; upstream stable versions apply. Arch and Fedora Rawhide track the 7.3 series7.3.2 or later

How to check

The kernel version answers most of it; after that the questions are whether io_uring and BPF are reachable by unprivileged tasks on this host.

# 1. the running kernel: affected only if 7.1 <= version < 7.3.2 (fixed in 7.3.2 and 7.4-rc1)
uname -r

# 2. is the io_uring BPF ops code built in at all (option names as the kernel config spells them)
grep -E 'CONFIG_IO_URING|CONFIG_BPF_SYSCALL|CONFIG_BPF_JIT' /boot/config-$(uname -r) 2>/dev/null

# 3. can an unprivileged task reach the path: io_uring and BPF sysctls
sysctl kernel.io_uring_disabled kernel.unprivileged_bpf_disabled 2>/dev/null

# 4. rings and BPF programs in use right now (for context, not proof)
ls -l /proc/[0-9]*/fd 2>/dev/null | grep -c 'anon_inode:\[io_uring\]'
bpftool prog list 2>/dev/null | grep -i struct_ops

A kernel before 7.1 or at 7.3.2 or later ends the matter. On an affected version, kernel.io_uring_disabled=2 means no ring can be created and the path is closed; 1 limits rings to processes with CAP_SYS_ADMIN or in the io_uring_group. kernel.unprivileged_bpf_disabled=1 (the default on every major distribution) means only a task with CAP_BPF can load the struct_ops program, which is the capability the socket check was meant to demand in the first place, so the practical exposure is a host where both sysctls are 0 or where a semi-trusted service already holds CAP_BPF but not CAP_NET_ADMIN.

How to fix it

Update to 7.3.2 or later and reboot. There is no errata for the enterprise distributions because none ships the code; the fix matters to Ubuntu 26.10, Arch, Fedora Rawhide and anyone running a 7.1 to 7.3.1 kernel they built themselves.

# Ubuntu 26.10: the 7.3.0-12.13 upload is marked "work in progress"; once it is released
apt update && apt install linux-generic && systemctl reboot
# Debian forky / sid: 7.3.3-1 and later carry the fix
apt update && apt install linux-image-amd64 && systemctl reboot
# Arch and other rolling distributions: 7.3.2 or later
pacman -Syu linux && systemctl reboot
# Interim: disable io_uring for unprivileged processes (2 = disabled for everyone, 1 = CAP_SYS_ADMIN or io_uring_group only)
sysctl -w kernel.io_uring_disabled=2
printf 'kernel.io_uring_disabled = 2\n' > /etc/sysctl.d/90-io-uring.conf
# and keep unprivileged BPF off, which is the distribution default
sysctl -w kernel.unprivileged_bpf_disabled=1

Disabling io_uring is the broad interim measure and is already policy on many hardened hosts; disabling unprivileged BPF is narrower and is almost certainly already in place. What not to do: do not rely on a seccomp filter on the setsockopt system call to cover this. The option change travels as an io_uring request, not as a setsockopt() call, so a filter on that syscall never sees it; a filter on io_uring_setup or on bpf does.

Sources

  • CVE-2026-99801 at CVE.org — the kernel CNA record: the “with current->bpf_ctx set” paragraph, the SO_MARK/IP_TRANSPARENT/TCP_REPAIR sentence, the SOCK_DESTROY note and the 7.1 to 7.3.2 range (20 November 2026)
  • Fix commit 8543a39f (Chris Mason, authored 21 October 2026, committed by Jens Axboe; mainline 7.4-rc1 per Debian; io_uring/bpf-ops.c +15/−1; Fixes: 890819248a86) and the 7.3.2 backport 521861b1; both read on 2 December 2026, git.kernel.org refuses automated readers
  • NVD entry — Received on 20 November 2026; no CVSS metric and no CWE on 2 December 2026
  • Distribution trackers: Debian (bookworm and trixie not affected, unstable fixed in 7.3.3-1) · Ubuntu (High, 26.10 vulnerable and in progress, older releases not affected; read on 2 December 2026) · Red Hat (Important 7.8, bug 2577834, CWE-270, every RHEL kernel not affected) · SUSE (Resolved, Moderate 5.1, bug 1291388, not affected) · Alpine (refused the automated reader on 2 December 2026)
  • CISA KEV catalogue 2026.11.30, not listed · EPSS 0.00274 (percentile 0.212) on 1 December 2026

Related reading

This advisory page was assembled from the primary sources listed above on 2 December 2026 and is updated when they change. The facts are theirs; the checks and the ordering are ours. If a row in the distribution table is out of date, the tracker link in that row is the current word.