PT-2026-42834 · Libheif · Libheif

M1-Llie

·

Published

2026-05-22

·

Updated

2026-05-28

·

CVE-2026-41071

CVSS v3.1

8.1

High

VectorAV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H
Name of the Vulnerable Software and Affected Versions libheif versions prior to 1.22.0
Description A heap-buffer-overflow (out-of-bounds read) occurs in the SampleAuxInfoReader constructor when parsing a crafted HEIF sequence file. The issue arises because the constructor iterates over the number of samples declared in the saiz box using saiz->get num samples() without validating that this count is consistent with the number of chunks in the chunks vector. Consequently, if the saiz box declares more samples than the chunks cover, the loop increments current chunk beyond the size of the chunks vector, leading to an out-of-bounds read. This is triggered during file parsing via the heif context read from file function without requiring user interaction.
Recommendations Update to version 1.22.0.

Fix

Out of bounds Read

Weakness Enumeration

Related Identifiers

CVE-2026-41071
OPENSUSE-SU-2026:10878-1

Affected Products

Libheif