Heap-based Buffer Overflow in Pango FreeType2 Backend
A heap-based buffer overflow exists in the pango_ft2_font_render_box_glyph function in pango/pangoft2-render.c in libpango (Pango 1.28.3 and earlier) when the FreeType2 backend is enabled. The vulnerability is triggered by processing a crafted font file, specifically due to improper handling of the glyph box for an FT_Bitmap object, which can result in writing outside the bounds of a heap buffer.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows user-assisted remote attackers to cause a denial of service (application crash) or potentially execute arbitrary code in the context of the application using libpango, by enticing a user to open or process a malicious font file.
If you can’t patch tonight, do this now.
As a temporary mitigation, disable the FreeType2 backend in Pango if not required, and avoid opening untrusted font files. Employ OS-level protections such as ASLR and DEP to reduce the risk of code execution.
Patch, then assume compromise.
Upgrade to a version of Pango later than 1.28.3 in which this vulnerability has been patched. Ensure that all dependent applications are also updated to use the patched library.
No validated public exploits yet. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.