Bug 2148506 (CVE-2022-4144) - CVE-2022-4144 QEMU: QXL: qxl_phys2virt unsafe address translation can lead to out-of-bounds read
Summary: CVE-2022-4144 QEMU: QXL: qxl_phys2virt unsafe address translation can lead to...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2022-4144
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2148543 2148542 2148545 2148546 2152085 2152086 2156043 2165530
Blocks: 2118724
TreeView+ depends on / blocked
 
Reported: 2022-11-25 17:03 UTC by Mauro Matteo Cascella
Modified: 2023-01-30 11:36 UTC (History)
19 users (show)

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.
Clone Of:
Environment:
Last Closed: 2023-01-26 22:22:37 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2023:0099 0 None None None 2023-01-12 09:18:52 UTC
Red Hat Product Errata RHSA-2023:0432 0 None None None 2023-01-24 14:39:37 UTC

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é:
https://lists.nongnu.org/archive/html/qemu-devel/2022-11/msg04143.html

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):

https://access.redhat.com/security/cve/cve-2022-4144

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

Affects: fedora-all [bug 2165530]


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