Skip to content

CVE-2025-29769 libvips has a potential heap-based buffer overflow when attempting to convert multiband TIFF input to HEIF output

HighCVSS 8.5 EPSS 0.29%
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.

PackageAffectedFixed inStatus
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

ProductAffected versionsFixed 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