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.
{
"cna_assigner": "VulnCheck",
"cwe_ids": [
"CWE-129"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142502.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "1.16.0"
},
{
"fixed": "1.23.6"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"range": [
{
"fixed": "8dc32399dea3e6e9e6b4a3acf270feb80008649c"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "v1.23.6",
"range": [
{
"fixed": "f81f28ac014b1c28dee483ac45b72c6b05bc421a"
}
],
"source": "REFERENCES_TAG"
}
]
}