| Name | CVE-2026-142496 |
| Description | libheif 1.16.0 before 1.23.4 contains an uncontrolled recursion vulnerability in HeifFile::check_for_ref_cycle_recursion() that allows attackers to crash the process via crafted files. Attackers can supply a HEIF or AVIF file under 1 MB with a long linear chain of 'dimg' references to exhaust the stack during heif_context_read_from_file(), causing a segmentation fault. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
| References | DSA-6523-1 |
| Debian Bugs | 1148137 |
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| libheif (PTS) | bookworm | 1.15.1-1+deb12u1 | fixed |
| bookworm (security) | 1.15.1-1+deb12u2 | fixed | |
| trixie (security), trixie | 1.23.6-2~deb13u1 | fixed | |
| forky, sid | 1.23.7-2 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| libheif | source | bookworm | (not affected) | |||
| libheif | source | trixie | 1.23.4-1~deb13u1 | DSA-6523-1 | ||
| libheif | source | (unstable) | 1.23.4-1 | 1148137 |
[bookworm] - libheif <not-affected> (Vulnerable code introduced later)
https://github.com/strukturag/libheif/security/advisories/GHSA-xrp2-63fq-jm8q
Introduced by: https://github.com/strukturag/libheif/commit/1e24db049f05a53ff7bd732ccde50c41bcd7d690 (v1.16.0)
Fixed by: https://github.com/strukturag/libheif/commit/b1e4d72a492a2d7be6d1c29153660cb91e570556 (v1.23.4)
Fixed by: https://github.com/strukturag/libheif/commit/7538a4f3f13a26a948f083610016e527f9b12fb5 (v1.23.4)