CVE-2025-23022
Medium · 6.2CVSS
6.2
EPSS
0.2%
Published
Jan 10, 2025
CISA due date
—
Cloudanix analysis
A flaw in a common library used by audio software on older Ubuntu systems can let attackers crash programs or run their own code by feeding in bad data.
- Exploitation
- Requires User Interaction
- Attacker needs
- Local User
- Complexity
- Low
- Impact
- Other
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Signed integer overflow in cf2_doFlex within the CFF interpreter can corrupt memory during font or glyph processing.
Why it matters to the business
Applications handling audio or media files on older Ubuntu systems may crash or allow arbitrary code execution, disrupting services and requiring urgent patching across many deployments.
How an attack unfolds
An attacker crafts a malicious input that reaches the cf2_doFlex function, triggering the signed integer overflow to corrupt memory structures and potentially execute attacker-controlled code.
How to fix it
Upgrade audiofile to the listed fixed versions: 0.3.6-2ubuntu0.14.04.3 for Ubuntu 14.04 LTS, 0.3.6-2ubuntu0.16.04.1+esm1 for Ubuntu 16.04 LTS, 0.3.6-4ubuntu0.1~esm1 for Ubuntu 18.04 LTS, and 0.3.6-5 for Ubuntu 20.04 LTS.
How to confirm the fix worked
Verify installed audiofile package versions match or exceed the fixed releases for each Ubuntu release and confirm the vulnerable cf2intrp.c code path is no longer present after upgrade.
Typical attack path
- Identify a target application using the vulnerable audiofile library
- Deliver crafted input that exercises the CFF parsing path
- Trigger the integer overflow to achieve memory corruption
- Leverage corruption for code execution or denial of service
How to detect it
Review system logs and package histories for evidence of exploitation attempts against audiofile before the listed fixed versions were applied; look for unexpected crashes in processes using the library.
What your security team should do
- Apply the exact fixed audiofile package versions immediately on all affected Ubuntu systems
- Prioritize systems exposed to untrusted media files
- Monitor for any post-patch stability issues in media-processing workloads
The record
FreeType 2.8.1 has a signed integer overflow in cf2_doFlex in cff/cf2intrp.c.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5 | freetype2 | 0 | 2.6.3-7.24.1 |
| SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5 | ft2demos | 0 | 2.6.3-7.24.1 |
| Ubuntu:20.04:LTS | freetype | 0 | No fix |
| Ubuntu:22.04:LTS | freetype | 0 | No fix |
| Ubuntu:24.04:LTS | freetype | 0 | No fix |
| Ubuntu:24.10 | freetype | 0 | No fix |
| Ubuntu:Pro:14.04:LTS | freetype | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | freetype | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | freetype | 0 | No fix |
Related vulnerabilities
- CVE-2025-27363 An out of bounds write exists in FreeType versions 2.13.0 and below (newer versions of… Also affects freetype2
- CVE-2022-27406 FreeType commit 22a0cccb4d9d002f33c1ba7a4b36812c7d4f46b5 was discovered to contain a… Also affects freetype
- CVE-2022-27405 FreeType commit 53dfdcd8198d2b3201a23c4bad9190519ba918db was discovered to contain a… Also affects freetype
- CVE-2020-15999 Heap buffer overflow in Freetype in Google Chrome prior to 86.0.4240.111 allowed a remote… Also affects freetype
- CVE-2015-9383 FreeType before 2.6.2 has a heap-based buffer over-read in tt_cmap14_validate in… Also affects freetype