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.
{
"cna_assigner": "VulnCheck",
"cwe_ids": [
"CWE-674"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142496.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "1.16.0"
},
{
"fixed": "1.23.4"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"range": [
{
"fixed": "b1e4d72a492a2d7be6d1c29153660cb91e570556"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "7538a4f3f13a26a948f083610016e527f9b12fb5"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "v1.23.4",
"range": [
{
"fixed": "4e14f5942c1732ace9611b9522cc991501445463"
}
],
"source": "REFERENCES_TAG"
}
]
}