Ffmpeg: ffmpeg: heap use-after-free read in rasc decoder decode_move()
Summary
| CVE | CVE-2026-12706 |
|---|---|
| State | PUBLISHED |
| Assigner | redhat |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-06-19 12:16:27 UTC |
| Updated | 2026-06-22 20:16:28 UTC |
| Description | A use-after-free vulnerability was found in FFmpeg's RASC video decoder. The decode_move() function initializes a read pointer into a decompressed buffer, but a subsequent reallocation of that same buffer during move-table processing leaves the pointer dangling. An attacker could exploit this by providing a specially crafted AVI file containing a malicious RASC video stream. When a user opens or plays the file, the decoder reads from freed heap memory, which could lead to a denial of service (crash). |
Risk And Classification
Primary CVSS: v3.1 6.5 MEDIUM from [email protected]
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Problem Types: CWE-416 | CWE-416 Use After Free
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Secondary | 6.5 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| 3.1 | CNA | CVSS | 6.5 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
NoneUser Interaction
RequiredScope
UnchangedConfidentiality
NoneIntegrity
NoneAvailability
HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Red Hat | Red Hat Enterprise Linux AI RHEL AI 3 | Not specified | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux AI RHEL AI 3 | Not specified | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux AI RHEL AI 3 | Not specified | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux AI RHEL AI 3 | Not specified | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux AI RHEL AI 3 | Not specified | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux AI RHEL AI 3 | Not specified | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux AI RHEL AI 3 | Not specified | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux AI RHEL AI 3 | Not specified | Not specified |
| CNA | Red Hat | Red Hat OpenShift AI RHOAI | Not specified | Not specified |
| CNA | Red Hat | Red Hat OpenShift AI RHOAI | Not specified | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| bugzilla.redhat.com/show_bug.cgi | [email protected] | bugzilla.redhat.com | |
| lists.ffmpeg.org/archives/list/[email protected]/message/TTRIJZA7UL6KJTE... | [email protected] | lists.ffmpeg.org | |
| patchwork.ffmpeg.org/project/ffmpeg/patch/177766314111.63.10674887811034989327@299... | [email protected] | patchwork.ffmpeg.org | |
| access.redhat.com/security/cve/CVE-2026-12706 | [email protected] | access.redhat.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
CNA: Upstream acknowledges Seung Min Shin as the original reporter. (en)
Additional Advisory Data
| Source | Time | Event |
|---|---|---|
| CNA | 2026-05-02T06:59:55.000Z | Reported to Red Hat. |
| CNA | 2026-05-01T00:00:00.000Z | Made public. |
Workarounds
CNA: If the RASC decoder is not needed, it can be disabled at build time with --disable-decoder=rasc. There is no runtime workaround that disables the decoder without rebuilding FFmpeg.
There are currently no legacy QID mappings associated with this CVE.