Bug 1958935 (CVE-2021-3544) - CVE-2021-3544 QEMU: vhost-user-gpu: multiple memory leaks
Summary: CVE-2021-3544 QEMU: vhost-user-gpu: multiple memory leaks
Keywords:
Status: CLOSED WONTFIX
Alias: CVE-2021-3544
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1959045 1959059
Blocks: 1957311 1959062
TreeView+ depends on / blocked
 
Reported: 2021-05-10 12:58 UTC by Mauro Matteo Cascella
Modified: 2021-10-29 09:02 UTC (History)
26 users (show)

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.
Clone Of:
Environment:
Last Closed: 2021-10-29 09:02:39 UTC
Embargoed:


Attachments (Terms of Use)

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]


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