CVE-2025-59730

NameCVE-2025-59730
DescriptionWhen decoding a frame for a SANM file (ANIM v0 variant), the decoded data can be larger than the buffer allocated for it. Frames encoded with codec 48 can specify their resolution (width x height). A buffer of appropriate size is allocated depending on the resolution. This codec can encode the frame contents using a run-length encoding algorithm. There are no checks that the decoded frame fits in the allocated buffer, leading to a heap-buffer-overflow. process_frame_obj initializes the buffers based on the frame resolution: 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)

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
bookworm, bookworm (security)7:5.1.7-0+deb12u1fixed
trixie7:7.1.1-1fixed
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
ffmpegsource(unstable)(not affected)

Notes

- ffmpeg <not-affected> (Vulnerable code not present)
https://issuetracker.google.com/issues/434637586
Introduced by: https://git.ffmpeg.org/gitweb/ffmpeg.git/commit/b22ce90d4228d1cb7727775cc848613ac31b97e9 (n8.0)
Fixed by: https://git.ffmpeg.org/gitweb/ffmpeg.git/commit/3ccd7d8c8e85aaae0c6d6cc88ea6cb5309d56cdc (n8.0)

Search for package or bug name: Reporting problems