Skip to content

CVE-2026-61627 libass: Out-of-bounds read and write in wrap_lines_measure

HighCVSS 7.3 EPSS 0.16%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total
Technology
UbuntuDebian

Description

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.

Upgrade path

7 packages: 6 fixed.

PackageAffectedFixed inStatus
azure linux libass(Azure Linux 4.0) < 0:0.17.5-8.azl4 0:0.17.5-8.azl4 Fixed
debian/libass(Debian 12) < 1:0.17.1-1+deb12u1; = 1:0.17.1-1 1:0.17.1-1+deb12u1 Fixed
debian/libass(Debian 13) < 1:0.17.3-1+deb13u1; = 1:0.17.3-1 1:0.17.3-1+deb13u1 Fixed
debian/libass(Debian 14) < 1:0.17.5-1; = 1:0.17.3-1; = 1:0.17.4-1; = 1:0.17.4-2 1:0.17.5-1 Fixed
ubuntu/libass(Ubuntu 24.04) < 1:0.17.1-2ubuntu0.1~esm1 1:0.17.1-2ubuntu0.1~esm1 Fixed
ubuntu/libass(Ubuntu 26.04) < 1:0.17.4-2ubuntu0.1~esm1 1:0.17.4-2ubuntu0.1~esm1 Fixed
libass = < 0.17.5 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
libass = < 0.17.5 No fix listed
debian/libass(Debian:12) < 1:0.17.1-1+deb12u1 1:0.17.1-1+deb12u1
debian/libass(Debian:12) = 1:0.17.1-1 No fix listed
debian/libass(Debian:13) < 1:0.17.3-1+deb13u1 1:0.17.3-1+deb13u1
debian/libass(Debian:13) = 1:0.17.3-1 No fix listed
debian/libass(Debian:14) < 1:0.17.5-1 1:0.17.5-1
debian/libass(Debian:14) = 1:0.17.3-1 No fix listed
debian/libass(Debian:14) = 1:0.17.4-1 No fix listed
debian/libass(Debian:14) = 1:0.17.4-2 No fix listed
ubuntu/libass(Ubuntu:24.04) < 1:0.17.1-2ubuntu0.1~esm1 1:0.17.1-2ubuntu0.1~esm1
ubuntu/libass(Ubuntu:26.04) < 1:0.17.4-2ubuntu0.1~esm1 1:0.17.4-2ubuntu0.1~esm1
azure linux libass(Azure Linux:4.0) < 0:0.17.5-8.azl4 0:0.17.5-8.azl4

References