Skip to content
OpenAdvisories
High · 7.8 CVE-2026-65706 EUVD-2026-48373GHSA-g9rh-4g64-7qxg

FFmpeg 3.0 - 8.1.2 vf_swaprect Out-of-Bounds Write via NV12 Frame Processing

Published Jul 23, 2026 · Updated Jul 28, 2026 · Assigned by VulnCheck

Description

FFmpeg versions 3.0 through 8.1.2 contain an out-of-bounds write vulnerability in the vf_swaprect video filter that allows attackers to corrupt heap memory by supplying a crafted NV12 video frame with odd width dimensions. The filter_frame() function reuses a temporary row buffer sized for plane 0's single-byte pixel step across all planes, causing an 18-byte memcpy into a 17-byte heap allocation when processing the two-byte-per-sample interleaved chroma plane of a 17x16 NV12 frame, resulting in heap corruption and process crash with potential for code execution.

Affected products

VendorProductAffectedFixed
FFmpeg FFmpeg 3.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.

ReleasePackageFixed inAdvisory
Debian 14 ffmpeg 7:9.0.2-1 —
Debian 13 ffmpeg No fix yet —
Debian 12 ffmpeg No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 ffmpeg No fix yet —
Show 7 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 26.04 LTS ffmpeg 7:8.0.1-3ubuntu2+esm4 USN-8716-2
Ubuntu Pro 24.04 LTS ffmpeg 7:6.1.1-3ubuntu5+esm13 USN-8716-1
Ubuntu Pro 22.04 LTS ffmpeg 7:4.4.2-0ubuntu0.22.04.1+esm15 USN-8716-1
Ubuntu Pro 20.04 LTS ffmpeg 7:4.2.7-0ubuntu0.1+esm16 USN-8716-1
Ubuntu Pro 18.04 LTS ffmpeg 7:3.4.11-0ubuntu0.1+esm15 USN-8716-1
Ubuntu Pro 16.04 LTS ffmpeg 7:2.8.17-0ubuntu0.1+esm17 USN-8716-1
Ubuntu Pro 14.04 LTS libav No fix yet —
ReleasePackageFixed inAdvisory
SLES 15 SP7 ffmpeg 3.4.2-150200.11.79.1 SUSE-SU-2026:3934-1
SLES 15 SP7 ffmpeg-4 4.4.8-150600.13.55.1 SUSE-SU-2026:4149-1
SLES 15 SP6 ffmpeg 3.4.2-150200.11.79.1 SUSE-SU-2026:3934-1
SLES 15 SP5 ffmpeg 3.4.2-150200.11.79.1 SUSE-SU-2026:3934-1
SLES 15 SP4 ffmpeg 3.4.2-150200.11.79.1 SUSE-SU-2026:3934-1
SLES 15 SP4 ffmpeg-4 4.4.8-150400.3.75.1 SUSE-SU-2026:4150-1
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP6 ffmpeg 3.4.2-150200.11.79.1 SUSE-SU-2026:3934-1
SLES for SAP 15 SP5 ffmpeg 3.4.2-150200.11.79.1 SUSE-SU-2026:3934-1
SLES for SAP 15 SP4 ffmpeg 3.4.2-150200.11.79.1 SUSE-SU-2026:3934-1
SLES for SAP 15 SP4 ffmpeg-4 4.4.8-150400.3.75.1 SUSE-SU-2026:4150-1
SLE HPC 15 SP5 ffmpeg 3.4.2-150200.11.79.1 SUSE-SU-2026:3934-1
SLE HPC 15 SP4 ffmpeg 3.4.2-150200.11.79.1 SUSE-SU-2026:3934-1
SLE HPC 15 SP4 ffmpeg-4 4.4.8-150400.3.75.1 SUSE-SU-2026:4150-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed ffmpeg-4 4.4.8-4.1 openSUSE-SU-2026:11563-1
openSUSE Tumbleweed ffmpeg-7 7.1.5-2.1 openSUSE-SU-2026:11665-1
openSUSE Tumbleweed ffmpeg-8 8.1.2-3.1 openSUSE-SU-2026:11682-1
openSUSE Tumbleweed ffmpeg-9 9.0.1-2.1 openSUSE-SU-2026:11545-1
openSUSE Leap 16.0 ffmpeg-7 7.1.5-160000.1.1 openSUSE-SU-2026:21877-1

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling ffmpeg-7 +2 No fix yet —
Wolfi rolling ffmpeg-8.1 8.1.3-r0 —

Advisories 11

References