Bug 960360 (CVE-2013-1996)

Summary: CVE-2013-1996 libFS: Sign extension issues resulting in heap-based buffer overflow
Product: [Other] Security Response Reporter: Huzaifa S. Sidhpurwala <huzaifas>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX 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:
Fixed In Version: libFS 1.0.5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-21 07:39:01 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: 966828    
Bug Blocks: 959130    

Description Huzaifa S. Sidhpurwala 2013-05-07 05:59:48 UTC
A sign extension issue was found in libFS, X.Org X11 libFS runtime library. The FSOpenServer() function did not check the sign of the returned data, leading to negative numbers being used in memory size calculations. This can result in allocating too little memory and then writing the returned data past the end of the buffer. When a X client is connected to a malcicious X server , (modified to return invalid values), it can cause arbirary code execution with the privileges of the user running the X client.

Comment 2 Jan Lieskovsky 2013-05-23 15:48:43 UTC
Public via:
  http://www.openwall.com/lists/oss-security/2013/05/23/3

Comment 3 Huzaifa S. Sidhpurwala 2013-05-24 04:04:03 UTC
Created libFS tracking bugs for this issue

Affects: fedora-all [bug 966828]

Comment 4 Fedora Update System 2013-06-03 03:10:26 UTC
libFS-1.0.4-6.20130524git26dc23446.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 5 Huzaifa S. Sidhpurwala 2013-06-05 03:39:34 UTC
This issue affects the version of libFS as shipped with Red Hat Enterprise Linux 5.

Comment 6 Huzaifa S. Sidhpurwala 2013-06-05 03:50:06 UTC
Statement:

This issue affects the libFS 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 7 Fedora Update System 2013-06-14 04:53:23 UTC
libFS-1.0.5-1.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Jan Lieskovsky 2013-06-17 09:45:09 UTC
External References:

http://www.x.org/wiki/Development/Security/Advisory-2013-05-23