Integer Overflow or Wraparound Affecting libheif-svtenc package, versions <1.23.0-160000.1.1


Severity

Recommended
0.0
medium
0
10

Based on SUSE Linux Enterprise Server security rating.

Threat Intelligence

EPSS
0.66% (50th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-SLES1600-LIBHEIFSVTENC-17439939
  • published24 Jun 2026
  • disclosed17 Jun 2026

Introduced: 17 Jun 2026

CVE-2026-50142  (opens in a new tab)
CWE-190  (opens in a new tab)
CWE-770  (opens in a new tab)

How to fix?

Upgrade SLES:16.0.0 libheif-svtenc to version 1.23.0-160000.1.1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libheif-svtenc package and not the libheif-svtenc package as distributed by SLES. See How to fix? for SLES:16.0.0 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1