FFmpeg through 9.0.2 Heap Out-of-Bounds Read in V4L2 M2M Encoder
- State
- Published
- Severity
- 5.8 Medium
- Published
- Nov 9, 2026
- Updated
- Nov 13, 2026
- Reserved
- Nov 9, 2026
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.
| Product | Versions |
|---|---|
| FFmpeg FFmpeg | 9.0.2 and earlier Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 5.8 Medium | VulnCheck | |
| 3.1 | 5.3 Medium | VulnCheck |
Weaknesses
- CWE-125 Out-of-bounds Read
References
- https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24328Issue Tracker
- Patch CommitPatch
- https://github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavcodec/v4l2_buffers.c#L410Technical Details
- https://github.com/FFmpeg/FFmpegProduct Page
- VulnCheck Advisory: FFmpeg through 9.0.2 Heap Out-of-Bounds Read in V4L2 M2M EncoderThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.