Home / mailings [gentoo-announce] [ GLSA 202505-07 ] FreeType: Remote Code Execution
Posted on 14 May 2025
Gentoo-announce- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Gentoo Linux Security Advisory GLSA 202505-07
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
https://security.gentoo.org/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Severity: High
Title: FreeType: Remote Code Execution
Date: May 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
------------------- ------------ ------------
media-libs/freetype < 2.13.1 >= 2.13.1
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
==========
[ 1 ] CVE-2025-27363
https://nvd.nist.gov/vuln/detail/CVE-2025-27363
Availability
============
This GLSA and any updates to it are available for viewing at
the Gentoo Security Website:
https://security.gentoo.org/glsa/202505-07
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 2025 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.
https://creativecommons.org/licenses/by-sa/2.5
--===============8328794482999404481==Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"