qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [Bug 575887] Re: VNC heap corruption at 1400x1050 (with % 1


From: sciencewhiz
Subject: [Qemu-devel] [Bug 575887] Re: VNC heap corruption at 1400x1050 (with % 16 != 0)
Date: Fri, 04 Jun 2010 03:52:07 -0000

Where can I find a list of supported QEMU resolutions?

-- 
VNC heap corruption at 1400x1050 (with % 16 != 0)
https://bugs.launchpad.net/bugs/575887
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.

Status in QEMU: Invalid

Bug description:
vnc_refresh_server_surface assumes that the display width
is a multiple of 16.  If it's not, then it accesses beyond the end of the row
by a few bytes.  On all but the last row, this is mostly harmless (it can
result in unnecessarily marking the end of the row dirty), but on the last row,
it copies over heap metadata.  This triggers a crash when changing resolutions 
or disconnecting and reconnecting a client.

I can trigger this reliably with a Windows 7 guest at 1400x1050 with -vga std.

The attached patch (rather ugly, with debugging code for good measure) 
partially fixes the issue.  There's still a black stripe on the right side of 
the screen, presumably because there are other bugs in vnc.c (or I messed up 
the patch).

I'm marking this as a security vulnerability because it allows the guest to 
overwrite host memory.

The same issue is tracked in Red Hat's bugzilla here:
https://bugzilla.redhat.com/show_bug.cgi?id=583850





reply via email to

[Prev in Thread] Current Thread [Next in Thread]