#1013306 bullseye-pu: package libsdl2/2.0.14+dfsg2-3+deb11u1

#1013306#5
Date:
2022-06-21 09:55:51 UTC
From:
To:
[ Reason ]
Backport two out-of-bounds reads, one of which has a CVE ID, presumably
because it could be an exploitable vulnerability for games that are
willing to load untrusted graphics data.

The security team marked the CVE as unimportant and didn't open a bug,
so presumably they don't intend to do a DSA.

[ Impact ]
If not approved, SDL games that load untrusted graphics could maybe be
crashed or otherwise interfered with by an attacker.

[ Tests ]
No specific test coverage. From the upstream bug reports, it seems that
these issues are usually only noticeable in practice if SDL is rebuilt
with AddressSanitizer.

The proposed version seems to work OK in brief testing with a few games
(0ad, openarena, warzone2100).

[ Risks ]
Low risk: the patches are trivial and have been in testing since January
without apparent regressions.

[ Checklist ]
  [x] *all* changes are documented in the d/changelog
  [x] I reviewed all changes and I approve them
  [x] attach debdiff against the package in (old)stable
  [x] the issue is verified as fixed in unstable

[ Changes ]

d/p/Fixed-potential-buffer-overflow-in-YUV-conversion.patch,
src/video/yuv2rgb/yuv_rgb.c: ensure that the index in a 512-element
lookup table is clamped to the range 0 to 511 inclusive, even if the input
data is malformed.

d/p/Always-create-a-full-256-entry-map-in-case-color-values-a.patch,
src/video/SDL_pixels.c: always allocate palettes for palette-based formats
with 256 entries and zero out the ones that are not used, so that
out-of-range pixel values resolve to transparent black
(red = green = blue = alpha = 0) instead of causing an out-of-bounds read.

#1013306#10
Date:
2022-06-26 16:58:06 UTC
From:
To:
Control: tags -1 + confirmed

Please go ahead.

Regards,

Adam

#1013306#17
Date:
2022-07-01 15:23:33 UTC
From:
To:
package release.debian.org
tags 1013306 = bullseye pending
thanks

Hi,

The upload referenced by this bug report has been flagged for acceptance into the proposed-updates queue for Debian bullseye.

Thanks for your contribution!

Upload details
==============

Package: libsdl2
Version: 2.0.14+dfsg2-3+deb11u1

Explanation: avoid out-of-bounds read while loading malformed BMP file [CVE-2021-33657], and during YUV to RGB conversion

#1013306#22
Date:
2022-07-01 15:23:33 UTC
From:
To:
package release.debian.org
tags 1013306 = bullseye pending
thanks

Hi,

The upload referenced by this bug report has been flagged for acceptance into the proposed-updates queue for Debian bullseye.

Thanks for your contribution!

Upload details
==============

Package: libsdl2
Version: 2.0.14+dfsg2-3+deb11u1

Explanation: avoid out-of-bounds read while loading malformed BMP file [CVE-2021-33657], and during YUV to RGB conversion

#1013306#27
Date:
2022-07-09 10:47:43 UTC
From:
To:
(re-sending with fixed bug numbers)

Hi,

The updates discussed in these bugs were included in today's bullseye
point release.

Regards,

Adam