# CVE-2026-65706: FFmpeg 3.0 - 8.1.2 vf\_swaprect Out-of-Bounds Write via NV12 Frame Processing

- Priority: **Routine**
- Reason: Not severe (CVSS 8.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-07-23 · Modified: 2026-07-28
- Aliases: UBUNTU-CVE-2026-65706, DEBIAN-CVE-2026-65706, CGA-54pq-h6g5-3w64, CGA-64j9-xcm6-c485, CGA-jgp2-h67c-j7jf, CGA-jmgv-hfrp-3q2m, CGA-pgxq-xvmj-vqqg, CGA-prcr-x5q6-9r3x, CGA-qxp9-jmcp-phmv, CGA-rcmm-v87w-4qgf, CGA-2mwr-c57r-cpvh, CGA-3f79-mfh7-9mcx, CGA-3mp3-4crw-jr79, CGA-46w2-42m2-m49p, CGA-7qf9-9fx3-cq8x, CGA-c248-mmp9-qw7w, CGA-c3pp-5jx4-8fw5, CGA-crw7-5qjx-4rwf, CGA-gv57-c872-jwg5, CGA-hffj-24cf-crhv, CGA-hhrf-mxmj-f5p4, CGA-jqwq-m2f9-vcr4, CGA-m395-37cr-g2p7, CGA-pp6g-8qg5-j8q8, CGA-rj53-mq6j-f8w4, CGA-rpjg-m9xh-q4pp, CGA-wgjw-p5jr-hmmf, CGA-wv5r-q7jv-2r7m, CGA-xv56-33xh-xvhm, CGA-xw5w-8h5w-9vmw, CGA-2cqm-h8wh-xg72, CGA-2cx7-8hmf-r2gg, CGA-3jj4-fmx2-wv9g, CGA-3phq-hr34-cwjh, CGA-3r74-ph7p-hqf3, CGA-5cvj-fx4x-8grc, CGA-7r2m-9jcv-3h2p, CGA-8rv6-4vq3-9vc9, CGA-cgfr-rpq8-38q3, CGA-rcvr-pcp7-9mrr, CGA-w46p-r3qj-5w98, CGA-3xg8-jh32-94g6, CGA-c4qc-m286-722f, CGA-m3h5-rrp7-fvwj, CGA-mr44-779j-3r88, CGA-q46h-h2c8-65gp, CGA-r4g5-x39f-f26g, CGA-vcfx-r6pf-x2p6, CGA-xmqw-2hqr-wq8h, CGA-33wm-8m73-qqgf, CGA-5225-5p9m-83rj, CGA-58jj-86wp-vf3x, CGA-6mp8-97rc-9gf6, CGA-7h3v-4c8m-w952, CGA-7mrw-jcrj-cjr6, CGA-87xm-qjrp-gwwv, CGA-fp6r-qpwm-v6gh, CGA-gj9w-q33x-r8j6, CGA-h8pg-j8v2-jqg5, CGA-px24-2pjh-rwgq, CGA-qc7j-rjf2-qgcx, CGA-qp9q-pfm6-pf85, CGA-v7fw-cf6g-gjxx, CGA-w26x-3jfj-xvcr, CGA-5fhx-82jc-r8jf, CGA-8cpg-8j4x-vggf, CGA-fhf9-fgmx-9644, CGA-fphj-xfw4-cp7c, CGA-j3wg-4v47-9q8q, CGA-jgv8-mcf3-q8mv, CGA-mmpr-rqj7-ghwg, CGA-rqcf-8gfw-xh28
- Record: https://cvemate.com/vulnerability/CVE-2026-65706 · JSON: https://cvemate.com/vulnerability/CVE-2026-65706/json

## Description

```text
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.
```

## Signals

- CVSS: 8.5 high (v4.0, CVE.org) CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- EPSS: 0.125%, percentile 2.346%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 43)

- chainguard eco-python-ffmpeg-6-minimal (Chainguard): All versions (No fix recorded)
- chainguard eco-python-ffmpeg-6-minimal-dev (Chainguard): All versions (No fix recorded)
- chainguard eco-python-ffmpeg-6-minimal-static (Chainguard): All versions (No fix recorded)
- chainguard eco-python-ffmpeg-7-minimal (Chainguard): All versions (No fix recorded)
- chainguard eco-python-ffmpeg-7-minimal-dev (Chainguard): All versions (No fix recorded)
- chainguard eco-python-ffmpeg-7-minimal-static (Chainguard): All versions (No fix recorded)
- chainguard eco-python-ffmpeg-8-minimal (Chainguard): \< 8.1.3-r0
- chainguard eco-python-ffmpeg-8-minimal-dev (Chainguard): \< 8.1.3-r0
- chainguard eco-python-ffmpeg-8-minimal-static (Chainguard): \< 8.1.3-r0
- chainguard ffmpeg-6 (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-7 (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-7.1 (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-8.0 (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-8.1 (Chainguard): \< 8.1.3-r0
- chainguard ffmpeg-fips-7.1 (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-fips-7.1-dev (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-fips-7.1-libavcodec61 (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-fips-7.1-libavdevice61 (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-fips-7.1-libavfilter10 (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-fips-7.1-libavformat61 (Chainguard): All versions (No fix recorded)

## References

- <https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23779>
- <https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/a7e38b617b32f996beaa371bbf04b39907d7a527>
- <https://www.vulncheck.com/advisories/ffmpeg-vf-swaprect-out-of-bounds-write-via-nv12-frame-processing>
- <https://ubuntu.com/security/CVE-2026-65706>
- <https://www.cve.org/CVERecord?id=CVE-2026-65706>
- <https://ubuntu.com/security/notices/USN-8716-1>
- <https://ubuntu.com/security/notices/USN-8716-2>
- <https://security-tracker.debian.org/tracker/CVE-2026-65706>
- <https://code.ffmpeg.org/FFmpeg/FFmpeg>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/65xxx/CVE-2026-65706.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-65706>

---

Data as of 2026-12-05T04:50:52.455Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
