libass — переносной рендер субтитров для формата субтитров ASS/SSA (Advanced Substation Alpha/Substation Alpha). До 0.17.5 libass может перечитывать и перезаписывать массив глифов в wrap_lines_measure, при этом отображая вредоносный ASS контент. В режимах обертки, отличных от двух, конечная строка, оканчивающаяся буквальной последовательностью обратного слэша-n и иным образом состоящая только из таких последовательностей или пробелов, может оставаться после ранней обрезки и заставлять петли измерения линии превзойти один глиф.
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. Вторая петля записывает pos.x и pos.y за пределы массива, обнуляя первую и добавляя управляемое злоумышленником смещение ко второй. Никакая фактическая эксплуатация, кроме возможного отказа в обслуживании, не известна; более широкая эксплуатация является теоретической и ограничена адресами, ограниченной записью и ASLR.
Эта проблема исправлена в версии 0.17.5.
Показать оригинальное описание (EN)
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.
Характеристики атаки
Последствия
Строка CVSS v4.0