CVE-2026-125261
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.
- Score
- 6.9 medium
- Published
- 2026-11-09
- Links
- NVD · cve.org · Report wrong data
Matched ports (5)
| Port | Package | Version | Status | Maintainer |
|---|---|---|---|---|
| multimedia/ffmpeg | ffmpeg | 9.0.2_3,1 | unaddressed | multimedia@FreeBSD.org |
| multimedia/ffmpeg | ffmpeg-nox11 | 9.0.2_3,1 | unaddressed | multimedia@FreeBSD.org |
| multimedia/ffmpeg3 | ffmpeg3 | 3.0.2_1 | unaddressed | kreinholz@gmail.com |
| multimedia/ffmpeg4 | ffmpeg4 | 4.4.8_2 | unaddressed | monwarez@mailoo.org |
| multimedia/linux-rl9-ffmpeg | linux-rl9-ffmpeg-libs | 7.1.5 | possibly backported | emulation@FreeBSD.org |
Template for a VuXML entry
Check the version numbers before you commit this entry. Some ports share an entry in the CVE database with another port, such as sqlite2 and sqlite3. The version shown here may then be one that never existed for this port.
Ranges per package from the CVE rows that match this port, in pkg notation with the port's epoch and revision, every bound checked with pkg; one range per epoch the port actually had. make newentry in security/vuxml creates the vid.
<vuln vid="FIXME (make newentry)">
<topic>ffmpeg -- FIXME</topic>
<affects>
<package>
<name>ffmpeg</name>
<name>ffmpeg-nox11</name>
<range><le>9.0.2_3,1</le></range>
</package>
<package>
<name>ffmpeg3</name>
<name>ffmpeg4</name>
<range><le>9.0.2</le></range>
</package>
</affects>
<description>
<body xmlns="http://www.w3.org/1999/xhtml">
<p>CVE-2026-125261: 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.</p>
</body>
</description>
<references>
<cvename>CVE-2026-125261</cvename>
<url>https://nvd.nist.gov/vuln/detail/CVE-2026-125261</url>
</references>
<dates>
<discovery>2026-11-09</discovery>
<entry>2026-11-10</entry>
</dates>
</vuln>