CVE-2024-35366
NoneCVSS
—
EPSS
0.6%
Published
Nov 29, 2024
CISA due date
—
Cloudanix analysis
A flaw in video processing software can let specially made files cause crashes or bad results when the program tries to read certain audio setup information.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Other
- Component
- Library
- Class
- Improper Input Validation
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Integer overflow in parse_options of sbgdec.c allows negative duration values to bypass bounds checks, leading to incorrect memory allocations or calculations during SBG file parsing in libavformat.
Why it matters to the business
Media processing pipelines using FFmpeg may experience crashes, corrupted output, or unexpected behavior when handling certain input files, potentially disrupting content workflows and requiring emergency updates.
How an attack unfolds
An attacker crafts a malicious SBG file with specially chosen option values that produce negative durations; when FFmpeg parses the file via the affected function, the overflow occurs without validation, potentially triggering memory corruption or denial of service.
How to fix it
Update ffmpeg to the commit 0bed22d597b78999151e3bde0768b7fe763fc2a6 or later; rebuild affected applications against the patched version and validate all SBG parsing paths.
How to confirm the fix worked
Confirm the installed FFmpeg binary reports a build containing commit 0bed22d597b78999151e3bde0768b7fe763fc2a6; test parsing of sample SBG files with negative duration values to verify no overflow occurs.
Typical attack path
- Identify target systems processing SBG files with FFmpeg
- Generate malformed SBG input containing negative duration options
- Deliver the file through supported input channels such as local files or network streams
- Trigger parsing in libavformat to induce the integer overflow
How to detect it
Monitor application logs and crash reports for segmentation faults or assertion failures during SBG file parsing; review FFmpeg process invocations involving sbgdec.c for unexpected negative values or malformed option strings.
What your security team should do
- Apply the patch to all FFmpeg deployments within 30 days
- Inventory media processing services that accept untrusted SBG or related inputs
- Add runtime checks or sandboxing around FFmpeg invocations until patched
The record
FFmpeg n6.1.1 is Integer Overflow. The vulnerability exists in the parse_options function of sbgdec.c within the libavformat module. When parsing certain options, the software does not adequately validate the input. This allows for negative duration values to be accepted without proper bounds checking.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | ffmpeg | 0 | No fix |
| Debian:12 | ffmpeg | 0 | 7:5.1.5-0+deb12u1 |
| Debian:13 | ffmpeg | 0 | 7:7.0.1-3 |
| 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:16.04:LTS | ffmpeg | 0 | 7:2.8.17-0ubuntu0.1+esm12 |
| 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 16.0 | ffmpeg-7 | 0 | 7.1.4-160000.1.1 |
| openSUSE:Tumbleweed | ffmpeg-4 | 0 | 4.4.7-2.1 |
| openSUSE:Tumbleweed | ffmpeg-7 | 0 | 7.1.4-2.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-35368 FFmpeg n7.0 is affected by a Double Free via the rkmpp_retrieve_frame function within… Also affects ffmpeg