# CVE-2026-125270: FFmpeg through 9.0.2 Heap Out-of-Bounds Read in V4L2 M2M Encoder

- Severity: Medium 5.8 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.15%, higher than 4% of CVEs (2026-12-01)
- Published: 2026-11-09T19:12:10.299Z
- Modified: 2026-11-25T15:06:50.797Z
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulnCheck

## Description

FFmpeg through 9.0.2 contains a heap out-of-bounds read vulnerability in v4l2_buffer_swframe_to_buf() in libavcodec/v4l2_buffers.c that mishandles frames with negative linesize. Attackers can supply bottom-up AVI or PNM/PFM files that are transcoded to a V4L2 M2M encoder, crashing the application or leaking heap memory into encoded output.

(As written by CVE List.)

## Affected

- FFmpeg FFmpeg: up to 9.0.2

## Every score

- VulnCheck: CVSS:4.0 5.8 Medium `CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:H`

## References

- <https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24328> (issue-tracking, patch)
- <https://github.com/FFmpeg/FFmpeg/commit/b8f159858e2fd29dae4fa34d9e713bbf9bbf190e> (patch)
- <https://github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavcodec/v4l2_buffers.c#L410> (patch, technical-description)
- <https://github.com/FFmpeg/FFmpeg> (product)
- <https://www.vulncheck.com/advisories/ffmpeg-through-9.0.2-heap-out-of-bounds-read-in-v4l2-m2m-encoder> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-125270](https://www.cve.org/CVERecord?id=CVE-2026-125270), CVE Terms of Use, modified 2026-11-13
- NVD: [CVE-2026-125270](https://nvd.nist.gov/vuln/detail/CVE-2026-125270), Public domain, modified 2026-11-25

---

Page: https://cve.day/CVE-2026-125270 · Whole record: https://cve.day/CVE-2026-125270.json · Rebuilt by cve.day 2026-11-25T22:59:53.298Z
