Adobe Acrobat Reader Font Packed Point Numbers Out-Of-Bounds Read Vulnerability
A specially crafted OpenType font embedded in a PDF causes CoolType in Adobe Acrobat Reader to read past the end of a heap buffer while parsing packed point numbers in a glyph variations table. An attacker who convinces a user to open the malicious file could disclose sensitive memory contents and use that as a step towards further exploitation.
An out-of-bounds read vulnerability exists in CoolType, a font processing framework used by Adobe Acrobat Reader 2024.002.20759.A specially crafted font file embedded into a PDF can trigger an out of bounds memory read which can lead to disclosure of sensitive information and aid further exploitation. An attacker…
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the parser trusts the packed point number count from the font data and does not check that the glyph variation data size covers the offset plus that count, so it reads past the allocated buffer.
Impact
The out-of-bounds read could disclose sensitive information from memory and may aid further exploitation, though the report only demonstrates the read itself.
What the attacker needed
Victim opens a malicious PDF; Acrobat Reader 2024.002.20759
How it was found
- Embed a crafted OpenType font with a gvar table inside a PDF.
- Open the PDF in Adobe Acrobat Reader so CoolType parses the font.
- The reader allocates a buffer sized from the glyph variation data size and copies the table into it.
- It then reads the packed point number count and walks past the end of that buffer.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A PDF can carry its own font files, and the reader has to parse them. Here the font declares a count of point numbers that is larger than the space actually allocated for that font data, so the reader reads bytes beyond the end of its buffer. Those extra bytes are other memory contents, which the attacker may be able to observe.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.