Advisory

UBUNTU-CVE-2026-32738

Also known as: CVE-2026-32738

Summary

The record has no summary.

Details

libheif is a HEIF and AVIF file format decoder and encoder. In versions 1.21.2 and below, a crafted 792-byte HEIF sequence file with samples_per_chunk=0 in the stsc box causes an unsigned integer underflow in the Chunk constructor (m_last_sample = 0 + 0 - 1 = UINT32_MAX), mapping all samples to an empty chunk and resulting in a denial of service. When any sample is accessed, the library reads from index 0 of an empty std::vector, causing a guaranteed SEGV (null-page read). The file parses successfully without producing an error; the crash occurs on the first frame access. This issue has been fixed in version 1.22.0.

Severity

Medium Basis: CVSS v3 score 6.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Dates

Published
2026-05-19 19:16 UTC
Modified
2026-06-18 22:00 UTC

Affected packages and fixes

libheif

Debian packages (deb) · Ubuntu 25.10

Affected

  • introduced 0, fixed 1.20.2-1ubuntu0.4 (ecosystem)

Fixed versions

1.20.2-1ubuntu0.4

Fix

  • Fixed version 1.20.2-1ubuntu0.4
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

libheif

Debian packages (deb) · Ubuntu 26.04

Affected

  • introduced 0, fixed 1.21.2-3ubuntu0.1 (ecosystem)

Fixed versions

1.21.2-3ubuntu0.1

Fix

  • Fixed version 1.21.2-3ubuntu0.1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences