CVE-2025-59732

NameCVE-2025-59732
DescriptionWhen decoding an OpenEXR file that uses DWAA or DWAB compression, there's an implicit assumption that the height and width are divisible by 8. If the height or width of the image is not divisible by 8, the copy loops at [0] and [1] will continue to write until the next multiple of 8. The buffer td->uncompressed_data is allocated in decode_block based on the precise height and width of the image, so the "rounded-up" multiple of 8 in the copy loop can exceed the buffer bounds, and the write block starting at [2] can corrupt following heap memory. 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+deb11u1fixed
bullseye (security)7:4.3.9-0+deb11u1fixed
bookworm7:5.1.7-0+deb12u1fixed
bookworm (security)7:5.1.8-0+deb12u1fixed
trixie7:7.1.2-0+deb13u1fixed
trixie (security)7:7.1.3-0+deb13u1fixed
forky, sid7:8.0.1-3fixed

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

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

Notes

[bullseye] - ffmpeg <not-affected> (Vulnerable code introduced in version 4.4)
https://issuetracker.google.com/issues/436510316
Introduced in: https://git.ffmpeg.org/gitweb/ffmpeg.git/commit/cc85ca1cb347570a95d8615b7d4c7b542042b7f0 (n4.4)
Fixed by: https://git.ffmpeg.org/gitweb/ffmpeg.git/commit/f45da79b2c336c5f8f3e563d72b8a22fecdcde0c (n8.0)
Fixed by: https://git.ffmpeg.org/gitweb/ffmpeg.git/commit/97932677dbc29c1173f3361886022426ac74197e (n7.1.2)
Fixed by: https://git.ffmpeg.org/gitweb/ffmpeg.git/commit/fa543b33f63478090137d124c20ff97f76251254 (n6.1.3)
Fixed by: https://git.ffmpeg.org/gitweb/ffmpeg.git/commit/20708b957e8d4d57801c0b7ac52131988b093a49 (n5.1.7)

Search for package or bug name: Reporting problems