CVE-2026-12706 PUBLISHED

Ffmpeg: ffmpeg: heap use-after-free read in rasc decoder decode_move()

Assigner: redhat
Reserved: 19.06.2026 Published: 19.06.2026 Updated: 19.06.2026

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).

Metrics

CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
CVSS Score: 6.5

Product Status

Vendor Red Hat
Product Red Hat Enterprise Linux AI (RHEL AI) 3
Versions Default: affected
Vendor Red Hat
Product Red Hat Enterprise Linux AI (RHEL AI) 3
Versions Default: unaffected
Vendor Red Hat
Product Red Hat Enterprise Linux AI (RHEL AI) 3
Versions Default: affected
Vendor Red Hat
Product Red Hat Enterprise Linux AI (RHEL AI) 3
Versions Default: affected
Vendor Red Hat
Product Red Hat Enterprise Linux AI (RHEL AI) 3
Versions Default: affected
Vendor Red Hat
Product Red Hat Enterprise Linux AI (RHEL AI) 3
Versions Default: affected
Vendor Red Hat
Product Red Hat Enterprise Linux AI (RHEL AI) 3
Versions Default: affected
Vendor Red Hat
Product Red Hat Enterprise Linux AI (RHEL AI) 3
Versions Default: affected
Vendor Red Hat
Product Red Hat OpenShift AI (RHOAI)
Versions Default: unaffected
Vendor Red Hat
Product Red Hat OpenShift AI (RHOAI)
Versions Default: affected

Workarounds

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.

Credits

  • Upstream acknowledges Seung Min Shin as the original reporter.

References

Problem Types

  • Use After Free CWE