CVE-2026-72112

Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
15/08/2026
Last modified:
17/08/2026

Description

In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> io_uring/bpf-ops: reject re-registration of an already-bound ops<br /> <br /> io_install_bpf() only rejects a second registration on the ctx side<br /> (ctx-&gt;bpf_ops) and sets the per-map back-pointer ops-&gt;priv<br /> unconditionally. The struct_ops link path never advances a map past<br /> BPF_STRUCT_OPS_STATE_READY, so the same io_uring_bpf_ops map can be<br /> registered more than once, and bpf_io_reg() re-resolves the target ring<br /> via fget(ops-&gt;ring_fd) on every call. A caller can therefore point the<br /> same ring_fd at a different io_ring_ctx between two BPF_LINK_CREATE<br /> calls.<br /> <br /> The second registration passes the ctx-&gt;bpf_ops check (the new ctx has<br /> none) and overwrites ops-&gt;priv, orphaning the first ctx. Teardown<br /> (io_eject_bpf()/bpf_io_unreg()) only reaches a ctx through ops-&gt;priv, so<br /> the orphaned ctx is never torn down: its ctx-&gt;loop_step keeps pointing<br /> into the struct_ops trampoline, which is freed once the map is gone. A<br /> later io_uring_enter() on the orphaned ring then calls the dangling<br /> ctx-&gt;loop_step from io_run_loop() -- a use-after-free of freed<br /> executable memory, reachable by a task with CAP_BPF + CAP_PERFMON.<br /> <br /> Reject registration when ops-&gt;priv is already set, as hid_bpf_reg()<br /> does for its struct_ops.