CVE-2026-49337

libde265 has an unbounded memory leak via orphaned slice headers in `read_slice_NAL`

Published Jun 19, 2026 CVSS 3.1 · 4.3 Medium EPSS < 1% KEV · Not listed
Description
libde265 is an open source implementation of the h.265 video codec. Prior to version 1.0.20, a crafted sequence of H.265 NAL units causes `decoder_context::read_slice_NAL()` (`libde265/decctx.cc:481`) to attach slice headers to a finished picture object
that has no active image unit, resulting in attacker-controlled unbounded heap growth. The retained headers are never freed until the picture is released, which may not happen during continuous streaming. Version 1.0.20 patches the issue.

Analysis

AI-generated

Technical impact

The vulnerability resides in libde265, an open‑source implementation of the HEVC (H.265) video codec. A crafted sequence of H.265 NAL units causes the decoder function decoder_context::read_slice_NAL() to attach slice headers to a picture object that is missing an active image unit. These orphaned headers are never freed until the picture is released, which may never happen during continuous streaming. The result is an attacker‑controlled unbounded heap growth that can exhaust system memory and lead to denial of service.

Affected Systems

The affected product is libde265 from strukturag. All releases prior to version 1.0.20 are vulnerable, including both source and binary distributions. Version 1.0.20 and later contain a patch that corrects the memory allocation logic and prevents orphaned slice header retention.

Risk and Exploitability

The CVSS score of 4.3 indicates low‑to‑moderate severity. Because EPSS is not available and the vulnerability is not listed in the CISA KEV catalog, the likelihood of widespread exploitation appears limited at present. An attacker must be able to deliver a malicious H.265 stream to the decoder, which could occur through a misconfigured media ingestion pipeline, a video processing service, or an embedded device that accepts external video input. Once the malicious stream is fed into the decoder, the uncontrolled memory allocation will continue until system resources are exhausted, resulting in service interruption. No code execution is possible; the impact is limited to memory exhaustion and DoS.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade libde265 to version 1.0.20 or later to apply the memory‑leak fix.
  • If an upgrade is not immediately possible, isolate the decoder process in a container or dedicated VM and enforce strict memory limits (for example, by using cgroups or ulimit) so that a runaway allocation cannot exhaust the host.
  • Continuously monitor memory usage of any process that uses libde265, and configure alerts to restart or terminate the decoder when usage approaches the limit, mitigating the impact of a potential exploit.

Generated by OpenCVE AI on June 19, 2026 at 21:27 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.0.20, a crafted sequence of H.265 NAL units causes `decoder_context::read_slice_NAL()` (`libde265/decctx.cc:481`) to attach slice headers to a finished picture object that has no active image unit, resulting in attacker-controlled unbounded heap growth. The retained headers are never freed until the picture is released, which may not happen during continuous streaming. Version 1.0.20 patches the issue.
Title libde265 has an unbounded memory leak via orphaned slice headers in `read_slice_NAL`
Weaknesses CWE-770
References
Metrics cvssV3_1

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

Weaknesses
  • CWE-770

    Allocation of Resources Without Limits or Throttling

Sources

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