CVE-2026-125196

NameCVE-2026-125196
DescriptionFFmpeg through 9.0.2 contains a heap buffer overflow vulnerability in liboapve_encode() in libavcodec/liboapvenc.c that allows attackers to corrupt heap memory by supplying frames larger than the configured encoder dimensions. Attackers can craft videos whose resolution changes mid-stream so that transcoding to APV without rescaling writes attacker-controlled pixel data past the imgb plane buffers.
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)bookworm, bookworm (security)7:5.1.9-0+deb12u1fixed
trixie (security), trixie7:7.1.5-0+deb13u1fixed
forky7:9.0.2-6vulnerable
sid7:9.1-3vulnerable

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

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
ffmpegsourcebookworm(not affected)
ffmpegsourcetrixie(not affected)
ffmpegsource(unstable)(unfixed)

Notes

[trixie] - ffmpeg <not-affected> (Vulnerable code not present)
[bookworm] - ffmpeg <not-affected> (Vulnerable code not present)
https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25416
Fixed by: https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/87cdb6cd6a8d1ec201cb82b30e64d5f946939e23 (master)
Introduced by: https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/fab691edaf53bbf10429ef3448f1f274e5078395 (n8.0)

Search for package or bug name: Reporting problems