Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 623972 (CVE-2017-10971, CVE-2017-10972) - <x11-base/xorg-server-1.19.4: Multiple vulnerabilities
Summary: <x11-base/xorg-server-1.19.4: Multiple vulnerabilities
Status: RESOLVED FIXED
Alias: CVE-2017-10971, CVE-2017-10972
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Security
URL: http://www.openwall.com/lists/oss-sec...
Whiteboard: B1 [glsa cve]
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-06 11:59 UTC by Kristian Fiskerstrand (RETIRED)
Modified: 2018-01-05 20:48 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch, concatenated from the above 4 commits. (bug623972.patch,6.68 KB, patch)
2017-07-24 10:30 UTC, Teika kazura
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kristian Fiskerstrand (RETIRED) gentoo-dev 2017-07-06 11:59:19 UTC
From $URL:
Hi,

This issue got lost under the Qualys noise 

https://bugzilla.suse.com/show_bug.cgi?id=1035283

CVE-2017-10971:
	The endianess handling for X Events assumed a fixed size of X Event structures and
	had a specific 32 byte stack buffer for that. 

	However "GenericEvents" can have any size, so if the events were sent in the wrong
	endianess, this stack buffer could be overflowed easily.

	So authenticated X users could overflow the stack in the X Server and with the X 
	server usually running as root gaining root prileveges.

	https://cgit.freedesktop.org/xorg/xserver/commit/?id=ba336b24052122b136486961c82deac76bbde455
	https://cgit.freedesktop.org/xorg/xserver/commit/?id=8caed4df36b1f802b4992edcfd282cbeeec35d9d
	https://cgit.freedesktop.org/xorg/xserver/commit/?id=215f894965df5fb0bb45b107d84524e700d2073c


CVE-2017-10972:
	https://cgit.freedesktop.org/xorg/xserver/commit/?id=05442de962d3dc624f79fc1a00eca3ffc5489ced

	An information leak out of the X server due to an uninitialized stack area when swapping
	event endianess.

Ciao, Marcus
Comment 1 Teika kazura 2017-07-24 10:30:10 UTC
Created attachment 486668 [details, diff]
Patch, concatenated from the above 4 commits.

The attached file is the patch, concatenated from the 4 above cited links.
For users' convenience, let me submit it.
Comment 2 Matt Turner gentoo-dev 2017-10-31 01:43:52 UTC
These apply to <x11-base/xorg-server-1.19.4. xorg-server-1.19.5 is now stable.
Comment 3 Matt Turner gentoo-dev 2017-10-31 18:15:55 UTC
Vulnerable versions removed in

commit 67af98328e08ad9e53a857d1b51c9ecea8716ead
Author: Matt Turner <mattst88@gentoo.org>
Date:   Mon Oct 30 18:44:14 2017 -0700

    x11-base/xorg-server: Drop vulnerable versions
Comment 4 Matt Turner gentoo-dev 2018-01-05 18:49:24 UTC
security@: going to do anything with this?
Comment 5 Christopher Díaz Riveros (RETIRED) gentoo-dev Security 2018-01-05 20:48:16 UTC
(In reply to Matt Turner from comment #4)
> security@: going to do anything with this?

Thank you Matt, this report should have been closed with: 

https://security.gentoo.org/glsa/201710-30

Marking as RESOLVED FIXED.