Bug 2148506 (CVE-2022-4144)

Summary: CVE-2022-4144 QEMU: QXL: qxl_phys2virt unsafe address translation can lead to out-of-bounds read
Product: [Other] Security Response Reporter: Mauro Matteo Cascella <mcascell>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: cfergeau, ddepaula, eglynn, jen, jferlan, jjoyce, jmaloy, knoel, kraxel, lhh, mburns, mgarciac, mkenneth, mrezanin, mst, pbonzini, rh-spice-bugs, spower, virt-maint
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: qemu-kvm 7.2.0 Doc Type: If docs needed, set a value
Doc Text:
An out-of-bounds read flaw was found in the QXL display device emulation in QEMU. The qxl_phys2virt() function does not check the size of the structure pointed to by the guest's physical address, potentially reading past the end of the bar space into adjacent pages. This could allow a malicious guest user to crash the QEMU process on the host, causing a denial of service. Spice was found to be affected by the same CVE.
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-01-26 22:22:37 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 2148543, 2148542, 2148545, 2148546, 2152085, 2152086, 2156043, 2165530    
Bug Blocks: 2118724    

Description Mauro Matteo Cascella 2022-11-25 17:03:08 UTC
qxl_phys2virt() does not check the size of the structure pointed to by the guest physical address pqxl. If pqxl is near the end of the bar1 space, subsequent access to its fields may read past the end into adjacent pages.

Proposed patch by Philippe Mathieu-Daudé:

Comment 1 Mauro Matteo Cascella 2022-11-25 19:58:28 UTC
Created qemu tracking bugs for this issue:

Affects: epel-all [bug 2148543]
Affects: fedora-all [bug 2148542]

Comment 9 errata-xmlrpc 2023-01-12 09:18:50 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2023:0099 https://access.redhat.com/errata/RHSA-2023:0099

Comment 10 errata-xmlrpc 2023-01-24 14:39:35 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Extended Update Support

Via RHSA-2023:0432 https://access.redhat.com/errata/RHSA-2023:0432

Comment 11 Product Security DevOps Team 2023-01-26 22:22:34 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):


Comment 14 Mauro Matteo Cascella 2023-01-30 11:24:34 UTC
Created spice tracking bugs for this issue:

Affects: fedora-all [bug 2165530]