Out-of-bounds read in libheif - #VU153983

 

Out-of-bounds read in libheif - #VU153983

Published: October 8, 2026


Vulnerability identifier: #VU153983
CSH Severity: Medium
CVSS v4: 6.8 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: N/A
CWE-ID: CWE-125
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to cause a denial of service and potentially disclose limited process memory.

n

The vulnerability exists due to an out-of-bounds read in libsharpyuv gamma table lookups invoked by libheif's sharp-yuv color conversion operator when converting 10-bit or 12-bit RGB images to YCbCr 4:2:0 without validating sample values against the declared bit depth. A remote attacker can trick a victim into processing a crafted image containing out-of-range samples to cause a denial of service and potentially disclose limited process memory.

n

Only builds with libsharpyuv support enabled through WITH_LIBSHARPYUV are affected. Crafted files can reach the vulnerable conversion through the mixed-interleave unci decoder or the OpenJPEG decoder plugin for JPEG 2000 images with signed components when matrix_coefficients is 0 and full_range_flag is 1.


Affected software

libheif

Remediation

Install security update from vendor's website.

libheif - update to 1.23.6

External References

Related Security Bulletins