Bug 1958935 (CVE-2021-3544)

Summary: CVE-2021-3544 QEMU: vhost-user-gpu: multiple memory leaks
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:
Several memory leaks were found in the virtio vhost-user GPU device (vhost-user-gpu) of QEMU. They exist in contrib/vhost-user-gpu/vhost-user-gpu.c and contrib/vhost-user-gpu/virgl.c due to improper release of memory (i.e., free) after effective lifetime.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-29 09:02:39 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: 1959045, 1959059    
Bug Blocks: 1957311, 1959062    

Description Mauro Matteo Cascella 2021-05-10 12:58:40 UTC
Several memory leaks were found in the virtio vhost-user GPU device (vhost-user-gpu) of QEMU. They exist in contrib/vhost-user-gpu/vhost-user-gpu.c and contrib/vhost-user-gpu/virgl.c due to improper release of memory (i.e., free) after effective lifetime. For more information, please refer to the upstream patchset below.

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

Memory leak in vg_resource_create_2d() in vhost-user-gpu.c :
https://lists.nongnu.org/archive/html/qemu-devel/2021-05/msg04541.html

Memory leak in vg_resource_attach_backing() in vhost-user-gpu.c:
https://lists.nongnu.org/archive/html/qemu-devel/2021-05/msg04534.html

Memory leak in vg_resource_destroy() in vhost-user-gpu.c:
https://lists.nongnu.org/archive/html/qemu-devel/2021-05/msg04538.html

Memory leak in virgl_cmd_resource_unref() in virgl.c:
https://lists.nongnu.org/archive/html/qemu-devel/2021-05/msg04540.html

Memory leak in virgl_resource_attach_backing() in virgl.c:
https://lists.nongnu.org/archive/html/qemu-devel/2021-05/msg04537.html

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

Affects: fedora-all [bug 1959045]

Comment 4 Mauro Matteo Cascella 2021-05-12 17:42:02 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 5 Mauro Matteo Cascella 2021-05-12 17:42:24 UTC
For more information about Virgl support in RHEL Advanced Virtualization, please refer to the following bugs:
* [RFE] Enable virgl as TechPreview (qemu) [bz#1559740]
* Drop virgil acceleration support and remove virglrenderer dependency [bz#1831271]