Bug#1140479: libheif: CVE-2026-49271

Salvatore Bonaccorso <[email protected]>
Newsgroups gmane.linux.debian.devel.multimedia
Message-ID <178204246563.53428.14487906292013358883.reportbug__474.047246255793$1782042569$gmane$org@eldamar.lan>
Source: libheif
Version: 1.21.2-4
Severity: important
Tags: security upstream
X-Debbugs-Cc: [email protected], Debian Security Team <[email protected]>

Hi,

The following vulnerability was published for libheif.

CVE-2026-49271[0]:
| libheif is a HEIF and AVIF file format decoder and encoder. Prior to
| version 1.22.1, the uncompressed HEIF decoder validates explicit
| icef compressed-unit offsets using unit_offset + unit_size. Because
| the addition can wrap, a crafted HEIF file can pass the range check
| and then construct a vector from iterators outside the compressed
| item buffer, producing an out-of-bounds heap read and crash. Version
| 1.22.1 patches the issue.


If you fix the vulnerability please also make sure to include the
CVE (Common Vulnerabilities & Exposures) id in your changelog entry.

For further information see:

[0] https://security-tracker.debian.org/tracker/CVE-2026-49271
    https://www.cve.org/CVERecord?id=CVE-2026-49271
[1] https://github.com/strukturag/libheif/security/advisories/GHSA-r7qj-cg5r-r6vf

Please adjust the affected versions in the BTS as needed.

Regards,
Salvatore
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.