Bug 1203715 (CVE-2015-1802) - CVE-2015-1802 libXfont: missing range check in bdfReadProperties
Summary: CVE-2015-1802 libXfont: missing range check in bdfReadProperties
Alias: CVE-2015-1802
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
Depends On: 1203720 1258892 1258893 1258894 1258895
Blocks: 1203722
TreeView+ depends on / blocked
Reported: 2015-03-19 14:08 UTC by Martin Prpič
Modified: 2021-02-17 05:31 UTC (History)
4 users (show)

Fixed In Version: libXfont 1.5.1, libXfont 1.4.9
Doc Type: Bug Fix
Doc Text:
An integer overflow flaw was found in the way libXfont processed certain Glyph Bitmap Distribution Format (BDF) fonts. A malicious, local user could use this flaw to crash the X.Org server or, potentially, execute arbitrary code with the privileges of the X.Org server.
Clone Of:
Last Closed: 2019-06-08 02:40:08 UTC

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:1708 0 normal SHIPPED_LIVE Important: libXfont security update 2015-09-03 15:26:36 UTC

Description Martin Prpič 2015-03-19 14:08:08 UTC
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:


External References:


Comment 1 Martin Prpič 2015-03-19 14:14:49 UTC
Created libXfont tracking bugs for this issue:

Affects: fedora-all [bug 1203720]

Comment 2 Fedora Update System 2015-03-23 07:17:11 UTC
libXfont-1.5.1-1.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 4 errata-xmlrpc 2015-09-03 11:26:54 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7
  Red Hat Enterprise Linux 6

Via RHSA-2015:1708 https://rhn.redhat.com/errata/RHSA-2015-1708.html

Comment 5 ddu 2015-09-07 05:07:38 UTC
Hi guys,

Does this problem CVE affect libXfont shipped with RHEL5?

Best regards,

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