Bug 960357 (CVE-2013-1995) - CVE-2013-1995 libXi: Sign extension issues resulting in heap-based buffer overflow
Summary: CVE-2013-1995 libXi: Sign extension issues resulting in heap-based buffer ove...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2013-1995
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 966698 1078025
Blocks: 959130 1101912
TreeView+ depends on / blocked
 
Reported: 2013-05-07 05:51 UTC by Huzaifa S. Sidhpurwala
Modified: 2021-02-17 07:43 UTC (History)
5 users (show)

Fixed In Version: libXi 1.7.2
Doc Type: Bug Fix
Doc Text:
A buffer overflow flaw was found in the way the XListInputDevices() function of X.Org X11's libXi runtime library handled signed numbers. A malicious X11 server could possibly use this flaw to execute arbitrary code with the privileges of the user running an X11 client.
Clone Of:
Environment:
Last Closed: 2014-10-16 06:18:24 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2014:1436 0 normal SHIPPED_LIVE Moderate: X11 client libraries security, bug fix, and enhancement update 2014-10-14 01:06:02 UTC

Description Huzaifa S. Sidhpurwala 2013-05-07 05:51:35 UTC
A sign extension issue was found in libXi, X.Org X11 libXi runtime library. The XListInputDevices() 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:47:23 UTC
Public via:
  http://www.openwall.com/lists/oss-security/2013/05/23/3

Comment 4 Jan Lieskovsky 2013-05-23 17:23:40 UTC
These issues affect the versions of the libXi package, as shipped with Fedora release of 17 and 18. Please schedule an update.

Comment 5 Jan Lieskovsky 2013-05-23 17:29:39 UTC
Created libXi tracking bugs for this issue

Affects: fedora-all [bug 966698]

Comment 6 Jan Lieskovsky 2013-05-23 17:31:25 UTC
External References:

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

Comment 7 Fedora Update System 2013-05-28 02:24:10 UTC
libXi-1.7.1-4.20130524git661c45ca1.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 Fedora Update System 2013-06-03 03:04:11 UTC
libXi-1.6.2.901-1.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 Huzaifa S. Sidhpurwala 2013-06-05 03:39:18 UTC
This issue affects the version of libXi as shipped with Red Hat Enterprise Linux 5 and 6.

Comment 10 Huzaifa S. Sidhpurwala 2013-06-05 03:49:52 UTC
Statement:

This issue affects the libXi 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 12 Martin Prpič 2014-10-10 08:41:12 UTC
IssueDescription:

A buffer overflow flaw was found in the way the XListInputDevices() function of X.Org X11's libXi runtime library handled signed numbers. A malicious X11 server could possibly use this flaw to execute arbitrary code with the privileges of the user running an X11 client.

Comment 13 errata-xmlrpc 2014-10-14 05:05:43 UTC
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


Note You need to log in before you can comment on or make changes to this bug.