ZeroHour

CVE-2026-54241

mass

Integer overflow causes heap out-of-bounds read in libde265 HEVC decoder before 1.1.1

CVSS 3.1
7.4 high
EPSS
Published
()
Modified
AI analysis

libde265, an open-source H.265/HEVC video codec library, calculates the sample adaptive offset (SAO) input-buffer size using signed 32-bit arithmetic, which overflows when decoding a crafted HEVC stream with large frame dimensions and 16-bit luma samples. The overflow leads to an undersized heap allocation and an out-of-bounds heap read (CWE-190, CWE-122). An attacker who can supply such a stream can leak heap memory into decoded output (confidentiality impact) or crash the decoder (denial of service); the CVSS vector indicates no privilege or integrity impact. Any application, service, or distribution package embedding libde265 versions prior to 1.1.1 — including HEIF/HEVC image and video processing tools that use it as their HEVC decode backend — is affected. There is no known public proof-of-concept, no listing in CISA KEV, and no confirmed exploitation in the wild.

What to do: Upgrade libde265 to version 1.1.1 or install distribution updates containing the patched library, and rebuild or refresh any bundled/embedded copies (e.g., in libheif-based tools, media players, or transcoding services). Audit dependencies to find applications linking libde265, and until patched, avoid decoding untrusted HEVC/HEIF files with libde265-based tools — prioritize any internet-facing service that decodes user-supplied video.

Affected
libde265 project (strukturag) libde265All versions prior to 1.1.1
Estimated exposure
massplausibly >1M devices ship the library (major Linux distro packages and libheif-based HEIF/HEVC tooling), though directly internet-exposed decoders are rare — libde265 is packaged in major distributions and commonly serves as the HEVC decode backend for libheif-dependent image/media software, implying an installed base on the order of millions of systems; this is an order-of-magnitude estimate…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

libde265 is an open source implementation of the h.265 video codec. Versions prior to 1.1.1 use signed 32-bit arithmetic to calculate the sample adaptive offset input-buffer size, allowing a crafted HEVC stream with large dimensions and 16-bit luma samples to cause an integer overflow, an undersized allocation, and an out-of-bounds heap read that may expose heap data in decoded output or crash the decoder. Version 1.1.1 contains a patch.

Weakness
CWE-122, CWE-190
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H

In the news

No ingested article mentions this CVE yet.