CVE-2026-61627libass: Out-of-bounds read and write in wrap_lines_measure
libass is a portable subtitle renderer for the `ASS`/SSA (Advanced Substation Alpha/Substation Alpha) subtitle format. Prior to 0.17.5, libass can overread and overwrite the glyph array in `wrap_lines_measure` while rendering malicious `ASS` content. In `wrap modes other than two`, a final line ending with a literal backslash-n sequence and otherwise consisting only of such sequences or spaces can remain after early trimming and make the line-measurement loops overshoot by one glyph. When the total text size exactly matches the allocated glyph-array capacity, the first loop reads an uninitialized 32-bit fixed-point `pos.x` value, although that value is not subsequently used. The second loop writes `pos.x` and `pos.y` beyond the array, zeroing the first and adding an attacker-controllable offset to the second. No actual exploitation beyond possible denial of service is known; broader exploitation is theoretical and constrained by the addresses, limited writes, and ASLR. This issue is fixed in version 0.17.5.
What to do
Fixed builds are available from Debian: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | libass | Fix pending | 1:0.17.4-2ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2026-61627 |
| Ubuntu 24.04 | libass | Fix pending | 1:0.17.1-2ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2026-61627 |
| Ubuntu 22.04 | libass | Not affected vulnerable_code_not_present | ||
| Debian 14 | libass | Fixed | 1:0.17.5-1 | DEBIAN-CVE-2026-61627 |
| Debian 13 | libass | Fixed | 1:0.17.3-1+deb13u1 | DEBIAN-CVE-2026-61627 |
| Debian 12 | libass | Fixed | 1:0.17.1-1+deb12u1 | DEBIAN-CVE-2026-61627 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- libass: affected: < 0.17.5
References
- https://github.com/libass/libass/security/advisories/GHSA-pjjp-65r7-ppgm
- https://github.com/libass/libass/commit/f2ef59755292bc4bb950ef22710e18a5487c399d
- https://github.com/libass/libass/releases/tag/0.17.5
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.