# CVE-2024-35365: ffmpeg: This update for ffmpeg fixes the following issues:  - CVE-2025-22921: Clear array length when freeing it

CVE-2024-35365 is fixed in 15 products on 1 platform, first by ffmpeg 7:6.1.1-3ubuntu5+esm5, released January 3, 2025. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2024-35365
- Priority: High
- CVSS: 8.8 (high)
- EPSS: 0.0067
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Jan 3, 2025

## Description

This update for ffmpeg fixes the following issues:  - CVE-2025-22921: Clear array length when freeing it. (bsc#1237382) - CVE-2025-0518: Fix memory data leak when use sscanf(). (bsc#1236007) - CVE-2025-22919: Check for valid sample rate, to fix the invalid sample rate >= 0. (bsc#1237371) - CVE-2024-12361: Add check for av_packet_new_side_data() to avoid null pointer dereference if allocation fails. (bsc#1237358) - CVE-2024-36613: Adjust order of operations around block align. (bsc#1235092) - CVE-2024-35365: Fix double-free on error. (bsc#1235091) - CVE-2024-35368: Fix double-free on the AVFrame is unreferenced. (bsc#1234028) - CVE-2023-51793: Fix out of array access. (bsc#1223272). - CVE-2023-51793: Fixed a heap buffer overflow in the image_copy_plane function in libavutil/imgutils.c (bsc#1223272).

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | ffmpeg Debian 13.5 (trixie) | 7:7.0.1-3 | [DEBIAN-CVE-2024-35365](https://patchblox.com/security/data/fix/linux/debian-cve-2024-35365.md) | Jan 3, 2025 |
| Linux | ffmpeg Debian 14 | 7:7.0.1-3 | [DEBIAN-CVE-2024-35365](https://patchblox.com/security/data/fix/linux/debian-cve-2024-35365.md) | Jan 3, 2025 |
| Linux | ffmpeg Ubuntu 24.04.5 LTS (noble) | 7:6.1.1-3ubuntu5+esm5 | [ffmpeg 7:6.1.1-3ubuntu5+esm5](https://patchblox.com/security/data/fix/linux/ubuntu-noble-ffmpeg-7-6.1.1-3ubuntu5-esm5.md) | Jan 3, 2025 |
| Linux | ffmpeg opensuse-leap 15.6 | 3.4.2-150200.11.60.1 | [SUSE-SU-2025:1450-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-1450-1.md) | May 5, 2025 |
| Linux | ffmpeg sles 15.6 | 3.4.2-150200.11.60.1 | [SUSE-SU-2025:1450-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-1450-1.md) | May 5, 2025 |
| Linux | libavcodec-extra Ubuntu 24.04.5 LTS (noble) | 7:6.1.1-3ubuntu5+esm5 | [libavcodec-extra 7:6.1.1-3ubuntu5+esm5](https://patchblox.com/security/data/fix/linux/ubuntu-noble-libavcodec-extra-7-6.1.1-3ubuntu5-esm5.md) | Jan 3, 2025 |
| Linux | libavcodec-extra60 Ubuntu 24.04.5 LTS (noble) | 7:6.1.1-3ubuntu5+esm5 | [libavcodec-extra60 7:6.1.1-3ubuntu5+esm5](https://patchblox.com/security/data/fix/linux/ubuntu-noble-libavcodec-extra60-7-6.1.1-3ubuntu5-esm5.md) | Jan 3, 2025 |
| Linux | libavcodec60 Ubuntu 24.04.5 LTS (noble) | 7:6.1.1-3ubuntu5+esm5 | [libavcodec60 7:6.1.1-3ubuntu5+esm5](https://patchblox.com/security/data/fix/linux/ubuntu-noble-libavcodec60-7-6.1.1-3ubuntu5-esm5.md) | Jan 3, 2025 |
| Linux | libavdevice60 Ubuntu 24.04.5 LTS (noble) | 7:6.1.1-3ubuntu5+esm5 | [libavdevice60 7:6.1.1-3ubuntu5+esm5](https://patchblox.com/security/data/fix/linux/ubuntu-noble-libavdevice60-7-6.1.1-3ubuntu5-esm5.md) | Jan 3, 2025 |
| Linux | libavfilter-extra Ubuntu 24.04.5 LTS (noble) | 7:6.1.1-3ubuntu5+esm5 | [libavfilter-extra 7:6.1.1-3ubuntu5+esm5](https://patchblox.com/security/data/fix/linux/ubuntu-noble-libavfilter-extra-7-6.1.1-3ubuntu5-esm5.md) | Jan 3, 2025 |
| Linux | libavfilter-extra9 Ubuntu 24.04.5 LTS (noble) | 7:6.1.1-3ubuntu5+esm5 | [libavfilter-extra9 7:6.1.1-3ubuntu5+esm5](https://patchblox.com/security/data/fix/linux/ubuntu-noble-libavfilter-extra9-7-6.1.1-3ubuntu5-esm5.md) | Jan 3, 2025 |
| Linux | libavfilter9 Ubuntu 24.04.5 LTS (noble) | 7:6.1.1-3ubuntu5+esm5 | [libavfilter9 7:6.1.1-3ubuntu5+esm5](https://patchblox.com/security/data/fix/linux/ubuntu-noble-libavfilter9-7-6.1.1-3ubuntu5-esm5.md) | Jan 3, 2025 |
| Linux | libavformat-extra Ubuntu 24.04.5 LTS (noble) | 7:6.1.1-3ubuntu5+esm5 | [libavformat-extra 7:6.1.1-3ubuntu5+esm5](https://patchblox.com/security/data/fix/linux/ubuntu-noble-libavformat-extra-7-6.1.1-3ubuntu5-esm5.md) | Jan 3, 2025 |
| Linux | libavformat-extra60 Ubuntu 24.04.5 LTS (noble) | 7:6.1.1-3ubuntu5+esm5 | [libavformat-extra60 7:6.1.1-3ubuntu5+esm5](https://patchblox.com/security/data/fix/linux/ubuntu-noble-libavformat-extra60-7-6.1.1-3ubuntu5-esm5.md) | Jan 3, 2025 |
| Linux | libavformat60 Ubuntu 24.04.5 LTS (noble) | 7:6.1.1-3ubuntu5+esm5 | [libavformat60 7:6.1.1-3ubuntu5+esm5](https://patchblox.com/security/data/fix/linux/ubuntu-noble-libavformat60-7-6.1.1-3ubuntu5-esm5.md) | Jan 3, 2025 |
| Linux | libavutil58 Ubuntu 24.04.5 LTS (noble) | 7:6.1.1-3ubuntu5+esm5 | [libavutil58 7:6.1.1-3ubuntu5+esm5](https://patchblox.com/security/data/fix/linux/ubuntu-noble-libavutil58-7-6.1.1-3ubuntu5-esm5.md) | Jan 3, 2025 |
| Linux | libpostproc57 Ubuntu 24.04.5 LTS (noble) | 7:6.1.1-3ubuntu5+esm5 | [libpostproc57 7:6.1.1-3ubuntu5+esm5](https://patchblox.com/security/data/fix/linux/ubuntu-noble-libpostproc57-7-6.1.1-3ubuntu5-esm5.md) | Jan 3, 2025 |
| Linux | libswresample4 Ubuntu 24.04.5 LTS (noble) | 7:6.1.1-3ubuntu5+esm5 | [libswresample4 7:6.1.1-3ubuntu5+esm5](https://patchblox.com/security/data/fix/linux/ubuntu-noble-libswresample4-7-6.1.1-3ubuntu5-esm5.md) | Jan 3, 2025 |
| Linux | libswscale7 Ubuntu 24.04.5 LTS (noble) | 7:6.1.1-3ubuntu5+esm5 | [libswscale7 7:6.1.1-3ubuntu5+esm5](https://patchblox.com/security/data/fix/linux/ubuntu-noble-libswscale7-7-6.1.1-3ubuntu5-esm5.md) | Jan 3, 2025 |

---

Data as of 2026-11-09T01:18:40Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
