CVE-2025-29769 libvips has a potential heap-based buffer overflow when attempting to convert multiband TIFF input to HEIF output
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
- Technology
- UbuntuDebian
Description
libvips is a demand-driven, horizontally threaded image processing library. The heifsave operation could incorrectly determine the presence of an alpha channel in an input when it was not possible to determine the colour interpretation, known internally within libvips as "multiband". There aren't many ways to create a "multiband" input, but it is possible with a well-crafted TIFF image. If a "multiband" TIFF input image had 4 channels and HEIF-based output was requested, this led to libvips creating a 3 channel HEIF image without an alpha channel but then attempting to write 4 channels of data. This caused a heap buffer overflow, which could crash the process. This vulnerability is fixed in 8.16.1.
Upgrade path
8 packages: 7 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/vips(Debian 12) | < 8.14.1-3+deb12u2; = 8.14.1-3; = 8.14.1-3+deb12u1 | 8.14.1-3+deb12u2 | Fixed |
| debian/vips(Debian 13) | < 8.16.1-1 | 8.16.1-1 | Fixed |
| debian/vips(Debian 14) | < 8.16.1-1 | 8.16.1-1 | Fixed |
| libvips | < 8.16.1; = < 8.16.1 | 8.16.1 | Fixed |
| ubuntu/vips(Ubuntu 22.04) | < 8.12.1-1ubuntu0.1~esm2 | 8.12.1-1ubuntu0.1~esm2 | Fixed |
| ubuntu/vips(Ubuntu 24.04) | < 8.15.1-1.1ubuntu0.1~esm1 | 8.15.1-1.1ubuntu0.1~esm1 | Fixed |
| ubuntu/vips(Ubuntu 26.04) | < 8.18.0-1ubuntu0.1~esm1 | 8.18.0-1ubuntu0.1~esm1 | Fixed |
| debian linux | = 11.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/vips(Debian:12) | < 8.14.1-3+deb12u2 | 8.14.1-3+deb12u2 |
| debian/vips(Debian:12) | = 8.14.1-3 | No fix listed |
| debian/vips(Debian:12) | = 8.14.1-3+deb12u1 | No fix listed |
| debian/vips(Debian:13) | < 8.16.1-1 | 8.16.1-1 |
| debian/vips(Debian:14) | < 8.16.1-1 | 8.16.1-1 |
| libvips | = < 8.16.1 | No fix listed |
| ubuntu/vips(Ubuntu:22.04) | < 8.12.1-1ubuntu0.1~esm2 | 8.12.1-1ubuntu0.1~esm2 |
| ubuntu/vips(Ubuntu:24.04) | < 8.15.1-1.1ubuntu0.1~esm1 | 8.15.1-1.1ubuntu0.1~esm1 |
| ubuntu/vips(Ubuntu:26.04) | < 8.18.0-1ubuntu0.1~esm1 | 8.18.0-1ubuntu0.1~esm1 |
| libvips | < 8.16.1 | 8.16.1 |
| debian linux | = 11.0 | No fix listed |
References
- Debian Security Tracker CVE-2025-29769 vendor-advisory
- https://github.com/libvips/libvips/security/advisories/GHSA-f8r8-43hh-rghm patch vendor-advisory
- https://github.com/libvips/libvips/pull/4392 issue-tracking
- https://github.com/libvips/libvips/pull/4394 issue-tracking
- https://github.com/libvips/libvips/commit/9ab6784f693de50b00fa535b9efbbe9d2cbf71f2 patch
- https://issues.oss-fuzz.com/issues/396460413 exploit issue-tracking third-party-advisory
- lists.debian.org mailing-list third-party-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-8755-1 vendor-advisory
- www.cve.org