
CVE catalog
CVE-2026-41071
libheif is a HEIF and AVIF file format decoder and encoder. In versions 1.21.2 and prior, a crafted HEIF sequence file where the saiz box declares more samples than actually exist in the track's chunk
- Severity
- Medium · CVSS 6.8
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.30% · Oct 25, 2026
libheif is a HEIF and AVIF file format decoder and encoder. In versions 1.21.2 and prior, a crafted HEIF sequence file where the saiz box declares more samples than actually exist in the track's chunk table causes a heap-buffer-overflow (out-of-bounds read) in the SampleAuxInfoReader constructor. The SampleAuxInfoReader constructor iterates over saiz->get_num_samples() samples but doesn't validate that this count is consistent with the number of chunks in the chunks vector. When saiz declares more samples than the chunks cover, the loop increments current_chunk past chunks.size(), causing an out-of-bounds read on the chunks vector. The vulnerability is triggered during file parsing (heif_context_read_from_file) without any additional user interaction. Any application using libheif to open untrusted HEIF files is affected. This issue has been fixed in version 1.22.0.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | libheif | sid | 1.23.6-2 | fixed |
| Debian | libheif | forky | 1.23.6-2 | fixed |
| Debian | libheif | trixie | 1.19.8-1+deb13u1 | not affected |
| Debian | libheif | trixie-security | 1.23.6-2~deb13u1 | not affected |
| Debian | libheif | bookworm | 1.15.1-1+deb12u1 | vulnerable |
| Debian | libheif | bookworm-security | 1.15.1-1+deb12u1 | vulnerable |
| Cpe | libheif | Not reported | 1.17.6-1ubuntu4.4 | fixed |
| Cpe | heif-gdk-pixbuf | Not reported | 1.17.6-1ubuntu4.4 | fixed |
| Cpe | heif-thumbnailer | Not reported | 1.17.6-1ubuntu4.4 | fixed |
| Cpe | libheif-dev | Not reported | 1.17.6-1ubuntu4.4 | fixed |
| Cpe | libheif-examples | Not reported | 1.17.6-1ubuntu4.4 | fixed |
| Cpe | libheif-plugin-aomdec | Not reported | 1.17.6-1ubuntu4.4 | fixed |
| Cpe | libheif-plugin-aomenc | Not reported | 1.17.6-1ubuntu4.4 | fixed |
| Cpe | libheif-plugin-dav1d | Not reported | 1.17.6-1ubuntu4.4 | fixed |
| Cpe | libheif-plugin-ffmpegdec | Not reported | 1.17.6-1ubuntu4.4 | fixed |
| Cpe | libheif-plugin-j2kdec | Not reported | 1.17.6-1ubuntu4.4 | fixed |
| Cpe | libheif-plugin-j2kenc | Not reported | 1.17.6-1ubuntu4.4 | fixed |
| Cpe | libheif-plugin-jpegdec | Not reported | 1.17.6-1ubuntu4.4 | fixed |
| Cpe | libheif-plugin-jpegenc | Not reported | 1.17.6-1ubuntu4.4 | fixed |
| Cpe | libheif-plugin-libde265 | Not reported | 1.17.6-1ubuntu4.4 | fixed |
| Cpe | libheif-plugin-rav1e | Not reported | 1.17.6-1ubuntu4.4 | fixed |
| Cpe | libheif-plugin-svtenc | Not reported | 1.17.6-1ubuntu4.4 | fixed |
| Cpe | libheif-plugin-x265 | Not reported | 1.17.6-1ubuntu4.4 | fixed |
| Cpe | libheif1 | Not reported | 1.17.6-1ubuntu4.4 | fixed |
| Cpe | libheif | Not reported | Not reported | vulnerable |
| Cpe | libheif | Not reported | 1.22.0 | fixed |
| Ubuntu | libheif | 25.10 | 1.19.7-1 | vulnerable |
| Ubuntu | libheif | 25.10 | 1.19.8-1 | vulnerable |
| Ubuntu | libheif | 25.10 | 1.20.2-1 | vulnerable |
| Ubuntu | libheif | 25.10 | 1.20.2-1ubuntu0.1 | vulnerable |
| Ubuntu | libheif | 25.10 | 1.20.2-1ubuntu0.3 | vulnerable |
| Ubuntu | libheif | 25.10 | 1.20.2-1ubuntu0.4 | fixed |
| Ubuntu | libheif | 26.04 | 1.20.2-1 | vulnerable |
| Ubuntu | libheif | 26.04 | 1.20.2-2 | vulnerable |
| Ubuntu | libheif | 26.04 | 1.20.2-2build1 | vulnerable |
| Ubuntu | libheif | 26.04 | 1.20.2-2build2 | vulnerable |
| Ubuntu | libheif | 26.04 | 1.20.2-2ubuntu1 | vulnerable |
| Ubuntu | libheif | 26.04 | 1.21.2-1 | vulnerable |
| Ubuntu | libheif | 26.04 | 1.21.2-3 | vulnerable |
| Ubuntu | libheif | 26.04 | 1.21.2-3ubuntu0.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | libheif | source | sid | 1.23.1-1 | not yet assigned | Not reported | [1137524] |
| Debian | libheif | source | forky | 1.23.1-1 | not yet assigned | Not reported | [1137524] |
| Debian | libheif | source | trixie | Not affected | unimportant | Not reported | [1137524] |
| Debian | libheif | source | bookworm | (unfixed) | not yet assigned | Not reported | [1137524] |
| Cpe | libheif | cpe | Not reported | 1.17.6-1ubuntu4.4 | Not reported | Not reported | Not reported |
| Cpe | heif-gdk-pixbuf | cpe | Not reported | 1.17.6-1ubuntu4.4 | Not reported | Not reported | Not reported |
| Cpe | heif-thumbnailer | cpe | Not reported | 1.17.6-1ubuntu4.4 | Not reported | Not reported | Not reported |
| Cpe | libheif-dev | cpe | Not reported | 1.17.6-1ubuntu4.4 | Not reported | Not reported | Not reported |
| Cpe | libheif-examples | cpe | Not reported | 1.17.6-1ubuntu4.4 | Not reported | Not reported | Not reported |
| Cpe | libheif-plugin-aomdec | cpe | Not reported | 1.17.6-1ubuntu4.4 | Not reported | Not reported | Not reported |
| Cpe | libheif-plugin-aomenc | cpe | Not reported | 1.17.6-1ubuntu4.4 | Not reported | Not reported | Not reported |
| Cpe | libheif-plugin-dav1d | cpe | Not reported | 1.17.6-1ubuntu4.4 | Not reported | Not reported | Not reported |
| Cpe | libheif-plugin-ffmpegdec | cpe | Not reported | 1.17.6-1ubuntu4.4 | Not reported | Not reported | Not reported |
| Cpe | libheif-plugin-j2kdec | cpe | Not reported | 1.17.6-1ubuntu4.4 | Not reported | Not reported | Not reported |
| Cpe | libheif-plugin-j2kenc | cpe | Not reported | 1.17.6-1ubuntu4.4 | Not reported | Not reported | Not reported |
| Cpe | libheif-plugin-jpegdec | cpe | Not reported | 1.17.6-1ubuntu4.4 | Not reported | Not reported | Not reported |
| Cpe | libheif-plugin-jpegenc | cpe | Not reported | 1.17.6-1ubuntu4.4 | Not reported | Not reported | Not reported |
| Cpe | libheif-plugin-libde265 | cpe | Not reported | 1.17.6-1ubuntu4.4 | Not reported | Not reported | Not reported |
| Cpe | libheif-plugin-rav1e | cpe | Not reported | 1.17.6-1ubuntu4.4 | Not reported | Not reported | Not reported |
| Cpe | libheif-plugin-svtenc | cpe | Not reported | 1.17.6-1ubuntu4.4 | Not reported | Not reported | Not reported |
| Cpe | libheif-plugin-x265 | cpe | Not reported | 1.17.6-1ubuntu4.4 | Not reported | Not reported | Not reported |
| Cpe | libheif1 | cpe | Not reported | 1.17.6-1ubuntu4.4 | Not reported | Not reported | Not reported |
| Cpe | libheif | cpe | Not reported | 1.22.0 | Not reported | Not reported | Not reported |
| Ubuntu | libheif | deb | 25.10 | 1.20.2-1ubuntu0.4 | Not reported | UBUNTU-CVE-2026-41071 | Not reported |
| Ubuntu | libheif | deb | 26.04 | 1.21.2-3ubuntu0.1 | Not reported | UBUNTU-CVE-2026-41071 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [heif-gdk-pixbuf]Affected
Source package: [libheif]
Details (6)
1.15.1-1+deb12u1· amd64 · bookwormAffected
nvd · libheif · debian · bookworm; nvd · libheif · debian · 12
1.15.1-1+deb12u1· arm64 · bookwormAffected
nvd · libheif · debian · bookworm; nvd · libheif · debian · 12
1.19.7-1~bpo12+1· amd64 · bookworm-backportsAffected
nvd · libheif · debian · bookworm; nvd · libheif · debian · 12
1.19.7-1~bpo12+1· arm64 · bookworm-backportsAffected
nvd · libheif · debian · bookworm; nvd · libheif · debian · 12
1.15.1-1+deb12u1· amd64 · bookworm-securityAffected
nvd · libheif · debian · bookworm; nvd · libheif · debian · 12
1.15.1-1+deb12u1· arm64 · bookworm-securityAffected
nvd · libheif · debian · bookworm; nvd · libheif · debian · 12
- [heif-thumbnailer]Affected
Source package: [libheif]
Details (6)
1.15.1-1+deb12u1· amd64 · bookwormAffected
nvd · libheif · debian · bookworm; nvd · libheif · debian · 12
1.15.1-1+deb12u1· arm64 · bookwormAffected
nvd · libheif · debian · bookworm; nvd · libheif · debian · 12
1.19.7-1~bpo12+1· amd64 · bookworm-backportsAffected
nvd · libheif · debian · bookworm; nvd · libheif · debian · 12
1.19.7-1~bpo12+1· arm64 · bookworm-backportsAffected
nvd · libheif · debian · bookworm; nvd · libheif · debian · 12
1.15.1-1+deb12u1· amd64 · bookworm-securityAffected
nvd · libheif · debian · bookworm; nvd · libheif · debian · 12
1.15.1-1+deb12u1· arm64 · bookworm-securityAffected
nvd · libheif · debian · bookworm; nvd · libheif · debian · 12
- [libheif1]Affected
Source package: [libheif]
Details (6)
1.15.1-1+deb12u1· amd64 · bookwormAffected
nvd · libheif · debian · bookworm; nvd · libheif · debian · 12
1.15.1-1+deb12u1· arm64 · bookwormAffected
nvd · libheif · debian · bookworm; nvd · libheif · debian · 12
1.19.7-1~bpo12+1· amd64 · bookworm-backportsAffected
nvd · libheif · debian · bookworm; nvd · libheif · debian · 12
1.19.7-1~bpo12+1· arm64 · bookworm-backportsAffected
nvd · libheif · debian · bookworm; nvd · libheif · debian · 12
1.15.1-1+deb12u1· amd64 · bookworm-securityAffected
nvd · libheif · debian · bookworm; nvd · libheif · debian · 12
1.15.1-1+deb12u1· arm64 · bookworm-securityAffected
nvd · libheif · debian · bookworm; nvd · libheif · debian · 12
- [libheif-dev]Affected
Source package: [libheif]
Details (6)
1.15.1-1+deb12u1· amd64 · bookwormAffected
nvd · libheif · debian · bookworm; nvd · libheif · debian · 12
1.15.1-1+deb12u1· arm64 · bookwormAffected
nvd · libheif · debian · bookworm; nvd · libheif · debian · 12
1.19.7-1~bpo12+1· amd64 · bookworm-backportsAffected
nvd · libheif · debian · bookworm; nvd · libheif · debian · 12
1.19.7-1~bpo12+1· arm64 · bookworm-backportsAffected
nvd · libheif · debian · bookworm; nvd · libheif · debian · 12
1.15.1-1+deb12u1· amd64 · bookworm-securityAffected
nvd · libheif · debian · bookworm; nvd · libheif · debian · 12
1.15.1-1+deb12u1· arm64 · bookworm-securityAffected
nvd · libheif · debian · bookworm; nvd · libheif · debian · 12
- [libheif-examples]Affected
Source package: [libheif]
Details (6)
1.15.1-1+deb12u1· amd64 · bookwormAffected
nvd · libheif · debian · bookworm; nvd · libheif · debian · 12
1.15.1-1+deb12u1· arm64 · bookwormAffected
nvd · libheif · debian · bookworm; nvd · libheif · debian · 12
1.19.7-1~bpo12+1· amd64 · bookworm-backportsAffected
nvd · libheif · debian · bookworm; nvd · libheif · debian · 12
1.19.7-1~bpo12+1· arm64 · bookworm-backportsAffected
nvd · libheif · debian · bookworm; nvd · libheif · debian · 12
1.15.1-1+deb12u1· amd64 · bookworm-securityAffected
nvd · libheif · debian · bookworm; nvd · libheif · debian · 12
1.15.1-1+deb12u1· arm64 · bookworm-securityAffected
nvd · libheif · debian · bookworm; nvd · libheif · debian · 12
- [libheif-plugin-aomdec]Affected
Source package: [libheif]
Details (2)
1.19.7-1~bpo12+1· amd64 · bookworm-backportsAffected
nvd · libheif · debian · bookworm; nvd · libheif · debian · 12
1.19.7-1~bpo12+1· arm64 · bookworm-backportsAffected
nvd · libheif · debian · bookworm; nvd · libheif · debian · 12
- [libheif-plugin-aomenc]Affected
Source package: [libheif]
Details (2)
1.19.7-1~bpo12+1· amd64 · bookworm-backportsAffected
nvd · libheif · debian · bookworm; nvd · libheif · debian · 12
1.19.7-1~bpo12+1· arm64 · bookworm-backportsAffected
nvd · libheif · debian · bookworm; nvd · libheif · debian · 12
- [libheif-plugin-dav1d]Affected
Source package: [libheif]
Details (2)
1.19.7-1~bpo12+1· amd64 · bookworm-backportsAffected
nvd · libheif · debian · bookworm; nvd · libheif · debian · 12
1.19.7-1~bpo12+1· arm64 · bookworm-backportsAffected
nvd · libheif · debian · bookworm; nvd · libheif · debian · 12
- [libheif-plugin-ffmpegdec]Affected
Source package: [libheif]
Details (2)
1.19.7-1~bpo12+1· amd64 · bookworm-backportsAffected
nvd · libheif · debian · bookworm; nvd · libheif · debian · 12
1.19.7-1~bpo12+1· arm64 · bookworm-backportsAffected
nvd · libheif · debian · bookworm; nvd · libheif · debian · 12
- [libheif-plugin-j2kdec]Affected
Source package: [libheif]
Details (2)
1.19.7-1~bpo12+1· amd64 · bookworm-backportsAffected
nvd · libheif · debian · bookworm; nvd · libheif · debian · 12
1.19.7-1~bpo12+1· arm64 · bookworm-backportsAffected
nvd · libheif · debian · bookworm; nvd · libheif · debian · 12
- [libheif-plugin-j2kenc]Affected
Source package: [libheif]
Details (2)
1.19.7-1~bpo12+1· amd64 · bookworm-backportsAffected
nvd · libheif · debian · bookworm; nvd · libheif · debian · 12
1.19.7-1~bpo12+1· arm64 · bookworm-backportsAffected
nvd · libheif · debian · bookworm; nvd · libheif · debian · 12
- [libheif-plugin-jpegdec]Affected
Source package: [libheif]
Details (2)
1.19.7-1~bpo12+1· amd64 · bookworm-backportsAffected
nvd · libheif · debian · bookworm; nvd · libheif · debian · 12
1.19.7-1~bpo12+1· arm64 · bookworm-backportsAffected
nvd · libheif · debian · bookworm; nvd · libheif · debian · 12
- [libheif-plugin-jpegenc]Affected
Source package: [libheif]
Details (2)
1.19.7-1~bpo12+1· amd64 · bookworm-backportsAffected
nvd · libheif · debian · bookworm; nvd · libheif · debian · 12
1.19.7-1~bpo12+1· arm64 · bookworm-backportsAffected
nvd · libheif · debian · bookworm; nvd · libheif · debian · 12
- [libheif-plugin-libde265]Affected
Source package: [libheif]
Details (2)
1.19.7-1~bpo12+1· amd64 · bookworm-backportsAffected
nvd · libheif · debian · bookworm; nvd · libheif · debian · 12
1.19.7-1~bpo12+1· arm64 · bookworm-backportsAffected
nvd · libheif · debian · bookworm; nvd · libheif · debian · 12
- [libheif-plugin-rav1e]Affected
Source package: [libheif]
Details (2)
1.19.7-1~bpo12+1· amd64 · bookworm-backportsAffected
nvd · libheif · debian · bookworm; nvd · libheif · debian · 12
1.19.7-1~bpo12+1· arm64 · bookworm-backportsAffected
nvd · libheif · debian · bookworm; nvd · libheif · debian · 12
- [libheif-plugins-all]Affected
Source package: [libheif]
Details (2)
1.19.7-1~bpo12+1· amd64 · bookworm-backportsAffected
nvd · libheif · debian · bookworm; nvd · libheif · debian · 12
1.19.7-1~bpo12+1· arm64 · bookworm-backportsAffected
nvd · libheif · debian · bookworm; nvd · libheif · debian · 12
- [libheif-plugin-svtenc]Affected
Source package: [libheif]
Details (2)
1.19.7-1~bpo12+1· amd64 · bookworm-backportsAffected
nvd · libheif · debian · bookworm; nvd · libheif · debian · 12
1.19.7-1~bpo12+1· arm64 · bookworm-backportsAffected
nvd · libheif · debian · bookworm; nvd · libheif · debian · 12
- [libheif-plugin-x265]Affected
Source package: [libheif]
Details (2)
1.19.7-1~bpo12+1· amd64 · bookworm-backportsAffected
nvd · libheif · debian · bookworm; nvd · libheif · debian · 12
1.19.7-1~bpo12+1· arm64 · bookworm-backportsAffected
nvd · libheif · debian · bookworm; nvd · libheif · debian · 12
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2026_10878-1.json]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-41071]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-41071]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2026-41071]
- [https://security-tracker.debian.org/tracker/CVE-2026-41071]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-41071.json]
- [https://ubuntu.com/security/notices/USN-8454-1]
[Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX] · [Ubuntu Security Notices (USN)]