Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP2:Update
xen.12882
CVE-2017-7718-qemut-display-cirrus-OOB-read-acc...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File CVE-2017-7718-qemut-display-cirrus-OOB-read-access-issue.patch of Package xen.12882
Subject: fix :cirrus_vga fix OOB read case qemu Segmentation fault From: hangaohuai hangaohuai@huawei.com Tue Mar 14 14:39:19 2017 +0800 Date: Thu Mar 16 08:58:15 2017 +0100: Git: 215902d7b6fb50c6fc216fc74f770858278ed904 check the validity of parameters in cirrus_bitblt_rop_fwd_transp_xxx and cirrus_bitblt_rop_fwd_xxx to avoid the OOB read which causes qemu Segmentation fault. After the fix, we will touch the assert in cirrus_invalidate_region: assert(off_cur_end >= off_cur); Signed-off-by: fangying <fangying1@huawei.com> Signed-off-by: hangaohuai <hangaohuai@huawei.com> Message-id: 20170314063919.16200-1-hangaohuai@huawei.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Index: xen-4.7.2-testing/tools/qemu-xen-traditional-dir-remote/hw/cirrus_vga_rop.h =================================================================== --- xen-4.7.2-testing.orig/tools/qemu-xen-traditional-dir-remote/hw/cirrus_vga_rop.h +++ xen-4.7.2-testing/tools/qemu-xen-traditional-dir-remote/hw/cirrus_vga_rop.h @@ -108,6 +108,11 @@ glue(glue(cirrus_bitblt_rop_fwd_transp_, src = src_ - src_base; dstpitch -= bltwidth; srcpitch -= bltwidth; + + if (bltheight > 1 && (dstpitch < 0 || srcpitch < 0)) { + return; + } + for (y = 0; y < bltheight; y++) { for (x = 0; x < bltwidth; x++) { p = *(dst_base + m(dst)); @@ -166,6 +171,11 @@ glue(glue(cirrus_bitblt_rop_fwd_transp_, src = src_ - src_base; dstpitch -= bltwidth; srcpitch -= bltwidth; + + if (bltheight > 1 && (dstpitch < 0 || srcpitch < 0)) { + return; + } + for (y = 0; y < bltheight; y++) { for (x = 0; x < bltwidth; x+=2) { p1 = *(dst_base + m(dst));
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor