Bug#1155237: debian-security-support: Consider marking SDL 2 family as unsuitable for untrusted image/sound/font content
Simon McVittie
smcv at debian.org
Wed Nov 25 11:20:35 GMT 2026
Package: debian-security-support
Severity: wishlist
X-Debbugs-Cc: libsdl2-image at packages.debian.org, libsdl2-mixer at packages.debian.org, libsdl2-ttf at packages.debian.org, sdl2-compat at packages.debian.org, Debian Security Team <team at security.debian.org>
The SDL 2 family of libraries has been superseded by SDL 3 and is
therefore only partially maintained upstream at this point, and we
cannot expect security vulnerabilities to be prioritized.
I have not yet had the time available to do a mass-bug-filing for SDL 2
games suggesting that they move to SDL 3. I will try to do that MBF at
some point, but based on the progress we've seen in porting SDL 1.2
games to SDL 2, I would expect this to take years, if not decades.
libsdl2-image and libsdl2-mixer definitely contain decoders for image
and audio formats, written in a non-memory-safe language in a style that
prioritizes performance and minimal dependencies over robustness (they
are game-related libraries, this comes with the territory). They are OK
to use with fully-trusted content, like the images and sounds that come
with legacy games in Debian, but I think we should consider marking them
as no longer supported for untrusted or attacker-controlled content (for
example a game that auto-downloaded textures from a remote server and
displayed them using libsdl2-image should be considered to be a
potential problem, if such a game exists).
I think libsdl2-ttf might contain parsing of TTF fonts? If it does, then
similar reasoning applies.
sdl2-compat (the reimplementation of SDL 2 core by dlopening SDL 3) *is*
still maintained by upstream, but realistically anything that uses it,
and interacts with untrusted content, is relatively likely to have
vulnerabilities. It might be safer to call sdl2-compat out-of-scope for
security support, too.
src:libsdl2 (the original SDL 2 core implementation) is no longer used
by default in forky, but survives as a compatibility package that can be
forced for any legacy games that regress with sdl2-compat. My intention
at the moment is to keep this package for forky, but then delete it
after the forky release. It is no longer receiving upstream releases.
So I would suggest that we should consider marking these libraries:
libsdl2
libsdl2-image
libsdl2-mixer
libsdl2-ttf
sdl2-compat
as only suitable for processing trusted content, and unsuitable for
parsing untrusted or attacker-controlled content. I don't know what the
security team's typical wording is for this, but I assume there is one?
Thanks,
smcv
More information about the Pkg-sdl-maintainers
mailing list