Thread View: linux.debian.bugs.dist
3 messages
3 total messages
Started by Simon McVittie
Wed, 25 Nov 2026 11:30
Bug#1155237: debian-security-support: Consider marking SDL 2 family as unsuitable for untrusted image/sound/font content
Author: Simon McVittie
Date: Wed, 25 Nov 2026 11:30
Date: Wed, 25 Nov 2026 11:30
53 lines
4229 bytes
4229 bytes
Package: debian-security-support
Severity: wishlist
X-Debbugs-Cc: libsdl2-image@packages.debian.org, libsdl2-mixer@packages.debian.org, libsdl2-ttf@packages.debian.org, sdl2-compat@packages.debian.org, Debian Security Team <team@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
Bug#1155237: debian-security-support: Consider marking SDL 2 family as unsuitable for untrusted image/sound/font content
Author: Simon McVittie
Date: Wed, 25 Nov 2026 21:10
Date: Wed, 25 Nov 2026 21:10
22 lines
2509 bytes
2509 bytes
On Wed, 25 Nov 2026 at 11:20:35 +0000, Simon McVittie wrote:
>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
Actually, this might not be necessary: upstream says that none of the
versions of SDL_image or SDL_mixer are intended to be used with
untrusted content anyway, so any CVE of the form "an attacker can
supply a crafted [image/sound/etc.] and ..." should probably be
considered invalid.
I haven't checked the status of SDL_ttf, but I doubt they intend for
that one to be resistant to crafted malicious fonts either.
smcv
Bug#1155237: debian-security-support: Consider marking SDL 2 family as unsuitable for untrusted image/sound/font content
Author: Moritz Mühlenhoff
Date: Sat, 28 Nov 2026 22:40
Date: Sat, 28 Nov 2026 22:40
25 lines
2888 bytes
2888 bytes
On Wed, Nov 25, 2026 at 08:59:39PM +0000, Simon McVittie wrote:
> On Wed, 25 Nov 2026 at 11:20:35 +0000, Simon McVittie wrote:
> > 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
>
> Actually, this might not be necessary: upstream says that none of the
> versions of SDL_image or SDL_mixer are intended to be used with untrusted
> content anyway, so any CVE of the form "an attacker can supply a crafted
> [image/sound/etc.] and ..." should probably be considered invalid.
Sounds good to me. I think it still makes sense to make that explicit
in the SDL mixer/image packages by adding a README.Debian.security.
After we also needed the explicit confirmation from upstream.
Cheers,
Moritz
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads