# CVE-2026-84448: libheif: Heap out-of-bounds read in libheif inline-mask region API (heif\_region\_item\_add\_region\_inline\_mask\_data / heif\_region\_get\_mask\_image)

- Priority: **Routine**
- Reason: Not severe (CVSS 4, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-09-18 · Modified: 2026-09-24
- Aliases: UBUNTU-CVE-2026-84448, DEBIAN-CVE-2026-84448
- Record: https://cvemate.com/vulnerability/CVE-2026-84448 · JSON: https://cvemate.com/vulnerability/CVE-2026-84448/json

## Description

```text
libheif is a HEIF and AVIF file format decoder and encoder. Prior to 1.23.2, the public heif_region_item_add_region_inline_mask_data() function in libheif/api/libheif/heif_regions.cc accepts mask_data_len without verifying that it equals the byte count required by width and height. A later heif_region_get_mask_image() call derives the read length from the region geometry, so an undersized stored buffer causes heif_region_get_inline_mask_image() to read beyond the heap allocation and copy adjacent bytes into the returned monochrome mask image. This can disclose heap data or crash an application that constructs region metadata through the writer API, while the file-parsing path is not affected because it validates the canonical mask size. This issue is fixed in version 1.23.2.
```

## Signals

- CVSS: 4 medium (v3.1, CVE.org) CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:L
- EPSS: 0.124%, percentile 2.258%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian libheif (Debian): All versions (No fix recorded) \| \< 1.23.4-1~deb13u1 \| \< 1.23.2-1
- ubuntu libheif (Ubuntu): \< 1.17.6-1ubuntu4.9 \| \< 1.21.2-3ubuntu0.6
- strukturag libheif: \< 1.23.2

## References

- <https://github.com/strukturag/libheif/security/advisories/GHSA-p58j-h3vm-3fp5>
- <https://github.com/strukturag/libheif/commit/646d85fbf5bd18fc3cdc516e915e59072de2d510>
- <https://github.com/strukturag/libheif/releases/tag/v1.23.2>
- <https://ubuntu.com/security/CVE-2026-84448>
- <https://www.cve.org/CVERecord?id=CVE-2026-84448>
- <https://ubuntu.com/security/notices/USN-8846-1>
- <https://security-tracker.debian.org/tracker/CVE-2026-84448>

---

Data as of 2026-12-05T10:25:11.146Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
