CVE-2026-135709
Description
FFmpeg before 9.1 contains an out-of-bounds write vulnerability in ogg_buffer_data() in libavformat/oggenc.c because ogg_buffer_page() leaves a full page current after failed allocation. When page allocation fails, a memset with length (size_t)-1 or an overflowing memcpy writes past the segment table, causing heap memory corruption and crashes when writing Ogg output.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
Mitigation details
CVE-2026-135709 NameCVE-2026-135709 DescriptionFFmpeg before 9.1 contains an out-of-bounds write vulnerability in ogg_buffer_data() in libavformat/oggenc.c because ogg_buffer_page() leaves a full page current after failed allocation. When page allocation fails, a memset with length (size_t)-1 or an overflowing memcpy writes past the segment table, causing heap memory corruption and crashes when…
CVE-2026-135709
| Name | CVE-2026-135709 |
| Description | FFmpeg before 9.1 contains an out-of-bounds write vulnerability in ogg_buffer_data() in libavformat/oggenc.c because ogg_buffer_page() leaves a full page current after failed allocation. When page allocation fails, a memset with length (size_t)-1 or an overflowing memcpy writes past the segment table, causing heap memory corruption and crashes when writing Ogg output. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
Vulnerable and fixed packages
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| ffmpeg (PTS) | bookworm, bookworm (security) | 7:5.1.9-0+deb12u1 | vulnerable |
| trixie (security), trixie | 7:7.1.5-0+deb13u1 | vulnerable | |
| forky | 7:9.0.2-6 | vulnerable | |
| sid | 7:9.1-3 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| ffmpeg | source | (unstable) | 7:9.1-3 |
Notes
[trixie] - ffmpeg <postponed> (Wait until fixed in 7.1.x upstream branch)
https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24932
https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/6d40aa17395aaba80922441bcfb58399a88475e3 (n9.1)
https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/a659cd842b122e2f41973ac7c4e826426cc0d756 (n9.1)
Apply commands
[trixie] - ffmpeg <postponed> (Wait until fixed in 7.1.x upstream branch)https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24932https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/6d40aa17395aaba80922441bcfb58399a88475e3 (n9.1)https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/a659cd842b122e2f41973ac7c4e826426cc0d756 (n9.1)
OS impact
Debian Mixed 4 releases
| Version | Package | Status | Fixed in |
|---|---|---|---|
| trixie | ffmpeg |
Affected | — |
| sid | ffmpeg |
Fixed | 7:9.1-3 |
| forky | ffmpeg |
Affected | — |
| bookworm | ffmpeg |
Affected | — |
SUSE Tracked 1 release
| Version | Package | Status | Fixed in |
|---|---|---|---|
| — | — | Unknown | — |
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| ffmpeg | ffmpeg | {"endExcluding":"9.1"} | 9.1 |
References
- https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24932
- https://github.com/FFmpeg/FFmpeg
- https://github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavformat/oggenc.c#L252
- https://github.com/FFmpeg/FFmpeg/commit/6d40aa17395aaba80922441bcfb58399a88475e3
- https://github.com/FFmpeg/FFmpeg/commit/a659cd842b122e2f41973ac7c4e826426cc0d756
- https://www.vulncheck.com/advisories/ffmpeg-before-9.1-out-of-bounds-write-via-ogg-buffer-data-in-oggenc-c
- https://security-tracker.debian.org/tracker/CVE-2026-135709
- https://www.suse.com/security/cve/CVE-2026-135709.html
CWEs
CWE-787
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.