Bug 959066 (CVE-2013-1988)

Summary: CVE-2013-1988 libXRes: Multiple integer overflows leading to heap-based bufer overflows
Product: [Other] Security Response Reporter: Huzaifa S. Sidhpurwala <huzaifas>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: jlieskov, jrusnack, kem, peter.hutterer, security-response-team
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: impact=moderate,public=20130523,reported=20130503,source=redhat,cvss2=4.3/AV:A/AC:H/Au:N/C:P/I:P/A:P,rhel-5/libXres=wontfix,rhel-6/libXres=affected,fedora-all/libXres=affected,cwe=CWE-190->CWE-122
Fixed In Version: libXRes 1.0.7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-16 02:09:20 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On: 966815, 1078034    
Bug Blocks: 959130, 1101912    

Description Huzaifa S. Sidhpurwala 2013-05-03 01:57:48 EDT
An integer overflow leading to heap-based buffer overflow was found in libXRes, an extension that allows a client to query the X server about its usage of various resources.. When a X client is connected to a malicious X server, (modified to return invalid values), it can cause arbirary code execution with the privileges of the user running the X client.

Affected functions:  XResQueryClients(), XResQueryClientResources()
Comment 8 Jan Lieskovsky 2013-05-23 11:36:19 EDT
Public via:
  http://www.openwall.com/lists/oss-security/2013/05/23/3
Comment 9 Huzaifa S. Sidhpurwala 2013-05-23 23:47:17 EDT
Created libXres tracking bugs for this issue

Affects: fedora-all [bug 966815]
Comment 10 Fedora Update System 2013-05-27 22:19:10 EDT
libXres-1.0.6-5.20130524gitf46818496.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 11 Fedora Update System 2013-06-02 23:03:30 EDT
libXres-1.0.6-5.20130524gitf46818496.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 12 Huzaifa S. Sidhpurwala 2013-06-04 23:33:13 EDT
This issue affects the version of libXRes as shipped with Red Hat Enterprise Linux 5 and 6.
Comment 13 Huzaifa S. Sidhpurwala 2013-06-04 23:46:54 EDT
Statement:

This issue affects the libXRes package in Red Hat Enterprise Linux 5. Red Hat Product Security has rated this issue as having Moderate security impact. This issue is not planned to be fixed in Red Hat Enterprise Linux 5 as it is now in Production 3 Phase of the support and maintenance life cycle: https://access.redhat.com/support/policy/updates/errata/
Comment 14 Jan Lieskovsky 2013-06-17 09:00:44 EDT
External References:

http://www.x.org/wiki/Development/Security/Advisory-2013-05-23
Comment 16 errata-xmlrpc 2014-10-14 01:05:14 EDT
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 6

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