Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
8.4
CVE-2026-125208: FFmpeg video encoding may overwrite memory
CVE-2026-125208 · published 17 days ago
Summary
The FFmpeg program (versions up to 9.0.2) can write data beyond the space it has reserved when converting certain video files for hardware encoding. A specially crafted video could cause the program to corrupt memory, potentially leading to crashes or unauthorized actions. Update FFmpeg to a version that includes the fix or apply the vendor’s recommended patch.
What to do
The CVE record does not list a fixed version. Check the vendor's site or the advisory links below - a fix may already be released.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| – | ffmpeg | ffmpeg | <= 9.0.2 |
| Ubuntu:Pro:16.04:LTS | canonical | ffmpeg | All versions |
| Debian:12 | debian | ffmpeg | All versions |
Original advisory text
FFmpeg through 9.0.2 V4L2 M2M Encoder Out-of-Bounds Write in v4l2_buffers.c
FFmpeg through 9.0.2 contains an out-of-bounds write vulnerability in v4l2_buffer_swframe_to_buf() in libavcodec/v4l2_buffers.c because cumulative plane offsets are not checked against the V4L2 buffer length. Attackers can supply crafted video whose dimensions or padding cause unsigned wraparound in v4l2_bufref_to_buf(), making memcpy() write past the mmaped driver buffer during V4L2 M2M encoding.
References
- https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24328 Third Party Advisory
- https://github.com/FFmpeg/FFmpeg/commit/b8f159858e2fd29dae4fa34d9e713bbf9bbf190e Patch
- https://github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavcodec/v4l2_buffers.c#L309 Third Party Advisory
- https://github.com/FFmpeg/FFmpeg Product
- https://www.vulncheck.com/advisories/ffmpeg-through-9.0.2-v4l2-m2m-encoder-out-o... Vendor Advisory
- https://code.ffmpeg.org/FFmpeg/FFmpeg URL
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/125xxx/CVE-2026-1252... Vendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-125208 Vendor Advisory
- https://ubuntu.com/security/CVE-2026-125208 Third Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2026-125208 Third Party Advisory
- https://security-tracker.debian.org/tracker/CVE-2026-125208 Vendor Advisory
Internet-facing
14 days
Internal
At next upgrade
- Not known to be exploited
- Needs hands-on effort to exploit
- Gives an attacker full control
Severity
8.4
High
Type
CWE-787Out-of-bounds Write
Timeline
Published9 Nov 2026
Updated26 Nov 2026
First seen9 Nov 2026
Sources
CVE-2026-125208 · NVD
CVE-2026-125208 · MITRE
CVE-2026-125208 · OSV
UBUNTU-CVE-2026-125208 · OSV
DEBIAN-CVE-2026-125208 · OSV
Track software like this
Free during beta