REDHAT-BUG-2490710: Use After Free

Published Jun 19, 2026
·
Updated

A 16-byte heap use-after-free read was found in FFmpeg's RASC video decoder (libavcodec/rasc.c), in the decodemove() function.

When processing a MOVE chunk with zlib compression enabled (compression == 1), decodezlib() decompresses data into the s->delta buffer and a GetByteContext (mc) is initialized pointing into it. During the move-processing loop, a type-0 move entry calls avfastpaddedmalloc(&s->delta, &s->deltasize, whs->bpp), which frees and reallocates the buffer when the requested size (e.g. 1600 bytes for a 20x20 32bpp move) exceeds s->deltasize (134 bytes after the initial inflate). The mc pointer is left dangling, and the next loop iteration performs 7 bytestream2getle16(&mc) calls and one bytestream2skip(&mc, 2), reading 16 bytes total from freed heap memory.

The RASC decoder is enabled by default (CONFIGRASCDECODER=yes) and is triggered automatically when demuxing AVI files with the RIFF FourCC ('R','A','S','C'). No special flags or codec selection is needed; user interaction is required to open or play the crafted file.

The proven impact is denial of service (deterministic crash on ASan/hardened-allocator builds). On standard glibc, behavior depends on heap reuse patterns.

Affected: FFmpeg (all versions containing the RASC decoder through current HEAD). The reporter verified on FFmpeg master (commit 78da965).

Fix: PR #22992 by Michael Niedermayer, applied to FFmpeg master. The fix introduces a dedicated scratch buffer (s->mvscratch) for the type-0 pixel copy so s->delta and mc are not disturbed. Patch: https://patchwork.ffmpeg.org/project/ffmpeg/patch/177766314111.63.10674887811034989327@29965ddac10e/ Mailing list: https://lists.ffmpeg.org/archives/list/ffmpeg-devel@ffmpeg.org/message/TTRIJZA7UL6KJTEDMMBGZPLLJERJ3EFX/

Reporter: Seung Min Shin (credited as Found-by in the upstream patch) PSIRT Ticket: PSIRTSUPT-11278

Affected Software

1 affected component
FFmpeg FFmpeg RASC decoder (libavcodec/rasc)

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade FFmpeg to a version that resolves this vulnerability.

    Patch PR #22992
  2. Configuration

    Build FFmpeg with CONFIG_RASC_DECODER=no to disable the RASC decoder and prevent automatic handling of RASC streams.

    FFmpeg build configuration CONFIG_RASC_DECODER = no
  3. Compensating control

    Avoid opening or playing untrusted AVI files (RIFF FourCC 'R','A','S','C'). Block or scan such files at network/perimeter controls or restrict ingestion to trusted sources until the upstream patch (PR #22992) is applied.

Event History

Jun 19, 2026
Data Sourced
via Red Hat·10:27 AM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of REDHAT-BUG-2490710?

The severity of REDHAT-BUG-2490710 is medium, rated at 4.

2

How do I fix REDHAT-BUG-2490710?

To fix REDHAT-BUG-2490710, update to the latest version of FFmpeg where the vulnerability has been patched.

3

What software is affected by REDHAT-BUG-2490710?

REDHAT-BUG-2490710 affects the FFmpeg RASC decoder, specifically in libavcodec/rasc.c.

4

What type of vulnerability is REDHAT-BUG-2490710?

REDHAT-BUG-2490710 is a use-after-free vulnerability.

5

When was REDHAT-BUG-2490710 published?

REDHAT-BUG-2490710 was published on June 19, 2026.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203