All reports
Medium

ffmpeg: SGI encoder out-of-bounds read

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-125261

Probability of exploitation in the next 30 days: 0.13%

FIRST EPSS · 2026-11-20

Description

FFmpeg through 9.0.2 contains an out-of-bounds read vulnerability in the SGI encoder's encode_frame() in libavcodec/sgienc.c, where unsigned size variables mis-handle negative linesize frames. Attackers can supply a video whose display matrix triggers autorotate vflip, so transcoding to SGI images reads pixel data far outside the frame and crashes the process.

A flaw was found in FFmpeg. An out-of-bounds read can occur in the SGI (Silicon Graphics Image) encoder when transcoding a specially crafted video to SGI images, specifically a video that triggers an autorotate vflip, due to improper handling of negative linesizes. This vulnerability can lead to an application crash or limited information disclosure.