CVE-2026-54240, CVE-2026-54241: fix pixel-accessor integer overflow
authorDebian Multimedia Maintainers <debian-multimedia@lists.debian.org>
Sun, 30 Aug 2026 20:56:35 +0000 (22:56 +0200)
committerMoritz Mühlenhoff <jmm@debian.org>
Sun, 30 Aug 2026 20:56:35 +0000 (22:56 +0200)
commit3f295b5043163c0fa5bc00a7220747305e729803
treee8bfb06eeb963baaa187353bd24479883e03369b
parentdec759c9c8c8a5dcc71d70760e358360e14795af
CVE-2026-54240, CVE-2026-54241: fix pixel-accessor integer overflow

Origin: upstream, https://github.com/strukturag/libde265/commit/bdca87569b9c63c2a7054d90ae4462dbb78d159a
Bug: https://github.com/strukturag/libde265/security/advisories/GHSA-ccfw-29x7-rrx3
Bug: https://github.com/strukturag/libde265/security/advisories/GHSA-j2qq-x2xq-g9wr
Applied-Upstream: 1.1.1

The image pixel accessors computed xpos + ypos*stride in signed 32-bit
arithmetic; frames with width*height > INT32_MAX wrap the offset and the
returned pointer lands far outside the buffer (OOB read/write). Widen
stride/offset math to 64 bits and store validated SPS dimensions in
uint16_t.

Gbp-Pq: Name CVE-2026-54240_CVE-2026-54241.patch
libde265/de265.cc
libde265/image-io.cc
libde265/image.cc
libde265/image.h
libde265/intrapred.h
libde265/motion.cc
libde265/sao.cc
libde265/sei.cc
libde265/sps.cc
libde265/sps.h