CVE-2025-59733

NameCVE-2025-59733
DescriptionWhen decoding an OpenEXR file that uses DWAA or DWAB compression, there's an implicit assumption that all image channels have the same pixel type (and size), and that if there are four channels, the first four are "B", "G", "R" and "A". The channel parsing code can be found in decode_header. The buffer td->uncompressed_data is allocated in decode_block based on the xsize, ysize and computed current_channel_offset. The function dwa_uncompress then assumes at [5] that if there are 4 channels, these are "B", "G", "R" and "A", and in the calculations at [6] and [7] that all channels are of the same type, which matches the type of the main color channels. If we set the main color channels to a 4-byte type and add duplicate or unknown channels of the 2-byte EXR_HALF type, then the addition at [7] will increment the pointer by 4-bytes * xsize * nb_channels, which will exceed the allocated buffer. We recommend upgrading to version 8.0 or beyond.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDSA-5985-1, DSA-6007-1

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
ffmpeg (PTS)bullseye7:4.3.7-0+deb11u1vulnerable
bullseye (security)7:4.3.9-0+deb11u1vulnerable
bookworm, bookworm (security)7:5.1.7-0+deb12u1fixed
trixie7:7.1.1-1vulnerable
trixie (security)7:7.1.2-0+deb13u1fixed
forky, sid7:7.1.2-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
ffmpegsourcebookworm7:5.1.7-0+deb12u1DSA-5985-1
ffmpegsourcetrixie7:7.1.2-0+deb13u1DSA-6007-1
ffmpegsource(unstable)7:7.1.2-1

Notes

https://issuetracker.google.com/issues/436511754
Fixed by: https://git.ffmpeg.org/gitweb/ffmpeg.git/commit/0469d68acb52081ca8385b844b9650398242be0f (master)
Fixed by: https://git.ffmpeg.org/gitweb/ffmpeg.git/commit/de76fb27a6e6da0431154ce9093933281a38a889 (n8.0)
Fixed by: https://git.ffmpeg.org/gitweb/ffmpeg.git/commit/a9ec8317498b62192cc3df95ef2523eae8ec0294 (n7.1.2)
Fixed by: https://git.ffmpeg.org/gitweb/ffmpeg.git/commit/a2e8dc01c0a50d2ec8c85d836bda8eaef6891e50 (n6.1.3)
Fixed by: https://git.ffmpeg.org/gitweb/ffmpeg.git/commit/1080d0e3cded6d8e177c2ce8b6649bc238be2ff6 (n5.1.7)

Search for package or bug name: Reporting problems