Skip to content

vhost-user-gpu: fix several security issues

Li Qiang qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest8 patches 2 repliesIn review
  2. v17 patches 20 repliesSuperseded

Changes in v2 from the cover letter

Add the CVE information:
Several memory leak issues is combined assigned CVE-2021-3544. Information disclosure is assigned CVE-2021-3545. OOB memory write access is assigned CVE-2021-3545.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8vhost-user-gpu: fix memory disclosure in virgl_cmd_get_capset_info (CVE-2021-3545)contrib/vhost-user-gpu/virgl.c+1 -00 replies
2/8vhost-user-gpu: fix resource leak in 'vg_resource_create_2d' (CVE-2021-3544)contrib/vhost-user-gpu/vhost-user-gpu.c+1 -00 replies
3/8vhost-user-gpu: fix memory leak in vg_resource_attach_backing (CVE-2021-3544)contrib/vhost-user-gpu/vhost-user-gpu.c+5 -00 replies
4/8vhost-user-gpu: fix memory leak while calling 'vg_resource_unref' (CVE-2021-3544)contrib/vhost-user-gpu/vhost-user-gpu.c+1 -00 replies
5/8vhost-user-gpu: fix memory leak in 'virgl_cmd_resource_unref' (CVE-2021-3544)contrib/vhost-user-gpu/virgl.c+7 -00 replies
6/8vhost-user-gpu: fix memory leak in 'virgl_resource_attach_backing' (CVE-2021-3544)contrib/vhost-user-gpu/virgl.c+4 -10 replies
7/8vhost-user-gpu: fix OOB write in 'virgl_cmd_get_capset' (CVE-2021-3546)contrib/vhost-user-gpu/virgl.c+4 -00 replies
8/8vhost-user-gpu: abstract vg_cleanup_mapping_iovcontrib/vhost-user-gpu/vhost-user-gpu.c contrib/vhost-user-gpu/virgl.c contrib/vhost-user-gpu/vugpu.h+26 -90 replies

Reviews trailers per patch

3 of 8 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchPrasad J PanditMarc-André Lureau
SeriesR-b
1/8
2/8R-b
3/8
4/8R-b
5/8
6/8
7/8R-b
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/8] vhost-user-gpu: fix several security issues

These security issue is low severity and is similar with the virtio-vga/virtio-gpu device. All of them can be triggered by the guest user.

Change since v1:
Add the CVE information:
Several memory leak issues is combined assigned CVE-2021-3544. Information disclosure is assigned CVE-2021-3545. OOB memory write access is assigned CVE-2021-3545.

Abstract 'vg_cleanup_mapping_iov' to make code more clearly.

Li Qiang (8):
vhost-user-gpu: fix memory disclosure in virgl_cmd_get_capset_info

    (CVE-2021-3545)
  vhost-user-gpu: fix resource leak in 'vg_resource_create_2d'
    (CVE-2021-3544)
  vhost-user-gpu: fix memory leak in vg_resource_attach_backing
    (CVE-2021-3544)
  vhost-user-gpu: fix memory leak while calling 'vg_resource_unref'
    (CVE-2021-3544)
  vhost-user-gpu: fix memory leak in 'virgl_cmd_resource_unref'
    (CVE-2021-3544)
  vhost-user-gpu: fix memory leak in 'virgl_resource_attach_backing'
    (CVE-2021-3544)
  vhost-user-gpu: fix OOB write in 'virgl_cmd_get_capset'
    (CVE-2021-3546)

vhost-user-gpu: abstract vg_cleanup_mapping_iov

 contrib/vhost-user-gpu/vhost-user-gpu.c | 29 ++++++++++++++++++++++---
 contrib/vhost-user-gpu/virgl.c          | 20 +++++++++++++++--
 contrib/vhost-user-gpu/vugpu.h          |  2 +-
 3 files changed, 45 insertions(+), 6 deletions(-)
Signature · 1 line
2.25.1