CVE-2026-54241
Linux Debian Análise e mitigação de vulnerabilidades

Visão geral

CVE-2026-54241 is a heap-based buffer overflow vulnerability in the libde265 HEVC decoder library, caused by a signed integer overflow in the SAO (Sample Adaptive Offset) sequential filter code path. It affects all versions of libde265 up to and including 1.0.18, as well as the master HEAD at the time of disclosure. The vulnerability was published on June 3, 2026 by researcher TristanInSec via a GitHub Security Advisory, with a CVSS v3.1 base score of 7.4 (High) (GitHub Advisory).

Detalhes técnicos

The root cause is a signed 32-bit integer overflow (CWE-190) in apply_sample_adaptive_offset_sequential() within libde265/sao.cc (line 335), where the expression img->get_image_stride(0) * img->get_height(0) * img->get_bytes_per_pixel(0) is computed as a signed int. For large HEVC frame dimensions (e.g., 46341×46341 at 16-bit depth), this multiplication overflows INT32_MAX and wraps to a small positive value, causing new uint8_t[lumaImageSize] to allocate an undersized buffer (CWE-122). The SAO filter then reads from inputCopy using the full, non-overflowed stride, resulting in a heap out-of-bounds read of up to approximately 4.3 GB past a ~625 KB allocation. A crafted HEVC bitstream with pic_width = 46341, pic_height = 46341, bit_depth_luma_minus8 = 8, and sample_adaptive_offset_enabled_flag = 1 triggers the flaw — all values pass existing SPS validation. The fix is to widen the computation to size_t (GitHub Advisory).

Impacto

Successful exploitation results in a heap out-of-bounds read of up to ~4.3 GB, with heap data read as pixel values and written to decoded output, leading to high confidentiality impact (sensitive heap memory disclosure) and high availability impact (potential crash or instability). Any application that uses libde265 for HEVC decoding is affected, including libheif (used by GNOME image viewers), VLC, and GStreamer. This vulnerability is independent of the previously fixed allocation overflow in GHSA-vv8h-932h-7r86, which widened a different code path to 64-bit (GitHub Advisory).

Exploração

The vulnerability requires network delivery of a crafted HEVC bitstream and high attack complexity (e.g., the target must process the malicious file), but requires no privileges and no user interaction beyond normal media processing. No public exploit code or in-the-wild exploitation has been reported as of the time of this report. The CVE status remains "Reserved" in the NVD, and no CISA KEV listing has been identified. Community discussion has been detected (e.g., FreeBSD Ports and Debian OSV entries), but no threat actor attribution or weaponized exploit kits are known (GitHub Advisory, OSV Debian).

Etapas de exploração

  1. Craft malicious HEVC bitstream: Create a crafted HEVC file with SPS parameters pic_width = 46341, pic_height = 46341, bit_depth_luma_minus8 = 8 (16-bit depth), and sample_adaptive_offset_enabled_flag = 1. These values pass existing SPS validation in libde265.
  2. Deliver the payload: Distribute the crafted HEVC file via a web page, email attachment, shared media file, or any channel that causes a vulnerable application (e.g., VLC, a GNOME image viewer using libheif, or a GStreamer pipeline) to decode the file.
  3. Trigger integer overflow: When the target application decodes the file, apply_sample_adaptive_offset_sequential() computes the luma image size using signed 32-bit arithmetic, causing an integer overflow that wraps to a small positive value.
  4. Undersized allocation: new uint8_t[lumaImageSize] allocates a buffer of only ~625 KB instead of the required size.
  5. Heap OOB read: The SAO filter reads from inputCopy using the full (non-overflowed) stride, reading up to ~4.3 GB past the allocated buffer, exposing heap memory contents as decoded pixel output or causing a crash (GitHub Advisory).

Indicadores de compromisso

  • File System: Presence of HEVC/H.265 media files with unusually large declared frame dimensions (e.g., 46341×46341) in user download directories, temp folders, or media caches.
  • Process: Crashes or abnormal termination of media-processing applications (VLC, GNOME image viewers, GStreamer pipelines) when opening specific HEVC files; core dump files generated by these processes.
  • Logs: Application error logs showing memory allocation failures or segmentation faults in libde265 or libheif components; stack traces referencing apply_sample_adaptive_offset_sequential() in sao.cc.
  • Network: Unexpected inbound delivery of .hevc, .h265, or container files (.mp4, .mkv, .heif) from untrusted sources to systems running vulnerable media software.

Mitigação e soluções alternativas

The vendor (strukturag) has released libde265 version 1.1.1 as the patched release, which widens the lumaImageSize computation from int to size_t in sao.cc. Users and Linux distribution maintainers should upgrade to version 1.1.1 or later immediately. As a workaround where patching is not immediately possible, restrict processing of untrusted HEVC media files and consider disabling SAO-enabled HEVC decoding in affected applications. Monitor downstream packages (libheif, VLC, GStreamer) for updated builds incorporating the fix (GitHub Advisory, OSV Debian).

Reações da comunidade

The vulnerability was reported by researcher TristanInSec and published via the strukturag GitHub Security Advisory program. Community activity has been observed on FreeBSD Ports (freshports.org) and Debian's OSV tracker, indicating downstream Linux distributions are tracking the issue for package updates. No major vendor statements beyond the upstream advisory or significant media coverage have been identified at this time (GitHub Advisory, OSV Debian).

Recursos adicionais

Status correto da distribuição Linux

Disponibilidade de correção em distribuições Linux principais e suas versões.

Debian

Fixo

bookworm

libde265

Afetados

sid

libde265: 1.1.1-1

Fixo

trixie

libde265: 1.0.15-1+deb13u1

Fixo

Ubuntu

Fixo

bionic (esm-apps)

libde265: 1.0.2-2ubuntu0.18.04.1~esm6

Fixo

devel

libde265

Desconhecido

focal (esm-apps)

libde265: 1.0.4-1ubuntu0.4+esm2

Fixo

jammy

libde265

Afetados

jammy (esm-apps)

libde265: 1.0.8-1ubuntu0.3+esm2

Fixo

noble

libde265: 1.0.15-1ubuntu0.1

Fixo

resolute

libde265

Afetados

resolute (esm-apps)

libde265: 1.0.16-1ubuntu0.1~esm1

Fixo

Alpine

Fixo

edge

libde265: 1.1.1-r0

Fixo

OrigemEste relatório foi gerado usando IA

Relacionado Linux Debian Vulnerabilidades:

CVE ID

Gravidade

Pontuação

Tecnologias

Nome do componente

Exploração do CISA KEV

Tem correção

Data de publicação

CVE-2026-72710CRITICAL9.3
  • Linux Debian logoLinux Debian
  • spip
NãoSimSep 11, 2026
CVE-2026-54241HIGH7.4
  • Linux Debian logoLinux Debian
  • libde265
NãoSimSep 11, 2026
CVE-2026-54240HIGH7.4
  • Linux Debian logoLinux Debian
  • libde265-debugsource
NãoSimSep 11, 2026
CVE-2026-78807HIGH7.1
  • Linux Debian logoLinux Debian
  • wpa
NãoNãoSep 11, 2026
CVE-2026-89329MEDIUM6.2
  • Linux Debian logoLinux Debian
  • device-mapper-multipath-libs
NãoNãoSep 11, 2026

Avaliação de vulnerabilidade gratuita

Compare sua postura de segurança na nuvem

Avalie suas práticas de segurança na nuvem em 9 domínios de segurança para comparar seu nível de risco e identificar lacunas em suas defesas.

Solicitar avaliação

Marque uma demonstração personalizada

Pronto para ver a Wiz em ação?

"A melhor experiência do usuário que eu já vi, fornece visibilidade total para cargas de trabalho na nuvem."
David EstlickCISO
"A Wiz fornece um único painel de vidro para ver o que está acontecendo em nossos ambientes de nuvem."
Adam FletcherDiretor de Segurança
"Sabemos que se a Wiz identifica algo como crítico, na verdade é."
Greg PoniatowskiChefe de Gerenciamento de Ameaças e Vulnerabilidades