🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #6069

Bug#1155237: debian-security-support: Consider marking SDL 2 family as unsuitable for untrusted image/sound/font content

#6069
From: Simon McVittie
Date: Wed, 25 Nov 2026 11:30
53 lines
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
Technical Details
Message-ID: <O3jmh-e3GD-5@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!srl.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srl.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Simon McVittie <smcv@debian.org>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1155237: debian-security-support: Consider marking SDL 2 family as unsuitable for untrusted image/sound/font content
Date: Wed, 25 Nov 2026 12:30:01 +0100
Message-ID: <O3jmh-e3GD-5@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Wed Nov 25 11:21:21 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.7
Reply-To: Simon McVittie <smcv@debian.org>, 1155237@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: libsdl2-image@packages.debian.org, libsdl2-mixer@packages.debian.org, libsdl2-ttf@packages.debian.org, sdl2-compat@packages.debian.org, team@security.debian.org, team@security.debian.org
X-Debian-Pr-Message: report 1155237
X-Debian-Pr-Package: debian-security-support
X-Debian-Pr-Source: debian-security-support
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
X-Debian-User: smcv
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2004882
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 53
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Wed, 25 Nov 2026 11:20:35 +0000
X-Original-Message-ID: <awbEg-2-sPbZW7J2@definition.pseudorandom.co.uk>