Description
The ff_mjpeg_decode_sof function in libavcodec/mjpegdec.c in FFmpeg before 2.5.4 does not validate the number of components in a JPEG-LS Start Of Frame segment, which allows remote attackers to cause a denial of service (out-of-bounds array access) or possibly have unspecified other impact via crafted Motion JPEG 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.5.4-1 | — |
| Debian 13 | ffmpeg | 7:2.5.4-1 | — |
| Debian 12 | ffmpeg | 7:2.5.4-1 | — |
| Debian 8 | libav | 6:11.12-1~deb8u6 | DLA-1740-1 |
| Debian 7 | libav | 6:0.8.18-0+deb7u1 | DLA-644-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 22.04 LTS | kino | No fix yet | — |
| Ubuntu 20.04 LTS | kino | No fix yet | — |
| Ubuntu 18.04 LTS | kino | No fix yet | — |
| Ubuntu 16.04 LTS | kino | No fix yet | — |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 14.04 LTS | libav | No fix yet | — |
Advisories 2
- DLA-644-1 libav - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-1740-1 libav - security update Debian Security (DSA / DLA) · Mar 9, 2026
References
- http://git.videolan.org/?p=ffmpeg.git%3Ba=commit%3Bh=fabbfaa095660982cc0bc63242c459561fa37037
- USN-2944-1 vendor-advisory
- 1033078 vdb-entry
- 72644 vdb-entry
- [debian-lts-announce] 20190330 [SECURITY] [DLA 1740-1] libav security update mailing-list