Bug 2218332 (CVE-2023-39198, ZDI-CAN-20940)

Summary: CVE-2023-39198 kernel: QXL: race condition leading to use-after-free in qxl_mode_dumb_create()
Product: [Other] Security Response Reporter: Mauro Matteo Cascella <mcascell>
Component: vulnerabilityAssignee: Nobody <nobody>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: acaringi, airlied, allarkin, bhu, chwhite, crwood, cye, cyin, dakr, dbohanno, ddepaula, debarbos, dfreiber, dvlasenk, ezulian, hkrzesin, jarod, jburrell, jdenham, jfaracco, jferlan, jforbes, jlelli, joe.lawrence, jshortt, jstancek, jwyatt, kcarcia, ldoskova, lgoncalv, lzampier, mstowell, nmurray, ptalbert, qzhao, rogbas, rparrazo, rrobaina, rvrbovsk, rysulliv, scweaver, security-response-team, tglozar, tyberry, vkumar, walters, wcosta, williams, wmealing, ycote, ykopkova, ymankad, zhijwang
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: kernel 6.5-rc7 Doc Type: If docs needed, set a value
Doc Text:
A race condition was found in the QXL driver in the Linux kernel. The qxl_mode_dumb_create() function dereferences the qobj returned by the qxl_gem_object_create_with_handle(), but the handle is the only one holding a reference to it. This flaw allows an attacker to guess the returned handle value and trigger a use-after-free issue, potentially leading to a denial of service or privilege escalation.
Story Points: ---
Clone Of: Environment:
Last Closed: 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: 2218333, 2218334, 2218335, 2218336, 2248704    
Bug Blocks: 2209594    

Description Mauro Matteo Cascella 2023-06-28 18:58:17 UTC
A race condition leading to a use-after-free issue was found in the QXL driver in the Linux kernel.

Comment 12 Mauro Matteo Cascella 2023-11-08 13:32:32 UTC
Upstream fix:
https://github.com/torvalds/linux/commit/c611589b4259ed63b9b77be6872b1ce07ec0ac16

Comment 13 Mauro Matteo Cascella 2023-11-08 13:33:30 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2248704]

Comment 14 Justin M. Forbes 2023-11-08 18:09:42 UTC
This was fixed for Fedora with the 6.4.12 stable kernel updates.

Comment 15 errata-xmlrpc 2024-04-30 10:10:05 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2024:2394 https://access.redhat.com/errata/RHSA-2024:2394

Comment 16 errata-xmlrpc 2024-05-22 09:12:54 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2024:2950 https://access.redhat.com/errata/RHSA-2024:2950

Comment 17 errata-xmlrpc 2024-05-22 09:50:29 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2024:3138 https://access.redhat.com/errata/RHSA-2024:3138