CVE-2013-1981: Buffer Overflow

Published May 3, 2013
·
Updated

Multiple integer overflows in X.org libX11 1.5.99.901 (1.6 RC1) and earlier allow X servers to trigger allocation of insufficient memory and a buffer overflow via vectors related to the (1) XQueryFont, (2) XF86BigfontQueryFont, (3) XListFontsWithInfo, (4) XGetMotionEvents, (5) XListHosts, (6) XGetModifierMapping, (7) XGetPointerMapping, (8) XGetKeyboardMapping, (9) XGetWindowProperty, (10) XGetImage, (11) LoadColornameDB, (12) XrmGetFileDatabase, (13) XimParseStringFile, or (14) TransFileName functions.

Other sources

Several integer overflow flaws causing heap-based buffer overflows were found in libX11, the Core X11 protocol client library.

Note from upstream:

Most of these issues stem from the client libraries trusting the server to send correct protocol data, and not verifying that the values will not overflow or cause other damage. Most of the time X clients & servers are run by the same user, with the server more privileged from the clients, so this is not a problem, but there are scenarios in which a privileged client can be connected to an unprivileged server, for instance, connecting a setuid X client (such as a screen lock program) to a virtual X server(such as Xvfb or Xephyr) the user has modified to return invalid data, potentially allowing the user to escalate their privileges.

— Red Hat

Affected Software

7 affected componentsFixes available
X libX11<=1.5.99.901
X libX11=1.5.0
Canonical Ubuntu Linux=10.04
Canonical Ubuntu Linux=12.04
Canonical Ubuntu Linux=12.10
Canonical Ubuntu Linux=13.04
redhat/libx11<1.5.99.902
1.5.99.902

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/libX11 to a version that resolves this vulnerability.

    Fixed in 1.5.99.902

Event History

May 3, 2013
Data Sourced
via Red Hat·04:32 AM
DescriptionSeverityAffected Software
Jun 15, 2013
CVE Published
via MITRE·07:00 PM
Data Sourced
via MITRE·07:00 PM
Description
Data Sourced
07:55 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2013-1981?

CVE-2013-1981 is classified as a high-severity vulnerability due to the risk of buffer overflows leading to arbitrary code execution.

2

How do I fix CVE-2013-1981?

To fix CVE-2013-1981, update the X.org libX11 library to version 1.6 or later.

3

Who is affected by CVE-2013-1981?

CVE-2013-1981 affects users of X.org libX11 versions 1.5.0 up to 1.5.99.901 and specific versions of Ubuntu Linux.

4

What types of vulnerabilities does CVE-2013-1981 exploit?

CVE-2013-1981 exploits integer overflow vulnerabilities in multiple X server functions.

5

What could happen if CVE-2013-1981 is exploited?

If exploited, CVE-2013-1981 could lead to a denial of service or potentially allow an attacker to execute arbitrary code.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203