Bug 2519058 (CVE-2026-50142) - CVE-2026-50142 libheif: libheif: Denial of Service via unbounded heap allocation in HEIF sequence parser
Summary: CVE-2026-50142 libheif: libheif: Denial of Service via unbounded heap allocat...
Keywords:
Status: NEW
Alias: CVE-2026-50142
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2521926 2521928
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-08-18 22:09 UTC by OSIDB Bzimport
Modified: 2026-08-24 14:04 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-08-18 22:09:02 UTC
libheif is a HEIF and AVIF file format decoder and encoder. From 1.19.0 until 1.23.0, a crafted HEIF sequence accepted by heif_context_read_from_memory() with the msf1 sequence brand can cause unbounded heap allocation. In libheif/sequences/seq_boxes.cc, Box_stsz::parse() applies max_sequence_frames only to variable-size samples, so fixed-size mode accepts an attacker-controlled sample_count without a bound. In libheif/sequences/track.cc, Track::load() also adds current_sample_idx and samples_per_chunk in 32-bit arithmetic, allowing the consistency check to be bypassed by wraparound. The resulting values reach the Chunk::Chunk() allocation path, which can consume gigabytes of memory and crash or stall the process through memory exhaustion. This issue is fixed in version 1.23.0.


Note You need to log in before you can comment on or make changes to this bug.