Description
libheif 1.20.0 before 1.23.4 contains a memory leak vulnerability in Track::get_next_sample_raw_data() that allows attackers to exhaust process memory by supplying a crafted HEIF image sequence. Attackers can trigger error paths via 'saiz'/'saio' auxiliary data or TAI timestamps, or oversized 'stsz' samples, leaking sample copies or aborting the process through uncaught std::bad_alloc.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| strukturag | libheif | 1.20.0 – < 1.23.4 | 1.23.4 |
References
- GitHub Security Advisory (GHSA-4rv4-953r-p24q) vendor-advisory
- https://github.com/strukturag/libheif/commit/3d9c246a778249d0dc6581a407f83433bcad6ca6 patch
- libheif v1.23.4 Release Notes release-notes
- https://github.com/strukturag/libheif/blob/v1.23.3/libheif/sequences/track.cc#L1230-L1266 technical-description
- VulnCheck Advisory: libheif 1.20.0 before 1.23.4 Memory Leak in Raw Sequence Sample API third-party-advisory