{"id":"CVE-2026-61626","summary":"libass: Out-of-bounds bit clears for negative Matroska ReadOrder values","details":"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 `ass_process_chunk`, enabled read-order checking, and later pruning of the malicious events. Read-order checking is enabled by default unless `ass_set_check_readorder` is called with zero; pruning must occur explicitly through `ass_prune_events` or through automatic pruning previously enabled with `ass_configure_prune`. 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.","aliases":["GHSA-5gf7-wjfm-vmvm"],"modified":"2026-11-06T01:07:17.702091343Z","published":"2026-10-30T14:52:21.006Z","database_specific":{"cwe_ids":["CWE-787"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/61xxx/CVE-2026-61626.json","cna_assigner":"GitHub_M"},"references":[{"type":"WEB","url":"https://github.com/libass/libass/releases/tag/0.17.5"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/61xxx/CVE-2026-61626.json"},{"type":"ADVISORY","url":"https://github.com/libass/libass/security/advisories/GHSA-5gf7-wjfm-vmvm"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-61626"},{"type":"FIX","url":"https://github.com/libass/libass/commit/23da65a130bb8c5b2cf0c7df0dd7d424607f98f1"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/libass/libass","events":[{"introduced":"bbb3c7f1570a4a021e52683f3fbdf74fe492ae84"},{"fixed":"4a05d8127f525943ebf45fdc6497c9e665947f0d"},{"fixed":"23da65a130bb8c5b2cf0c7df0dd7d424607f98f1"}],"database_specific":{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StringRangeExpression","range":[{"introduced":"0.17.4"},{"fixed":"0.17.5"}]},{"range":[{"fixed":"23da65a130bb8c5b2cf0c7df0dd7d424607f98f1"}],"source":"REFERENCES_COMMIT"},{"source":"REFERENCES_TAG","original_tag":"0.17.5","range":[{"fixed":"4a05d8127f525943ebf45fdc6497c9e665947f0d"}]}]}}],"versions":["0.17.4"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-61626.json","vanir_signatures":[{"id":"CVE-2026-61626-274d3e02","signature_type":"Line","signature_version":"v1","source":"https://github.com/libass/libass/commit/23da65a130bb8c5b2cf0c7df0dd7d424607f98f1","target":{"file":"libass/ass.c"},"deprecated":false,"digest":{"line_hashes":["237450414948299887685732629177574810525","144244498240427927305994064986372066730","135524471659269082127825963390172472350","57440087062946006152010265034674317575"],"threshold":0.9}},{"signature_version":"v1","source":"https://github.com/libass/libass/commit/23da65a130bb8c5b2cf0c7df0dd7d424607f98f1","target":{"file":"libass/ass.c","function":"clear_read_order_bit"},"deprecated":false,"digest":{"function_hash":"297664928099187939416970830411027002262","length":249},"id":"CVE-2026-61626-c344f9e8","signature_type":"Function"}],"vanir_signatures_modified":"2026-11-06T01:07:17Z"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:H/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"}]}