CVE-2015-1802: Buffer Overflow
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
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/libXfontto a version that resolves this vulnerability.Fixed in 1.5.1 - Upgrade
Upgrade
redhat/libXfontto a version that resolves this vulnerability.Fixed in 1.4.9 - Upgrade
Upgrade
X.Org libXfontto a version that resolves this vulnerability.Fixed in 1.4.9 - Upgrade
Upgrade
X.Org libXfontto a version that resolves this vulnerability.Fixed in 1.5.1
Event History
Frequently Asked Questions
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.
How do I fix CVE-2015-1802?
To fix CVE-2015-1802, update X.Org libXfont to version 1.4.9 or later.
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.
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.
Can CVE-2015-1802 be exploited remotely?
Yes, CVE-2015-1802 can be exploited by remote authenticated users through specially crafted BDF font files.