Bug 1958955 (CVE-2021-3545)

Summary: CVE-2021-3545 QEMU: vhost-user-gpu: information disclosure due to uninitialized memory read
Product: [Other] Security Response Reporter: Mauro Matteo Cascella <mcascell>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: berrange, cfergeau, dbecker, jen, jferlan, jforbes, jjoyce, jmaloy, jschluet, knoel, lhh, lpeer, m.a.young, mburns, mkenneth, mrezanin, mst, ondrejj, pbonzini, philmd, ribarry, rjones, sclewis, slinaber, virt-maint, virt-maint
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
An information disclosure vulnerability was found in the virtio vhost-user GPU device (vhost-user-gpu) of QEMU. The flaw exists in virgl_cmd_get_capset_info() in contrib/vhost-user-gpu/virgl.c and could occur due to the read of uninitialized memory. A malicious guest could exploit this issue to leak memory from the host.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-29 09:03:21 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: 1959053, 1959060    
Bug Blocks: 1957311, 1959063    

Description Mauro Matteo Cascella 2021-05-10 13:27:05 UTC
An information disclosure vulnerability was found in the virtio vhost-user GPU device (vhost-user-gpu) of QEMU. The flaw exists in virgl_cmd_get_capset_info() in contrib/vhost-user-gpu/virgl.c and could occur due to the read of uninitialized memory. A malicious guest could exploit this issue to leak memory from the host.

Patch series:
https://lists.nongnu.org/archive/html/qemu-devel/2021-05/msg04536.html

Memory disclosure in virgl_cmd_get_capset_info() in virgl.c:
https://lists.nongnu.org/archive/html/qemu-devel/2021-05/msg04539.html

Comment 2 Mauro Matteo Cascella 2021-05-10 16:09:56 UTC
Created qemu tracking bugs for this issue:

Affects: fedora-all [bug 1959053]

Comment 4 Mauro Matteo Cascella 2021-05-12 17:41:56 UTC
Statement:

This issue does not affect the versions of `qemu-kvm` as shipped with Red Hat Enterprise Linux 6, 7 and 8, as Virgl was not enabled in these versions. Support for Virgl was enabled as technical preview in Red Hat Enterprise Linux Advanced Virtualization 8.2, and later disabled in Red Hat Enterprise Linux Advanced Virtualization 8.3.

Comment 6 Mauro Matteo Cascella 2021-05-31 10:48:42 UTC
Upstream commit:
https://gitlab.com/qemu-project/qemu/-/commit/121841b2