CVE Database›Document archive›CVE-2026-120452

CVE-2026-120452

libgphoto2: libgphoto2: Denial of service via oversized thumbnail processing

Loading…

Severity

Moderate

Red Hat Product Security

5.4

CVSS 3.1

Review impact separately from score.

Published · November 2, 2026

Updated · November 4, 2026

Description

A flaw was found in libgphoto2. An attacker connecting a malicious USB camera can trigger out-of-bounds read and write operations during the decompression of oversized image thumbnails. This vulnerability allows the corruption of heap memory, leading to a denial of service (DoS) or the disclosure of sensitive memory contents in preview images.

Statement

This flaw is rated as Moderate severity because successful exploitation requires physical access to attach a manipulated hardware device or an emulated USB peripheral, along with user interaction to trigger thumbnail extraction. While libgphoto2 is commonly installed on Red Hat Enterprise Linux desktop environments and media workstations to interface with digital cameras, default server deployments do not actively parse camera data unless invoked by an operator or automated media-import daemon. Although memory corruption can cause application crashes or disclose adjacent heap contents, an attacker cannot exploit this flaw remotely over a network.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

Compile binaries with buffer overflow detection flags (_FORTIFY_SOURCE=2 or higher) to terminate the process before out-of-bounds writes corrupt adjacent memory. In addition, enforce full system-level exploit mitigations—including Address Space Layout Randomization (ASLR), full RELRO with Position Independent Executables (PIE), and Control Flow Integrity (CFI)—to impede reliable memory targeting and block unauthorized code execution.

CVSS / CWE

CVSS 3.1 · 5.4
CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H

CWE-787 · Out-of-bounds Write