Bug 1191094 (CVE-2014-9671)
| Summary: | CVE-2014-9671 freetype: integer overflow in pcf_get_properties() leading to NULL pointer dereference | ||
|---|---|---|---|
| Product: | [Other] Security Response | Reporter: | Vasyl Kaigorodov <vkaigoro> |
| Component: | vulnerability | Assignee: | Red Hat Product Security <security-response-team> |
| Status: | CLOSED ERRATA | QA Contact: | |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | unspecified | CC: | behdad, fonts-bugs, kevin, mkasik |
| Target Milestone: | --- | Keywords: | Security |
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | freetype 2.5.4 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-03-18 07:40:54 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 1191099, 1197737, 1197738, 1197739, 1197740 | ||
| Bug Blocks: | 1191102 | ||
|
Description
Vasyl Kaigorodov
2015-02-10 12:52:36 UTC
Upstream bug is: https://savannah.nongnu.org/bugs/?43547 Issue was fixed upstream in 2.5.4. This is an integer overflow issue, rather than off-by-one. A string_size value is read from input font file. If value 0xffffffff is used and later 1 is added to it when FT_NEW_ARRAY() is called to allocate strings[] buffer, the addition will overflow (32bit overflow) and leads to attempt to allocate zero sized buffer. Freetype memory allocation functions return NULL in that case, which leads to crash when the buffer is populated later. Note that this issue was introduced by the CVE-2012-1130 fix (see bug 800587) in the following commit: http://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=c776fc17 The fix for this issue was found to introduce a regression that prevented loading of certain PCF fonts. Upstream bug and fix: https://savannah.nongnu.org/bugs/?43774 http://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=74af85c4b62b35e55b0ce9dec55ee10cbc4962a2 http://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=06842c7b49c21f13c0ab61201daab6ff5a358fcc Reported for Fedora in bug 1195652. This issue has been addressed in the following products: Red Hat Enterprise Linux 6 Red Hat Enterprise Linux 7 Via RHSA-2015:0696 https://rhn.redhat.com/errata/RHSA-2015-0696.html |