Xpra memory disclosure

From: Antoine Martin <antoine@nagafix.co.uk>
To: bugtraq@securityfocus.com
Subject: Xpra memory disclosure

Xpra is screen for X11. This is the fork located at:

Xpra versions (r191) through to (r443) return random
chunks of memory to the clients by using the wrong size (multiplying by
4) for the X11 cursor memory buffer. (from XFixesGetCursorImage)
The byte order of the data returned is only slightly off (argb -> rgba)

Clients can easily trigger this bug by using X11 applications with
custom cursors, potentially many times per second. However the risks
should be fairly limited since Xpra and its Xvfb process typically run
with the same uid as the client application they host.

Thanks to 'fecund' for reporting this.
Only OpenBSD terminated the process, other unices are quite happy to let
you access memory beyond the end of the cursor buffer.


Copyright © 1995-2020 LinuxRocket.net. All rights reserved.