CVE-2024-35368
NoneCVSS
—
EPSS
0.7%
Published
Nov 29, 2024
CISA due date
—
Cloudanix analysis
A bug in FFmpeg's handling of certain video files on Rockchip devices could let attackers crash programs or run harmful code when those files are opened.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Moderate
- Impact
- Full Compromise
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Double free in rkmpp_retrieve_frame allows attacker-controlled memory corruption in the Rockchip MPP decoder path.
Why it matters to the business
Applications using FFmpeg for video decoding on Rockchip platforms face risk of crashes or remote code execution, potentially disrupting media pipelines and increasing exposure for systems that ingest untrusted video.
How an attack unfolds
An attacker supplies a specially crafted media file that exercises the rkmpp decoder; when FFmpeg processes the file the double-free occurs, enabling memory manipulation that can lead to arbitrary code execution.
How to fix it
Upgrade FFmpeg to commit 4513300989502090c4fd6560544dce399a8cd53c or later; rebuild with the corrected libavcodec/rkmppdec.c; consider disabling the rkmpp decoder at compile or runtime if hardware acceleration is not required.
How to confirm the fix worked
Confirm the presence of the fix commit in the source tree; run regression tests with known-triggering media files; verify that rkmpp_retrieve_frame no longer performs duplicate frees under AddressSanitizer or Valgrind.
Typical attack path
- Craft malicious media file targeting rkmpp decoder
- Deliver file to target application or service using FFmpeg
- Trigger decoding via rkmpp_retrieve_frame
- Exploit resulting double-free for memory corruption or code execution
How to detect it
Search application and system logs for FFmpeg segmentation faults or abort signals during media decoding; inspect core dumps for double-free patterns in rkmppdec.c frames; correlate with inbound untrusted media files.
What your security team should do
- Prioritize upgrade of all FFmpeg installations that enable the rkmpp decoder
- Inventory and restrict use of Rockchip hardware-accelerated decoding paths
- Add FFmpeg version checks to build and deployment pipelines
- Monitor for new exploit code targeting this double-free
The record
FFmpeg n7.0 is affected by a Double Free via the rkmpp_retrieve_frame function within libavcodec/rkmppdec.c.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | ffmpeg | 0 | No fix |
| Debian:11 | ffmpeg | 0 | 7:4.3.8-0+deb11u2 |
| Debian:12 | ffmpeg | 0 | No fix |
| Debian:13 | ffmpeg | 0 | 7:7.1-3 |
| Debian:14 | ffmpeg | 0 | 7:7.1-3 |
| Mageia:9 | ffmpeg | 0 | 5.1.6-1.4.mga9 |
| SUSE:Enterprise Storage 7.1 | ffmpeg | 0 | 3.4.2-150200.11.60.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | ffmpeg | 0 | 3.4.2-150200.11.60.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | ffmpeg | 0 | 3.4.2-150200.11.60.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | ffmpeg-4 | 0 | 4.4.5-150400.3.46.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS | ffmpeg | 0 | 3.4.2-150200.11.60.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS | ffmpeg-4 | 0 | 4.4.5-150400.3.46.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS | ffmpeg | 0 | 3.4.2-150200.11.60.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS | ffmpeg | 0 | 3.4.2-150200.11.60.1 |
| SUSE:Linux Enterprise Module for Desktop Applications 15 SP6 | ffmpeg | 0 | 3.4.2-150200.11.60.1 |
| SUSE:Linux Enterprise Module for Package Hub 15 SP6 | ffmpeg | 0 | 3.4.2-150200.11.60.1 |
| SUSE:Linux Enterprise Module for Package Hub 15 SP6 | ffmpeg-4 | 0 | 4.4.5-150600.13.16.1 |
| SUSE:Linux Enterprise Server 15 SP3-LTSS | ffmpeg | 0 | 3.4.2-150200.11.60.1 |
| SUSE:Linux Enterprise Server 15 SP4-LTSS | ffmpeg | 0 | 3.4.2-150200.11.60.1 |
| SUSE:Linux Enterprise Server 15 SP4-LTSS | ffmpeg-4 | 0 | 4.4.5-150400.3.46.1 |
| SUSE:Linux Enterprise Server 15 SP5-LTSS | ffmpeg | 0 | 3.4.2-150200.11.60.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP3 | ffmpeg | 0 | 3.4.2-150200.11.60.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP4 | ffmpeg | 0 | 3.4.2-150200.11.60.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP4 | ffmpeg-4 | 0 | 4.4.5-150400.3.46.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP5 | ffmpeg | 0 | 3.4.2-150200.11.60.1 |
| SUSE:Linux Enterprise Workstation Extension 15 SP6 | ffmpeg | 0 | 3.4.2-150200.11.60.1 |
| SUSE:Linux Enterprise Workstation Extension 15 SP6 | ffmpeg-4 | 0 | 4.4.5-150600.13.16.1 |
| Ubuntu:20.04:LTS | ffmpeg | 0 | No fix |
| Ubuntu:22.04:LTS | ffmpeg | 0 | No fix |
| Ubuntu:24.04:LTS | ffmpeg | 0 | No fix |
| Ubuntu:24.10 | ffmpeg | 0 | No fix |
| Ubuntu:Pro:14.04:LTS | libav | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | ffmpeg | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | ffmpeg | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | ffmpeg | 0 | 7:3.4.11-0ubuntu0.1+esm10 |
| Ubuntu:Pro:20.04:LTS | ffmpeg | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | ffmpeg | 0 | 7:4.2.7-0ubuntu0.1+esm10 |
| Ubuntu:Pro:22.04:LTS | ffmpeg | 0 | 7:4.4.2-0ubuntu0.22.04.1+esm9 |
| Ubuntu:Pro:24.04:LTS | ffmpeg | 0 | 7:6.1.1-3ubuntu5+esm5 |
| openSUSE:Leap 15.6 | ffmpeg | 0 | 3.4.2-150200.11.60.1 |
| openSUSE:Leap 15.6 | ffmpeg-4 | 0 | 4.4.5-150600.13.16.1 |
| openSUSE:Tumbleweed | ffmpeg-4 | 0 | 4.4.5-5.1 |
| openSUSE:Tumbleweed | ffmpeg-6 | 0 | 6.1.2-3.1 |
| openSUSE:Tumbleweed | ffmpeg-7 | 0 | 7.1-4.1 |
Related vulnerabilities
- CVE-2025-0518 Unchecked Return Value, Out-of-bounds Read vulnerability in FFmpeg allows Read Sensitive… Also affects ffmpeg
- CVE-2023-6601 A flaw was found in FFmpeg's HLS demuxer. Also affects ffmpeg
- CVE-2023-6604 A flaw was found in FFmpeg. Also affects ffmpeg
- CVE-2023-6605 A flaw was found in FFmpeg's DASH playlist support. Also affects ffmpeg
- CVE-2024-36613 FFmpeg n6.1.1 has a vulnerability in the DXA demuxer of the libavformat library allowing… Also affects ffmpeg
- CVE-2023-6603 A flaw was found in FFmpeg's HLS playlist parsing. Also affects ffmpeg
- CVE-2023-6602 A flaw was found in FFmpeg's TTY Demuxer. Also affects ffmpeg
- CVE-2024-35366 FFmpeg n6.1.1 is Integer Overflow. Also affects ffmpeg