CVE-2026-47714: libheif has integer overflow in inline mask size calculation that causes undersized buffer allocation
Last updated 10 July 2026
Other sources
libheif has integer overflow in inline mask size calculation that causes undersized buffer allocation
— Microsoft
libheif is a HEIF and AVIF file format decoder and encoder. In versions 1.21.2 and prior, the inline mask parsing code in libheif/region.cc contains an integer overflow. Both width and height are unsigned int (32-bit) values parsed from the HEIF file. Their product can exceed UINT32MAX, wrapping to a small value before the division by 8. This causes an undersized buffer allocation, leading to out-of-bounds memory access when the mask data is later interpreted as a width x height bitmap. Version 1.22.0 patches the issue.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/libheifto a version that resolves this vulnerability.Fixed in 1.17.6-1ubuntu4.6 - Upgrade
Upgrade
ubuntu/libheifto a version that resolves this vulnerability.Fixed in 1.20.2-1ubuntu0.6 - Upgrade
Upgrade
ubuntu/libheifto a version that resolves this vulnerability.Fixed in 1.21.2-3ubuntu0.3 - Upgrade
Upgrade
debian/libheifto a version that resolves this vulnerability.Fixed in 1.19.8-1+deb13u1 - Upgrade
Upgrade
debian/libheifto a version that resolves this vulnerability.Fixed in 1.23.1-1 - Upgrade
Upgrade
debian/libheifto a version that resolves this vulnerability.Fixed in 1.19.8-1+deb13u1Fixed in 1.23.1-1 - Upgrade
Upgrade
libheifto a version that resolves this vulnerability.Fixed in 1.22.0
Event History
Frequently Asked Questions
What is the severity of CVE-2026-47714?
The severity of CVE-2026-47714 is medium, rated at 6.1.
What type of vulnerability is CVE-2026-47714?
CVE-2026-47714 is an integer overflow vulnerability.
How do I fix CVE-2026-47714?
To fix CVE-2026-47714, update libheif to version 1.21.3 or later.
What causes CVE-2026-47714?
CVE-2026-47714 is caused by an integer overflow in the inline mask size calculation leading to undersized buffer allocation.
Which software is affected by CVE-2026-47714?
CVE-2026-47714 affects versions of libheif prior to 1.21.3.