GLSA 202505-07: FreeType: Remote Code Execution

Severity:high
Title:FreeType: Remote Code Execution
Date:05/14/2025
Bugs: #951286
ID:202505-07

Synopsis

A vulnerability has been discovered in FreeType, which can lead to remote code execution.

Background

FreeType is a high-quality and portable font engine.

Affected packages

Package Vulnerable Unaffected Architecture(s)
media-libs/freetype < 2.13.1 >= 2.13.1 All supported architectures

Description

Multiple vulnerabilities have been discovered in FreeType. Please review the CVE identifiers referenced below for details.

Impact

An out of bounds write exists in FreeType when attempting to parse font subglyph structures related to TrueType GX and variable font files. The vulnerable code assigns a signed short value to an unsigned long and then adds a static value causing it to wrap around and allocate too small of a heap buffer. The code then writes up to 6 signed long integers out of bounds relative to this buffer. This may result in arbitrary code execution. This vulnerability may have been exploited in the wild.

Workaround

There is no known workaround at this time.

Resolution

All FreeType users should upgrade to the latest version:

          # emerge --sync
          # emerge --ask --oneshot --verbose ">=media-libs/freetype-2.13.1"
        

References

Availability

This GLSA and any updates to it are available for viewing at the Gentoo Security Website: http://security.gentoo.org/glsa/glsa-202505-07.xml

Concerns?

Security is a primary focus of Gentoo Linux and ensuring the confidentiality and security of our users machines is of utmost importance to us. Any security concerns should be addressed to security@gentoo.org or alternatively, you may file a bug at https://bugs.gentoo.org.

License

Copyright 2010 Gentoo Foundation, Inc; referenced text belongs to its owner(s). The contents of this document are licensed under the Creative Commons - Attribution / Share Alike license.

Thank you!