CVE-2015-1802: Buffer Overflow

Published Mar 19, 2015
·
Updated

The bdf parser reads a count for the number of properties defined in a font from the font file, and allocates arrays with entries for each property based on that count. It never checked to see if that count was negative, or large enough to overflow when multiplied by the size of the structures being allocated, and could thus allocate the wrong buffer size, leading to out of bounds writes.

A local user could exploit this issue to potentially execute arbitrary code with the privileges of the X.Org server.

Upstream patch:

http://cgit.freedesktop.org/xorg/lib/libXfont/commit/?id=2deda9906480f9c8ae07b8c2a5510cc7e4c59a8e

External References:

http://www.x.org/wiki/Development/Security/Advisory-2015-03-17/

Other sources

The bdfReadProperties function in bitmap/bdfread.c in X.Org libXfont before 1.4.9 and 1.5.x before 1.5.1 allows remote authenticated users to cause a denial of service (out-of-bounds write and crash) or possibly execute arbitrary code via a (1) negative or (2) large property count in a BDF font file.

Affected Software

16 affected componentsFixes available
X libXfont<=1.4.8
X libXfont=1.5.0
Canonical Ubuntu Linux=10.04
Canonical Ubuntu Linux=12.04
Canonical Ubuntu Linux=14.04
Canonical Ubuntu Linux=14.10
Debian Debian Linux=7.0
redhat/libxfont<1.5.1
1.5.1
redhat/libxfont<1.4.9
1.4.9
All of the following
Any of the following
X libXfont<=1.4.8
X libXfont=1.5.0
Any of the following
Canonical Ubuntu Linux=10.04
Canonical Ubuntu Linux=12.04
Canonical Ubuntu Linux=14.04
Canonical Ubuntu Linux=14.10
Debian Debian Linux=7.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 1.5.1
  2. Upgrade

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

    Fixed in 1.4.9
  3. Upgrade

    Upgrade X.Org libXfont to a version that resolves this vulnerability.

    Fixed in 1.4.9
  4. Upgrade

    Upgrade X.Org libXfont to a version that resolves this vulnerability.

    Fixed in 1.5.1

Event History

Mar 19, 2015
Data Sourced
via Red Hat·02:08 PM
DescriptionSeverityAffected Software
Mar 20, 2015
CVE Published
via MITRE·02:00 PM
Data Sourced
via MITRE·02:00 PM
Description
Data Sourced
02:59 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2015-1802?

CVE-2015-1802 is considered a high severity vulnerability that can lead to denial of service or potential arbitrary code execution.

2

How do I fix CVE-2015-1802?

To fix CVE-2015-1802, update X.Org libXfont to version 1.4.9 or later.

3

What causes CVE-2015-1802?

CVE-2015-1802 is caused by a flaw in the bdfReadProperties function that allows for out-of-bounds writes due to improper handling of BDF font file properties.

4

Which versions of X.Org libXfont are affected by CVE-2015-1802?

CVE-2015-1802 affects X.Org libXfont versions prior to 1.4.9 and 1.5.0, specifically version 1.5.0.

5

Can CVE-2015-1802 be exploited remotely?

Yes, CVE-2015-1802 can be exploited by remote authenticated users through specially crafted BDF font files.

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