Description
When decoding an OpenEXR file that uses DWAA or DWAB compression, there's an implicit assumption that all image channels have the same pixel type (and size), and that if there are four channels, the first four are "B", "G", "R" and "A". The channel parsing code can be found in decode_header. The buffer td->uncompressed_data is allocated in decode_block based on the xsize, ysize and computed current_channel_offset.
The function dwa_uncompress then assumes at [5] that if there are 4 channels, these are "B", "G", "R" and "A", and in the calculations at [6] and [7] that all channels are of the same type, which matches the type of the main color channels.
If we set the main color channels to a 4-byte type and add duplicate or unknown channels of the 2-byte EXR_HALF type, then the addition at [7] will increment the pointer by 4-bytes * xsize * nb_channels, which will exceed the allocated buffer.
We recommend upgrading to version 8.0 or beyond.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| FFmpeg | FFmpeg | 9a32b863074ed4140141e0d3613905c6f1fe61c5 – < 8.0, 7.1.1 – < 8.0 | 8.0 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | ffmpeg | 7:7.1.2-1 | — |
| Debian 13 | ffmpeg | 7:7.1.2-0+deb13u1 | DSA-6007-1 |
| Debian 12 | ffmpeg | 7:5.1.7-0+deb12u1 | DSA-5985-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 25.10 | ffmpeg | 7:7.1.1-1ubuntu4.2 | — |
Show 5 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 24.04 LTS | ffmpeg | 7:6.1.1-3ubuntu5+esm7 | — |
| Ubuntu Pro 22.04 LTS | ffmpeg | 7:4.4.2-0ubuntu0.22.04.1+esm11 | — |
| Ubuntu Pro 20.04 LTS | ffmpeg | 7:4.2.7-0ubuntu0.1+esm12 | — |
| Ubuntu Pro 18.04 LTS | ffmpeg | 7:3.4.11-0ubuntu0.1+esm12 | — |
| Ubuntu Pro 14.04 LTS | libav | No fix yet | — |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | ffmpeg | 8.0-r0 | — |
| Alpine v3.23 | ffmpeg | 8.0-r0 | — |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | ffmpeg-7 +1 | No fix yet | — |
Advisories 3
- WID-SEC-2025-2130 ffmpeg: Mehrere Schwachstellen ermöglichen nicht spezifizierten Angriff BSI CERT-Bund (WID) · Jun 18, 2026
- DSA-5985-1 ffmpeg - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-6007-1 ffmpeg - security update Debian Security (DSA / DLA) · Mar 9, 2026