# CVE-2021-33657: libsdl1.2: There is a heap overflow problem in video/SDL_pixels.c in SDL (Simple DirectMedia Layer) 2.x to 2.0.18 versions

CVE-2021-33657 is fixed in 3 products on 1 platform, first by libsdl1.2debian 1.2.15+dfsg2-0.1ubuntu0.2, released April 1, 2022. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2021-33657
- Priority: High
- CVSS: 8.8 (high)
- EPSS: 0.0206
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Apr 1, 2022

## Description

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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | libsdl1.2 Debian 12.15 (bookworm) | 1.2.15+dfsg2-7 | [DEBIAN-CVE-2021-33657](https://patchblox.com/security/data/fix/linux/debian-cve-2021-33657.md) | Apr 1, 2022 |
| Linux | libsdl1.2debian Ubuntu 18.04.6 LTS (bionic) | 1.2.15+dfsg2-0.1ubuntu0.2 | [libsdl1.2debian 1.2.15+dfsg2-0.1ubuntu0.2](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libsdl1.2debian-1.2.15-dfsg2-0.1ubuntu0.2.md) | Apr 1, 2022 |
| Linux | libsdl2 Debian 12.15 (bookworm) | 2.0.20+dfsg-2 | [DEBIAN-CVE-2021-33657](https://patchblox.com/security/data/fix/linux/debian-cve-2021-33657.md) | Apr 1, 2022 |
| Linux | libsdl2 Debian 13.5 (trixie) | 2.0.20+dfsg-2 | [DEBIAN-CVE-2021-33657](https://patchblox.com/security/data/fix/linux/debian-cve-2021-33657.md) | Apr 1, 2022 |
| Linux | libsdl2 Debian 14 | 2.0.20+dfsg-2 | [DEBIAN-CVE-2021-33657](https://patchblox.com/security/data/fix/linux/debian-cve-2021-33657.md) | Apr 1, 2022 |

---

Data as of 2026-11-08T06:59:42Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
