CVE-2025-59728 Heap-buffer-overflow write in FFmpeg MDASH resolve_content_path
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
- Technology
- Ubuntu
Description
When calculating the content path in handling of MPEG-DASH manifests, there's an out-of-bounds NUL-byte write one byte past the end of the buffer.When we call xmlNodeGetContent below [0], it returns a buffer precisely allocated to match the string length, using strdup internally. If this buffer is not an empty string, it is assigned to root_url at [1].If the last (non-NUL) byte in this buffer is not '/' then we append '/' in-place at [2]. This will write two bytes into the buffer, starting at the last valid byte in the buffer, writing the NUL byte beyond the end of the allocated buffer.
We recommend upgrading to version 8.0 or beyond.
Upgrade path
5 packages: 5 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| alpine/ffmpeg(Alpine v3.23) | < 8.0-r0 | 8.0-r0 | Fixed |
| alpine/ffmpeg(Alpine v3.24) | < 8.0-r0 | 8.0-r0 | Fixed |
| ffmpeg MPEG-DASH | >= 7.1.1, < 8.0; >= a218cafe4d3be005ab0c61130f90db4d21afb5db, < 8.0 | 8.0 | Fixed |
| ubuntu/ffmpeg(Ubuntu 22.04) | < 7:4.4.2-0ubuntu0.22.04.1+esm11 | 7:4.4.2-0ubuntu0.22.04.1+esm11 | Fixed |
| ubuntu/ffmpeg(Ubuntu 24.04) | < 7:6.1.1-3ubuntu5+esm7 | 7:6.1.1-3ubuntu5+esm7 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| ffmpeg MPEG-DASH | >= 7.1.1, < 8.0 | 8.0 |
| ffmpeg MPEG-DASH | >= a218cafe4d3be005ab0c61130f90db4d21afb5db, < 8.0 | 8.0 |
| ubuntu/ffmpeg(Ubuntu:22.04) | < 7:4.4.2-0ubuntu0.22.04.1+esm11 | 7:4.4.2-0ubuntu0.22.04.1+esm11 |
| alpine/ffmpeg(Alpine:v3.23) | < 8.0-r0 | 8.0-r0 |
| alpine/ffmpeg(Alpine:v3.24) | < 8.0-r0 | 8.0-r0 |
| ubuntu/ffmpeg(Ubuntu:24.04) | < 7:6.1.1-3ubuntu5+esm7 | 7:6.1.1-3ubuntu5+esm7 |
References
- issuetracker.google.com
- Ubuntu CVE tracker vendor-advisory
- USN-7982-1 vendor-advisory
- www.cve.org
- security.alpinelinux.org vendor-advisory