| Name | CVE-2026-142502 |
| Description | libheif 1.16.0 before 1.23.6 contains an out-of-bounds read vulnerability in Op_Any_RGB_to_YCbCr_420_Sharp::convert_colorspace() that passes unchecked 10-bit or 12-bit RGB samples to SharpYuvConvert(). Attackers can supply a crafted HEIF file producing samples above the declared bit depth so libsharpyuv gamma table lookups read out of bounds, crashing the process or leaking memory into output pixels. |
| 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-6583-1 |
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.6-2~deb13u1 | DSA-6583-1 | ||
| libheif | source | (unstable) | 1.23.6-1 |
[bookworm] - libheif <not-affected> (Vulnerable code introduced later)
https://github.com/strukturag/libheif/security/advisories/GHSA-q7mw-2fmm-5q94
Introduced by: https://github.com/strukturag/libheif/commit/2f77cf32e7e540d01c73252d2621a9bf2e9b2ea9 (v1.16.0)
Fixed by: https://github.com/strukturag/libheif/commit/8dc32399dea3e6e9e6b4a3acf270feb80008649c (v1.23.6)