JLSEC-2026-2221: FFmpeg before 9.1 contains a NULL pointer dereference vulnerability in xsub_encode() in...
FFmpeg before 9.1 contains a NULL pointer dereference vulnerability in xsubencode() in libavcodec/xsubenc.c that only warns when a subtitle has no rectangles and then dereferences rects[0]. Attackers can supply crafted PGS or DVB subtitles that decode to empty subtitle events, crashing applications that pass decoded subtitles directly to the XSUB encoder.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
julia/FFMPEG_jllto a version that resolves this vulnerability.Fixed in 9.1.0+0 - Upgrade
Upgrade
julia/FFMPEG_nogpl_jllto a version that resolves this vulnerability.Fixed in 9.1.0+0
Event History
Child vulnerabilities
Contains the following vulnerabilities.
Frequently Asked Questions
Which applications are exposed to a crash from this issue?
Applications using the affected FFmpeg packages are exposed when they decode PGS or DVB subtitles and pass the resulting subtitle events directly to the XSUB encoder. The impact described is a crash caused by a NULL pointer dereference.
What must an attacker provide to trigger the issue?
An attacker must supply crafted PGS or DVB subtitle content that decodes into an empty subtitle event with no rectangles. Exploitation also depends on the application forwarding that decoded event to the XSUB encoder.
Are all subtitle-processing workflows affected?
No. The described vulnerable path requires use of the XSUB encoder after decoding PGS or DVB subtitles. Workflows that do not encode decoded subtitles as XSUB are not described as affected.
What version should be used to address the issue?
The issue affects FFmpeg versions before 9.1. Updating to FFmpeg 9.1 or later addresses the affected version range described.