Bug 2218350 (CVE-2023-1295) - CVE-2023-1295 kernel: io_uring: TOCTOU vulnerability in IORING_OP_CLOSE operation
Summary: CVE-2023-1295 kernel: io_uring: TOCTOU vulnerability in IORING_OP_CLOSE opera...
Keywords:
Status: CLOSED NOTABUG
Alias: CVE-2023-1295
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2218351 2218355
Blocks: 2218352
TreeView+ depends on / blocked
 
Reported: 2023-06-28 19:30 UTC by Guilherme de Almeida Suckevicz
Modified: 2023-07-05 13:45 UTC (History)
45 users (show)

Fixed In Version: kernel 5.12-rc2
Doc Type: If docs needed, set a value
Doc Text:
A time-of-check to time-of-use flaw was found in the io_uring subsystem's IORING_OP_CLOSE operation in the Linux kernel. This flaw allows a local user to elevate their privileges to root.
Clone Of:
Environment:
Last Closed: 2023-07-05 13:45:58 UTC
Embargoed:


Attachments (Terms of Use)

Description Guilherme de Almeida Suckevicz 2023-06-28 19:30:49 UTC
A time-of-check to time-of-use issue exists in io_uring subsystem's IORING_OP_CLOSE operation in the Linux kernel's versions 5.6 - 5.11 (inclusive), which allows a local user to elevate their privileges to root. Introduced in b5dba59e0cf7e2cc4d3b3b1ac5fe81ddf21959eb, patched in 9eac1904d3364254d622bf2c771c4f85cd435fc2, backported to stable in 788d0824269bef539fe31a785b1517882eafed93.

References:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b5dba59e0cf7e2cc4d3b3b1ac5fe81ddf21959eb
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=788d0824269bef539fe31a785b1517882eafed93
https://kernel.dance/788d0824269bef539fe31a785b1517882eafed93
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=9eac1904d3364254d622bf2c771c4f85cd435fc2
https://kernel.dance/9eac1904d3364254d622bf2c771c4f85cd435fc2

Comment 1 Guilherme de Almeida Suckevicz 2023-06-28 19:31:22 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2218351]

Comment 8 Justin M. Forbes 2023-07-03 17:52:39 UTC
This was fixed for Fedora with the 5.11.6 stable kernel update.

Comment 10 Product Security DevOps Team 2023-07-05 13:45:55 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2023-1295


Note You need to log in before you can comment on or make changes to this bug.