Description
FFmpeg versions 8.0 through 8.1.2 contains a stack buffer overflow vulnerability in the Vulkan HEVC hardware decoder that allows remote attackers to overwrite return addresses and adjacent stack frames by supplying a crafted HEVC/H.265 bitstream. Attackers can embed a malicious vps_num_hrd_parameters value exceeding HEVC_MAX_SUB_LAYERS in any supported container format to overflow stack-allocated arrays in the vk_hevc_end_frame function, potentially achieving arbitrary code execution.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| FFmpeg | FFmpeg | 8.0 – ≤ 8.1.2 | — |
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:9.0.2-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | ffmpeg | No fix yet | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 26.04 LTS | ffmpeg | 7:8.0.1-3ubuntu2+esm4 | USN-8716-2 |
| Ubuntu Pro 14.04 LTS | libav | No fix yet | — |
Advisories 2
- WID-SEC-2026-2491 ffmpeg: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 12, 2026
- USN-8716-2 ffmpeg vulnerabilities Ubuntu Security Notices (USN) · Sep 10, 2026
References
- Pull Request issue-tracking
- Patch Commit patch
- https://www.vulncheck.com/advisories/ffmpeg-stack-buffer-overflow-in-vulkan-hevc-decoder third-party-advisory