CVE-2026-80713: io_uring: preserve task restrictions across exec
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
io_uring: preserve task restrictions across exec
Per-task restrictions apply to all rings created by a task. Once installed, they should not be dropped across exec.
For a task that has used io_uring, the exec cancellation path calls __io_uring_free(). This frees both the task context and the per-task restriction, so a ring created after exec is unrestricted.
Split task context cleanup into io_uring_free_tctx(), and use it from the exec cancellation path. Keep __io_uring_free() for final task cleanup, where both the context and restriction are released.
The Linux kernel CVE team has assigned CVE-2026-80713 to this issue.
Affected and fixed versions
===========================
Issue introduced in 7.0 with commit ed82f35b926b2e505c14b7006473614b8f58b4f4 and fixed in 7.1.8 with commit fcef9325afeecced693a7438e975e4a3f8e2716f Issue introduced in 7.0 with commit ed82f35b926b2e505c14b7006473614b8f58b4f4 and fixed in 7.2 with commit bc0e8faf90e776a2f1f3967a04e8091e6bdb4977
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-80713
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/cancel.c
io_uring/tctx.c
io_uring/tctx.h
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/fcef9325afeecced693a7438e975e4a3f8e2716f https://git.kernel.org/stable/c/bc0e8faf90e776a2f1f3967a04e8091e6bdb4977