CVE-2026-49346

libde265 has a heap buffer overflow in de265_image_get_buffer via SPS dimension integer overflow

Published Jun 19, 2026 CVSS 3.1 · 7.1 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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

Source ID Title
Debian DLA Debian DLA DLA-4789-1 libde265 security update
Debian DSA Debian DSA DSA-6413-1 libde265 security update
Ubuntu USN Ubuntu USN USN-8573-1 libde265 vulnerabilities
History
Type Values Removed Values Added
First Time appeared Struktur
Struktur libde265
Vendors & Products Struktur
Struktur libde265
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

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'}

Weaknesses
  • CWE-190

    Integer Overflow or Wraparound

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jun 22, 2026, 2:05 PM
Reserved
May 29, 2026, 2:35 PM
Status
Analyzed
Published
Jun 19, 2026, 9:17 PM
Modified
Oct 25, 2026, 11:10 PM