# CVE-2022-31782: libfreetype6: ftbench.c in FreeType Demo Programs through 2.12.1 has a heap-based buffer overflow.

CVE-2022-31782 is fixed in 3 products on 1 platform, first by freetype2-demos 2.8.1-2ubuntu2.2, released June 2, 2022. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2022-31782
- Priority: High
- CVSS: 7.8 (Medium)
- EPSS: 0.0077
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Jun 2, 2022

## Description

ftbench.c in FreeType Demo Programs through 2.12.1 has a heap-based buffer overflow.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | freetype Debian 12.15 (bookworm) | 2.12.1+dfsg-3 | [DEBIAN-CVE-2022-31782](https://patchblox.com/security/data/fix/linux/debian-cve-2022-31782.md) | Jun 2, 2022 |
| Linux | freetype Debian 13.5 (trixie) | 2.12.1+dfsg-3 | [DEBIAN-CVE-2022-31782](https://patchblox.com/security/data/fix/linux/debian-cve-2022-31782.md) | Jun 2, 2022 |
| Linux | freetype Debian 14 | 2.12.1+dfsg-3 | [DEBIAN-CVE-2022-31782](https://patchblox.com/security/data/fix/linux/debian-cve-2022-31782.md) | Jun 2, 2022 |
| Linux | freetype2-demos Ubuntu 18.04.6 LTS (bionic) | 2.8.1-2ubuntu2.2 | [freetype2-demos 2.8.1-2ubuntu2.2](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-freetype2-demos-2.8.1-2ubuntu2.2.md) | Jun 2, 2022 |
| Linux | freetype2-demos Ubuntu 20.04 LTS (focal) | 2.10.1-2ubuntu0.2 | [freetype2-demos 2.10.1-2ubuntu0.2](https://patchblox.com/security/data/fix/linux/ubuntu-focal-freetype2-demos-2.10.1-2ubuntu0.2.md) | Jun 2, 2022 |
| Linux | freetype2-demos Ubuntu 22.04.1 LTS (jammy) | 2.11.1+dfsg-1ubuntu0.1 | [freetype2-demos 2.11.1+dfsg-1ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-freetype2-demos-2.11.1-dfsg-1ubuntu0.1.md) | Jun 2, 2022 |
| Linux | libfreetype6 Ubuntu 18.04.6 LTS (bionic) | 2.8.1-2ubuntu2.2 | [libfreetype6 2.8.1-2ubuntu2.2](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libfreetype6-2.8.1-2ubuntu2.2.md) | Jun 2, 2022 |
| Linux | libfreetype6 Ubuntu 20.04 LTS (focal) | 2.10.1-2ubuntu0.2 | [libfreetype6 2.10.1-2ubuntu0.2](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libfreetype6-2.10.1-2ubuntu0.2.md) | Jun 2, 2022 |
| Linux | libfreetype6 Ubuntu 22.04.1 LTS (jammy) | 2.11.1+dfsg-1ubuntu0.1 | [libfreetype6 2.11.1+dfsg-1ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-libfreetype6-2.11.1-dfsg-1ubuntu0.1.md) | Jun 2, 2022 |

---

Data as of 2026-11-08T13:06:02Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
