CVE Database›Document archive›CVE-2026-40336

CVE-2026-40336

libgphoto2: libgphoto2: Memory leak in ptp_unpack_Sony_DPD() can lead to denial of service

Loading…

Severity

Moderate

Red Hat Product Security

4.3

CVSS 3.1

Review impact separately from score.

Published · April 18, 2026

Updated · July 3, 2026

Description

A flaw was found in libgphoto2, a camera access and control library. When processing a secondary enumeration list from certain Sony cameras, the ptp_unpack_Sony_DPD() function improperly handles memory allocation. This oversight causes a memory leak, which can lead to resource exhaustion and potentially result in a Denial of Service (DoS) for applications utilizing the library.

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

No mitigation is specified in collected source.

CVSS / CWE

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

CWE-772 · Missing Release of Resource after Effective Lifetime