Home › CVE › Vulnerabilities
CVE-2026-125208 — FFmpeg
One of 121 FFmpeg vulnerabilities published together by NVD.
VulnerabilitiesAnalysis
CVE-2026-125208: FFmpeg out-of-bounds write in V4L2 M2M encoding path rated HIGH (CVSS 7.3)
CVE-2026-125208 is an out-of-bounds write in FFmpeg through 9.0.2 that can be triggered by crafted video during V4L2 memory-to-memory encoding. The CVSS score is 7.3 (HIGH), and the sources provided do not yet include a fixed version or confirmed exploitation.
Key points
- FFmpeg through 9.0.2 has an out-of-bounds write in the V4L2 M2M encoding path (CVE-2026-125208).
- Crafted video with specific dimensions or padding can trigger an unsigned wraparound that leads to writes past the driver buffer.
- NVD rates the flaw HIGH with a CVSS score of 7.3.
- No fixed version or confirmed exploitation is listed in the provided sources.
What's affected
The National Vulnerability Database entry describes a flaw in FFmpeg versions through 9.0.2. The weakness is in the function v4l2_buffer_swframe_to_buf() in libavcodec/v4l2_buffers.c. Cumulative plane offsets used when copying frame data are not checked against the length of the V4L2 buffer. The sources do not list specific fixed or unaffected builds, and they do not name downstream packages or distributions that bundle FFmpeg.
How the flaw works
According to the NVD entry, an attacker can supply video whose dimensions or padding cause an unsigned integer wraparound in v4l2_bufref_to_buf(). When this happens, a memcpy() operation can write beyond the end of the memory-mapped buffer provided by the driver. The issue is reached during V4L2 memory-to-memory encoding, so it applies when FFmpeg uses V4L2 hardware encoders. The sources do not describe the memory layout or the exact conditions required for reliable impact.
How serious is it
The NVD severity is HIGH with a CVSS score of 7.3. An out-of-bounds write is a memory corruption class of bug, and the score reflects that risk. Because the trigger is a crafted input file, any service or workflow that transcodes untrusted media through FFmpeg with V4L2 encoding is the most exposed. Desktop or batch use on trusted files carries lower practical risk. The sources do not state the attack vector, privileges required, or whether code execution has been demonstrated.
Is it being exploited
No exploitation activity is reported in the provided source material. Treat that as unknown rather than absent.
What to do
Check whether your systems run FFmpeg, including bundled copies inside other applications, and whether any use V4L2 M2M encoders. Watch the FFmpeg project and your operating system or vendor channels for a fixed release, since none is identified in the sources. Until a fix is available, consider limiting V4L2 encoding to trusted input, and isolating transcoding jobs that process uploaded or third-party video. Review logs of media-processing services for unexpected crashes in the encoder.
Recommended actions
- Inventory systems and applications that bundle FFmpeg, and identify those using V4L2 hardware encoders.
- Restrict V4L2 encoding to trusted input, and run transcoding of untrusted media in isolated, sandboxed workers.
- Monitor the FFmpeg project and your OS or vendor advisories for a patched release, and apply it as soon as it is available.
- Watch media services for crashes or unexpected restarts in the encoder and preserve logs for investigation.
Summary
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.
Severity breakdown
High · 7.3
An attacker without an account can exploit this with local access if a user views or visits something, but only under specific conditions.
- Attack from
- local access (a logged-in user, or a malicious file opened on the device)
- Attack complexity
- high (only works under specific conditions)
- Special conditions
- only in some setups or conditions
- Login needed
- no
- User action needed
- yes, a user must view or visit something
- Impact
- high on confidentiality, integrity and availability
- Impact on other systems
- none
Weakness
- CWE-787: Out-of-bounds Write
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| FFmpeg | ≤ 9.0.2 | — |
References by type
Patches and fixed releases
Other references
Affected
- FFmpeg
What to do
- Check whether you run an affected product or version and apply the vendor's update or mitigation.
- Follow the vendor advisory and the references below for fixed versions and workarounds.
Frequently asked questions
What is CVE-2026-125208?
CVE-2026-125208 is an out-of-bounds write in FFmpeg through 9.0.2 that can be triggered by crafted video during V4L2 memory-to-memory encoding. The CVSS score is 7.3 (HIGH), and the sources provided do not yet include a fixed version or confirmed exploitation. Weakness type: Out-of-bounds Write (CWE-787).
How severe is CVE-2026-125208?
CVE-2026-125208 has a CVSS 4.0 base score of 7.3 (high), from the CNA (vulncheck.com). An attacker without an account can exploit this with local access if a user views or visits something, but only under specific conditions.
Is CVE-2026-125208 being exploited?
Not as far as is known: CVE-2026-125208 is not in CISA's Known Exploited Vulnerabilities catalog as of November 29, 2026. EPSS estimates a 0.2% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-125208?
FFmpeg ≤ 9.0.2.
How do I fix CVE-2026-125208?
Inventory systems and applications that bundle FFmpeg, and identify those using V4L2 hardware encoders. Restrict V4L2 encoding to trusted input, and run transcoding of untrusted media in isolated, sandboxed workers. Monitor the FFmpeg project and your OS or vendor advisories for a patched release, and apply it as soon as it is available.