CVE-2026-142502

NameCVE-2026-142502
Descriptionlibheif 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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDSA-6583-1

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
libheif (PTS)bookworm1.15.1-1+deb12u1fixed
bookworm (security)1.15.1-1+deb12u2fixed
trixie (security), trixie1.23.6-2~deb13u1fixed
forky, sid1.23.7-2fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
libheifsourcebookworm(not affected)
libheifsourcetrixie1.23.6-2~deb13u1DSA-6583-1
libheifsource(unstable)1.23.6-1

Notes

[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)

Search for package or bug name: Reporting problems