CVE-2026-137909: FFmpeg before 9.1 NULL Pointer Dereference via XSUB Encoder Empty Subtitles
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
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Applications using FFmpeg before 9.1 are exposed only if they decode PGS or DVB subtitles and pass the resulting subtitle events directly to the XSUB encoder. The reported outcome is an application crash.
What does an attacker need to do to trigger the crash?
An attacker needs to provide crafted PGS or DVB subtitle content that decodes into an empty subtitle event. Triggering also requires user interaction and depends on the application processing that event through the XSUB encoder.
Are confidentiality or integrity affected?
The supplied severity vector indicates no confidentiality or integrity impact. The impact described is availability loss through a NULL pointer dereference and resulting crash.