{"id":"UBUNTU-CVE-2021-33657","details":"There is a heap overflow problem in video/SDL_pixels.c in SDL (Simple DirectMedia Layer) 2.x to 2.0.18 versions. By crafting a malicious .BMP file, an attacker can cause the application using this library to crash, denial of service or Code execution.","modified":"2026-04-22T14:46:50.701856Z","published":"2022-04-01T23:15:00Z","related":["USN-5398-1"],"upstream":["CVE-2021-33657"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-33657"},{"type":"REPORT","url":"https://github.com/libsdl-org/SDL/commit/8c91cf7dba5193f5ce12d06db1336515851c9ee9"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-5398-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-33657"}],"affected":[{"package":{"name":"libsdl1.2","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/libsdl1.2@1.2.15-8ubuntu1.1+esm2?arch=source&distro=trusty/esm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.15-8ubuntu1.1+esm2"}]}],"versions":["1.2.15-5ubuntu2","1.2.15-5ubuntu3","1.2.15-8ubuntu1","1.2.15-8ubuntu1.1","1.2.15-8ubuntu1.1+esm1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro","binaries":[{"binary_name":"libsdl1.2debian","binary_version":"1.2.15-8ubuntu1.1+esm2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-33657.json"}},{"package":{"name":"libsdl2","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/libsdl2@2.0.2+dfsg1-3ubuntu1.3+esm1?arch=source&distro=esm-infra-legacy/trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.0.0+dfsg1-2","2.0.0+dfsg1-3","2.0.1+dfsg1-1","2.0.1+dfsg1-1ubuntu1","2.0.2+dfsg1-3","2.0.2+dfsg1-3ubuntu1","2.0.2+dfsg1-3ubuntu1.1","2.0.2+dfsg1-3ubuntu1.2","2.0.2+dfsg1-3ubuntu1.3","2.0.2+dfsg1-3ubuntu1.3+esm1"],"ecosystem_specific":{"binaries":[{"binary_name":"libsdl2-2.0-0","binary_version":"2.0.2+dfsg1-3ubuntu1.3+esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-33657.json"}},{"package":{"name":"libsdl1.2","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/libsdl1.2@1.2.15+dfsg1-3ubuntu0.1+esm1?arch=source&distro=esm-infra/xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.15+dfsg1-3ubuntu0.1+esm1"}]}],"versions":["1.2.15-11ubuntu1","1.2.15-12ubuntu1","1.2.15+dfsg1-3","1.2.15+dfsg1-3ubuntu0.1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro","binaries":[{"binary_name":"libsdl1.2debian","binary_version":"1.2.15+dfsg1-3ubuntu0.1+esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-33657.json"}},{"package":{"name":"libsdl2","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/libsdl2@2.0.4+dfsg1-2ubuntu2.16.04.2?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.0.2+dfsg1-6ubuntu2","2.0.4+dfsg1-2","2.0.4+dfsg1-2ubuntu1","2.0.4+dfsg1-2ubuntu2","2.0.4+dfsg1-2ubuntu2.16.04.1","2.0.4+dfsg1-2ubuntu2.16.04.2"],"ecosystem_specific":{"binaries":[{"binary_name":"libsdl2-2.0-0","binary_version":"2.0.4+dfsg1-2ubuntu2.16.04.2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-33657.json"}},{"package":{"name":"libsdl1.2","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/libsdl1.2@1.2.15+dfsg2-0.1ubuntu0.2?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.15+dfsg2-0.1ubuntu0.2"}]}],"versions":["1.2.15+dfsg2-0.1","1.2.15+dfsg2-0.1ubuntu0.1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"libsdl1.2debian","binary_version":"1.2.15+dfsg2-0.1ubuntu0.2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-33657.json"}},{"package":{"name":"libsdl2","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/libsdl2@2.0.8+dfsg1-1ubuntu1.18.04.4+esm1?arch=source&distro=esm-apps/bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.0.6+dfsg1-3ubuntu1","2.0.6+dfsg1-4ubuntu1","2.0.7+dfsg1-3ubuntu1","2.0.8+dfsg1-1ubuntu1","2.0.8+dfsg1-1ubuntu1.18.04.1","2.0.8+dfsg1-1ubuntu1.18.04.3","2.0.8+dfsg1-1ubuntu1.18.04.4","2.0.8+dfsg1-1ubuntu1.18.04.4+esm1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.0.8+dfsg1-1ubuntu1.18.04.4+esm1","binary_name":"libsdl2-2.0-0"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-33657.json"}},{"package":{"name":"libsdl1.2","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/libsdl1.2@1.2.15+dfsg2-5?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.2.15+dfsg2-5"],"ecosystem_specific":{"binaries":[{"binary_name":"libsdl1.2debian","binary_version":"1.2.15+dfsg2-5"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-33657.json"}},{"package":{"name":"libsdl2","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/libsdl2@2.0.10+dfsg1-3ubuntu0.1~esm1?arch=source&distro=esm-apps/focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.0.10+dfsg1-1ubuntu1","2.0.10+dfsg1-1ubuntu4","2.0.10+dfsg1-1ubuntu6","2.0.10+dfsg1-1ubuntu7","2.0.10+dfsg1-1ubuntu8","2.0.10+dfsg1-2ubuntu5","2.0.10+dfsg1-3","2.0.10+dfsg1-3ubuntu0.1~esm1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.0.10+dfsg1-3ubuntu0.1~esm1","binary_name":"libsdl2-2.0-0"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-33657.json"}},{"package":{"name":"libsdl1.2","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/libsdl1.2@1.2.15+dfsg2-6?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.2.15+dfsg2-6"],"ecosystem_specific":{"binaries":[{"binary_name":"libsdl1.2debian","binary_version":"1.2.15+dfsg2-6"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-33657.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}