There is a stack-based buffer overflow in the third instance of the calculate_gain function in libfaad/sbr_hfadj.c in Freeware Advanced Audio Decoder 2 (FAAD2) 2.8.8. A crafted input will lead to a denial of service or possibly unspecified other impact because the S_M array is mishandled.
https://www.debian.org/security/2022/dsa-5109
https://security.gentoo.org/glsa/202006-17
https://lists.debian.org/debian-lts-announce/2019/08/msg00033.html