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

Published Nov 9, 2026
·
Updated

FFmpeg through 9.0.2 contains a heap out-of-bounds read vulnerability in v4l2bufferswframetobuf() in libavcodec/v4l2buffers.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.

Affected Software

1 affected component
FFmpeg FFmpeg<=9.0.2

Event History

Nov 9, 2026
CVE Published
via MITRE·07:12 PM
Data Sourced
via MITRE·07:12 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:18 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What conditions are required for exploitation?

An attacker must cause FFmpeg to transcode a crafted bottom-up AVI or PNM/PFM file using a V4L2 memory-to-memory encoder. The attack requires local access and user interaction, according to the supplied CVSS vector.

2

What could happen if a vulnerable transcode is performed?

The malformed frame can trigger a heap out-of-bounds read. This can crash the application or cause heap memory to be included in the encoded output.

3

How can I determine whether a workflow is exposed?

Workflows are exposed if they use FFmpeg through 9.0.2, accept AVI or PNM/PFM input that may contain bottom-up frames, and transcode that input through a V4L2 M2M encoder. The affected function is v4l2_buffer_swframe_to_buf() in libavcodec/v4l2_buffers.c.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203