-
- Downloads
render: fix refcounting of glyphs during ProcRenderAddGlyphs
Previously, AllocateGlyph would return a new glyph with refcount=0 and a re-used glyph would end up not changing the refcount at all. The resulting glyph_new array would thus have multiple entries pointing to the same non-refcounted glyphs. AddGlyph may free a glyph, resulting in a UAF when the same glyph pointer is then later used. Fix this by returning a refcount of 1 for a new glyph and always incrementing the refcount for a re-used glyph, followed by dropping that refcount back down again when we're done with it. CVE-2024-31083, ZDI-CAN-22880 This vulnerability was discovered by: Jan-Niklas Sohn working with Trend Micro Zero Day Initiative Part-of: <!1463>
parent
6c684d03
No related branches found
No related tags found
-
mentioned in issue #1659 (closed)
-
mentioned in merge request !1476 (merged)
-
mentioned in merge request !1478 (merged)
-
mentioned in merge request !1479 (merged)
-
mentioned in commit b4ea6f9e
Please register or sign in to comment