An exploitable integer overflow vulnerability exists when creating a new RGB Surface in SDL 2.0.5. A specially crafted file can cause an integer overflow resulting in too little memory being allocated which can lead to a buffer overflow and potential code execution. An attacker can provide a specially crafted image file to trigger this vulnerability.
https://www.talosintelligence.com/vulnerability_reports/TALOS-2017-0395
https://usn.ubuntu.com/4143-1/
https://lists.debian.org/debian-lts-announce/2021/10/msg00031.html