Bug 2218350 (CVE-2023-1295)

Summary: CVE-2023-1295 kernel: io_uring: TOCTOU vulnerability in IORING_OP_CLOSE operation
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: acaringi, allarkin, bhu, chwhite, crwood, dbohanno, ddepaula, debarbos, dfreiber, dvlasenk, ezulian, hkrzesin, jarod, jburrell, jdenham, jfaracco, jferlan, jforbes, jlelli, joe.lawrence, jshortt, jstancek, jwyatt, kcarcia, kernel-mgr, ldoskova, lgoncalv, lleshchi, lzampier, nmurray, ptalbert, qzhao, rogbas, rrobaina, rvrbovsk, rysulliv, scweaver, tyberry, vkumar, walters, wcosta, williams, wmealing, ycote, ymankad
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
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.
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-07-05 13:45:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2218351, 2218355    
Bug Blocks: 2218352    

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