medium5.5
CVE-2026-125240
FFmpeg through 9.0.2 contains a resource leak vulnerability in svt_jpegxs_dec_decode() in libsvtjpegxsdec.c that leaks decoder instances when ff_set_dimensions…
Impact
FFmpeg through 9.0.2 contains a resource leak vulnerability in svt_jpegxs_dec_decode() in libsvtjpegxsdec.c that leaks decoder instances when ff_set_dimensions() rejects frame dimensions. Attackers can supply a crafted JPEG XS stream, for example in MPEG-TS, with oversized headers to repeatedly leak decoder threads and buffers, exhausting memory.
An attacker can exploit this with local access to the system, without logging in, but a user has to do something, such as open a file or a link. If it succeeds: high risk of outages.
Affected products · FFmpeg
| Product | Affected versions |
|---|---|
| FFmpeg | from 8.1 through 9.0.2 Version 8.1 ≤9.0.2 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25416
- https://github.com/FFmpeg/FFmpeg/commit/3aa561b0dd2054182fbb9548b4526e8500d52a52
- https://github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavcodec/libsvtjpegxsdec.c#L132
- https://github.com/FFmpeg/FFmpeg
- https://www.vulncheck.com/advisories/ffmpeg-through-9.0.2-resource-leak-in-libsvtjpegxs-jpeg-xs-decoder-wrapper
- https://github.com/advisories/GHSA-gjhm-46vw-wmhg
- https://nvd.nist.gov/vuln/detail/CVE-2026-125240