CVE-2026-61626: libass: Out-of-bounds bit clears for negative Matroska ReadOrder values
[GHSA-5gf7-wjfm-vmvm: Out-of-bounds bit clears for negative Matroska ReadOrder values]
Other sources
libass is a portable subtitle renderer for the ASS/SSA (Advanced Substation Alpha/Substation Alpha) subtitle format. From 0.17.4 until 0.17.5, libass event pruning does not guard negative Matroska ReadOrder values, allowing an attacker to clear arbitrarily many bits to zero at attacker-controlled positions near the NULL pointer. Exploitation requires a malicious Matroska stream loaded through assprocesschunk, enabled read-order checking, and later pruning of the malicious events. Read-order checking is enabled by default unless asssetcheckreadorder is called with zero; pruning must occur explicitly through asspruneevents or through automatic pruning previously enabled with assconfigureprune. On common systems with arithmetic right shift, 32-bit int values, the upper address region reserved to the kernel, and matching binary/kernel architecture, the expected consequence is denial of service. More extensive exploitation on uncommon systems is theoretical and strongly constrained by the target addresses, bit-clearing-only mutation, and ASLR. This issue is fixed in version 0.17.5.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/libassto a version that resolves this vulnerability.Fixed in 1:0.17.1-1Fixed in 1:0.17.1-1+deb12u1Fixed in 1:0.17.3-1+deb13u1Fixed in 1:0.17.5-1 - Upgrade
Upgrade
debian/libassto a version that resolves this vulnerability.Fixed in 1:0.17.5-1 - Upgrade
Upgrade
ubuntu/libassto a version that resolves this vulnerability.Fixed in 1:0.17.4-2ubuntu0.1~esm1 - Upgrade
Upgrade
libassto a version that resolves this vulnerability.Fixed in 0.17.5
Event History
Frequently Asked Questions
What does an attacker need to trigger the issue?
The issue is associated with Matroska content containing negative ReadOrder values, which can cause out-of-bounds bit-clear operations.