An issue was discovered in Freeware Advanced Audio Decoder 2 (FAAD2) 2.8.8. The faad_resetbits function in libfaad/bits.c is affected by a buffer overflow vulnerability. The number of bits to be read is determined by ld->buffer_size - words*4, cast to uint32. If ld->buffer_size - words*4 is negative, a buffer overflow is later performed via getdword_n(&ld->start[words], ld->bytes_left).
https://www.debian.org/security/2019/dsa-4522
https://security.gentoo.org/glsa/202006-17
https://seclists.org/bugtraq/2019/Sep/28
https://lists.debian.org/debian-lts-announce/2019/08/msg00033.html
https://github.com/knik0/faad2/commit/942c3e0aee748ea6fe97cb2c1aa5893225316174