Bug 1168691 (CVE-2014-8094)

Summary: CVE-2014-8094 xorg-x11-server: integer overflow in DRI2 extension function ProcDRI2GetBuffers()
Product: [Other] Security Response Reporter: Vasyl Kaigorodov <vkaigoro>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: airlied, ajax, chazlett, jrusnack, peter.hutterer, security-response-team
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
An integer overflow flaw was found in the way the X.Org server calculated memory requirements for certain DRI2 extension requests. A malicious, authenticated client could use this flaw to crash the X.Org server.
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-12-11 20:56:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1170916, 1170917, 1170918, 1170919    
Bug Blocks: 1168310    
Attachments:
Description Flags
0006-dri2_integer_overflow_in_ProcDRI2GetBuffers_CVE-2014-8094.patch none

Description Vasyl Kaigorodov 2014-11-27 15:37:51 UTC
ProcDRI2GetBuffers() function call do not check that its calculations for how much memory
is needed to handle the client's request have not overflowed, so can
result in out of bounds reads or writes.  These calls all occur only
after a client has successfully authenticated itself.

Introduced in xorg-server-1.7.0 (2009).

Comment 1 Vasyl Kaigorodov 2014-11-27 15:49:03 UTC
Created attachment 962135 [details]
0006-dri2_integer_overflow_in_ProcDRI2GetBuffers_CVE-2014-8094.patch

Comment 2 Huzaifa S. Sidhpurwala 2014-12-05 05:46:05 UTC
Authenticated client can cause integer overflow on the server which later results in OOB read and consequent crash.

Comment 4 Vincent Danen 2014-12-09 20:17:46 UTC
External References:

http://www.x.org/wiki/Development/Security/Advisory-2014-12-09/

Comment 5 errata-xmlrpc 2014-12-11 19:42:21 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7
  Red Hat Enterprise Linux 6

Via RHSA-2014:1983 https://rhn.redhat.com/errata/RHSA-2014-1983.html