# CVE-2025-68431: libheif has Potential Heap Buffer Over-Read

- Priority: **Routine**
- Reason: Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-12-29 · Modified: 2025-12-30
- Aliases: ALPINE-CVE-2025-68431, SUSE-SU-2026:0087-1, SUSE-SU-2026:20121-1, UBUNTU-CVE-2025-68431, DEBIAN-CVE-2025-68431, SUSE-SU-2026:0377-1, openSUSE-SU-2026:10019-1, openSUSE-SU-2026:20076-1
- Record: https://cvemate.com/vulnerability/CVE-2025-68431 · JSON: https://cvemate.com/vulnerability/CVE-2025-68431/json

## Description

```text
libheif is an HEIF and AVIF file format decoder and encoder. Prior to version 1.21.0, a crafted HEIF that exercises the overlay image item path triggers a heap buffer over-read in `HeifPixelImage::overlay()`. The function computes a negative row length (likely from an unclipped overlay rectangle or invalid offsets), which then underflows when converted to `size_t` and is passed to `memcpy`, causing a very large read past the end of the source plane and a crash. Version 1.21.0 contains a patch. As a workaround, avoid decoding images using `iovl` overlay boxes.
```

## Signals

- CVSS: 7.1 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H
- EPSS: 0.458%, percentile 41.419%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- alpine libheif (Alpine Linux): \< 1.19.8-r1 \| \< 1.21.2-r0
- debian libheif (Debian): All versions (No fix recorded) \| \< 1.19.8-1+deb13u1 \| \< 1.21.2-1
- ubuntu libheif (Ubuntu): \< 1.1.0-2ubuntu0.1~esm2 \| \< 1.6.1-1ubuntu0.1~esm2 \| \< 1.12.0-2ubuntu0.1~esm2 \| \< 1.17.6-1ubuntu4.2 \| \< 1.20.2-1ubuntu0.1 \| \< 1.21.2-1
- opensuse libheif&distro=openSUSE Leap 15.6 (openSUSE): \< 1.12.0-150400.3.17.1
- opensuse libheif&distro=openSUSE Leap 16.0 (openSUSE): \< 1.19.7-160000.3.1
- opensuse libheif&distro=openSUSE Tumbleweed (openSUSE): \< 1.21.1-1.1
- suse libheif&distro=SUSE Linux Enterprise Module for Desktop Applications 15 SP7 (SUSE Linux Enterprise): \< 1.19.5-150700.3.3.1
- suse libheif&distro=SUSE Linux Enterprise Module for Package Hub 15 SP7 (SUSE Linux Enterprise): \< 1.19.5-150700.3.3.1
- suse libheif&distro=SUSE Linux Enterprise Server 16.0 (SUSE Linux Enterprise): \< 1.19.7-160000.3.1
- suse libheif&distro=SUSE Linux Enterprise Server for SAP applications 16.0 (SUSE Linux Enterprise): \< 1.19.7-160000.3.1
- struktur libheif: \< 1.21.0
- strukturag libheif: \< 1.21.0

## References

- <https://github.com/strukturag/libheif/security/advisories/GHSA-j87x-4gmq-cqfq>
- <https://github.com/strukturag/libheif/commit/b8c12a7b70f46c9516711a988483bed377b78d46>
- <https://github.com/strukturag/libheif/releases/tag/v1.21.0>
- <https://security.alpinelinux.org/vuln/CVE-2025-68431>
- <https://www.suse.com/support/update/announcement/2026/suse-su-20260087-1/>
- <https://bugzilla.suse.com/1255735>
- <https://www.suse.com/security/cve/CVE-2025-68431>
- <https://www.suse.com/support/update/announcement/2026/suse-su-202620121-1/>
- <https://ubuntu.com/security/CVE-2025-68431>
- <https://www.cve.org/CVERecord?id=CVE-2025-68431>
- <https://ubuntu.com/security/notices/USN-7952-1>
- <https://security-tracker.debian.org/tracker/CVE-2025-68431>
- <https://www.suse.com/support/update/announcement/2026/suse-su-20260377-1/>

---

Data as of 2026-12-05T10:02:13.811Z. 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
