Description
The ljpeg_decode_yuv_scan function in libavcodec/mjpegdec.c in FFmpeg before 2.8.2 omits certain width and height checks, which allows remote attackers to cause a denial of service (out-of-bounds array access) or possibly have unspecified other impact via crafted MJPEG data.
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:2.8.2-1 | — |
| Debian 13 | ffmpeg | 7:2.8.2-1 | — |
| Debian 12 | ffmpeg | 7:2.8.2-1 | — |
| Debian 8 | libav | 6:11.12-1~deb8u2 | DLA-1611-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | ffmpeg-4 | 4.4-5.2 | openSUSE-SU-2024:10754-1 |
Advisories 2
- DLA-1611-1 libav - security update Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2024:10754-1 ffmpeg-4-4.4-5.2 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026