Description
libde265 is an open source implementation of the h.265 video codec. Prior to version 1.1.0, a crafted H.265 bitstream with large SPS dimensions and 16-bit bit depth causes a signed integer overflow in `de265_image_get_buffer()` (`libde265/image.cc:128`). The overflow wraps the plane allocation size to a small value (~1 KB), but the subsequent `fill_image()` call computes the real size using `size_t`, writing ~4 GB into the undersized heap buffer. Version 1.1.0 patches the issue.
Published: 2026-06-19
Score: 7.1 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability arises when libde265 processes a high-dimension SPS element with a 16‑bit bit depth; a signed integer overflow in de265_image_get_buffer wraps the allocation size down to a few kilobytes, while a subsequent call to fill_image writes approximately 4 GB into the undersized heap buffer. This memory corruption can be triggered by a crafted H.265 bitstream. The likely attack vector is an attacker delivering a malicious file to the decoder, which is common for media players, streaming servers, or embedded systems. The resulting overflow allows an attacker to overwrite arbitrary memory, leading to denial of service or arbitrary code execution. This weakness is identified as CWE‑190: Integer Overflow or Wraparound.

Affected Systems

The defect affects the open-source libde265 implementation from strukturag. Any build of the library prior to version 1.1.0 is vulnerable; the patch was incorporated in release 1.1.0. Systems that link against these older binaries or compile the library from source without the hot‑fix are at risk.

Risk and Exploitability

The CVSS score of 7.1 indicates high severity. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog, suggesting no widespread exploitation to date. However, because the overflow can be triggered by externally supplied video content, media players, servers, or embedded devices that process H.265 streams are potential targets. If an attacker can supply a malicious stream, the overflow can overwrite heap memory, potentially granting code execution or causing a crash, depending on the host environment.

Generated by OpenCVE AI on June 19, 2026 at 21:14 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade libde265 to version 1.1.0 or newer to apply the patch.
  • If an immediate upgrade is not possible, validate the SPS dimensions and bit‑depth of incoming H.265 streams before decoding to prevent overflow.
  • Place the decoding process in a sandboxed environment with strict memory limits and enable OS hardening features such as ASLR, canaries, and executable space protection.

Generated by OpenCVE AI on June 19, 2026 at 21:14 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 19 Jun 2026 20:30:00 +0000

Type Values Removed Values Added
Description libde265 is an open source implementation of the h.265 video codec. Prior to version 1.1.0, a crafted H.265 bitstream with large SPS dimensions and 16-bit bit depth causes a signed integer overflow in `de265_image_get_buffer()` (`libde265/image.cc:128`). The overflow wraps the plane allocation size to a small value (~1 KB), but the subsequent `fill_image()` call computes the real size using `size_t`, writing ~4 GB into the undersized heap buffer. Version 1.1.0 patches the issue.
Title libde265 has a heap buffer overflow in de265_image_get_buffer via SPS dimension integer overflow
Weaknesses CWE-190
References
Metrics cvssV3_1

{'score': 7.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-06-19T20:12:14.958Z

Reserved: 2026-05-29T14:35:45.903Z

Link: CVE-2026-49346

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-19T21:15:16Z

Weaknesses
  • CWE-190

    Integer Overflow or Wraparound