Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-40336

published low CVSS 3.1 · 2.4

libgphoto2 has memory leak in ptp_unpack_Sony_DPD() secondary enumeration list in ptp-pack.c

Published
17 Apr 2026, 23:27:42 UTC
Updated
20 Apr 2026, 16:14:53 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
gphoto — libgphoto2<= 2.5.33 Affected Not stated GitHub_M
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Ubuntu resolute libgphoto2 Advisory build 2.5.33-1ubuntu1.1 USN-8586-1
SUSE / openSUSE openSUSE-Tumbleweed libgphoto2-6aarch64 Advisory build 2.5.34-1.1 OPENSUSE-SU-2026:10916-1
SUSE / openSUSE openSUSE-Tumbleweed libgphoto2-6ppc64le Advisory build 2.5.34-1.1 OPENSUSE-SU-2026:10916-1
SUSE / openSUSE openSUSE-Tumbleweed libgphoto2-6s390x Advisory build 2.5.34-1.1 OPENSUSE-SU-2026:10916-1
SUSE / openSUSE openSUSE-Tumbleweed libgphoto2-6x86_64 Advisory build 2.5.34-1.1 OPENSUSE-SU-2026:10916-1
SUSE / openSUSE openSUSE-Tumbleweed libgphoto2-6-32bitaarch64 Advisory build 2.5.34-1.1 OPENSUSE-SU-2026:10916-1
Show 34 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
SUSE / openSUSE openSUSE-Tumbleweed libgphoto2-6-32bitppc64le Advisory build 2.5.34-1.1 OPENSUSE-SU-2026:10916-1
SUSE / openSUSE openSUSE-Tumbleweed libgphoto2-6-32bits390x Advisory build 2.5.34-1.1 OPENSUSE-SU-2026:10916-1
SUSE / openSUSE openSUSE-Tumbleweed libgphoto2-6-32bitx86_64 Advisory build 2.5.34-1.1 OPENSUSE-SU-2026:10916-1
SUSE / openSUSE openSUSE-Tumbleweed libgphoto2-6-langaarch64 Advisory build 2.5.34-1.1 OPENSUSE-SU-2026:10916-1
SUSE / openSUSE openSUSE-Tumbleweed libgphoto2-6-langppc64le Advisory build 2.5.34-1.1 OPENSUSE-SU-2026:10916-1
SUSE / openSUSE openSUSE-Tumbleweed libgphoto2-6-langs390x Advisory build 2.5.34-1.1 OPENSUSE-SU-2026:10916-1
SUSE / openSUSE openSUSE-Tumbleweed libgphoto2-6-langx86_64 Advisory build 2.5.34-1.1 OPENSUSE-SU-2026:10916-1
SUSE / openSUSE openSUSE-Tumbleweed libgphoto2-develaarch64 Advisory build 2.5.34-1.1 OPENSUSE-SU-2026:10916-1
SUSE / openSUSE openSUSE-Tumbleweed libgphoto2-develppc64le Advisory build 2.5.34-1.1 OPENSUSE-SU-2026:10916-1
SUSE / openSUSE openSUSE-Tumbleweed libgphoto2-devels390x Advisory build 2.5.34-1.1 OPENSUSE-SU-2026:10916-1
SUSE / openSUSE openSUSE-Tumbleweed libgphoto2-develx86_64 Advisory build 2.5.34-1.1 OPENSUSE-SU-2026:10916-1
SUSE / openSUSE openSUSE-Tumbleweed libgphoto2-devel-32bitaarch64 Advisory build 2.5.34-1.1 OPENSUSE-SU-2026:10916-1
SUSE / openSUSE openSUSE-Tumbleweed libgphoto2-devel-32bitppc64le Advisory build 2.5.34-1.1 OPENSUSE-SU-2026:10916-1
SUSE / openSUSE openSUSE-Tumbleweed libgphoto2-devel-32bits390x Advisory build 2.5.34-1.1 OPENSUSE-SU-2026:10916-1
SUSE / openSUSE openSUSE-Tumbleweed libgphoto2-devel-32bitx86_64 Advisory build 2.5.34-1.1 OPENSUSE-SU-2026:10916-1
SUSE / openSUSE openSUSE-Tumbleweed libgphoto2-devel-docaarch64 Advisory build 2.5.34-1.1 OPENSUSE-SU-2026:10916-1
SUSE / openSUSE openSUSE-Tumbleweed libgphoto2-devel-docppc64le Advisory build 2.5.34-1.1 OPENSUSE-SU-2026:10916-1
SUSE / openSUSE openSUSE-Tumbleweed libgphoto2-devel-docs390x Advisory build 2.5.34-1.1 OPENSUSE-SU-2026:10916-1
SUSE / openSUSE openSUSE-Tumbleweed libgphoto2-devel-docx86_64 Advisory build 2.5.34-1.1 OPENSUSE-SU-2026:10916-1
SUSE / openSUSE openSUSE-Tumbleweed libgphoto2-docaarch64 Advisory build 2.5.34-1.1 OPENSUSE-SU-2026:10916-1
SUSE / openSUSE openSUSE-Tumbleweed libgphoto2-docppc64le Advisory build 2.5.34-1.1 OPENSUSE-SU-2026:10916-1
SUSE / openSUSE openSUSE-Tumbleweed libgphoto2-docs390x Advisory build 2.5.34-1.1 OPENSUSE-SU-2026:10916-1
SUSE / openSUSE openSUSE-Tumbleweed libgphoto2-docx86_64 Advisory build 2.5.34-1.1 OPENSUSE-SU-2026:10916-1
SUSE / openSUSE openSUSE-Tumbleweed libgphoto2_port12aarch64 Advisory build 2.5.34-1.1 OPENSUSE-SU-2026:10916-1
SUSE / openSUSE openSUSE-Tumbleweed libgphoto2_port12ppc64le Advisory build 2.5.34-1.1 OPENSUSE-SU-2026:10916-1
SUSE / openSUSE openSUSE-Tumbleweed libgphoto2_port12s390x Advisory build 2.5.34-1.1 OPENSUSE-SU-2026:10916-1
SUSE / openSUSE openSUSE-Tumbleweed libgphoto2_port12x86_64 Advisory build 2.5.34-1.1 OPENSUSE-SU-2026:10916-1
SUSE / openSUSE openSUSE-Tumbleweed libgphoto2_port12-32bitaarch64 Advisory build 2.5.34-1.1 OPENSUSE-SU-2026:10916-1
SUSE / openSUSE openSUSE-Tumbleweed libgphoto2_port12-32bitppc64le Advisory build 2.5.34-1.1 OPENSUSE-SU-2026:10916-1
SUSE / openSUSE openSUSE-Tumbleweed libgphoto2_port12-32bits390x Advisory build 2.5.34-1.1 OPENSUSE-SU-2026:10916-1
SUSE / openSUSE openSUSE-Tumbleweed libgphoto2_port12-32bitx86_64 Advisory build 2.5.34-1.1 OPENSUSE-SU-2026:10916-1
Ubuntu resolute libgphoto2-6t64 Advisory build 2.5.33-1ubuntu1.1 USN-8586-1
Ubuntu resolute libgphoto2-l10n Advisory build 2.5.33-1ubuntu1.1 USN-8586-1
Ubuntu resolute libgphoto2-port12t64 Advisory build 2.5.33-1ubuntu1.1 USN-8586-1

Description

libgphoto2 is a camera access and control library. Versions up to and including 2.5.33 have a memory leak in `ptp_unpack_Sony_DPD()` in `camlibs/ptp2/ptp-pack.c` (lines 884–885). When processing a secondary enumeration list (introduced in 2024+ Sony cameras), the function overwrites dpd->FORM.Enum.SupportedValue with a new calloc() without freeing the previous allocation from line 857. The original array and any string values it contains are leaked on every property descriptor parse. Commit 404ff02c75f3cb280196fc260a63c4d26cf1a8f6 fixes the issue.

en · GitHub_M · cna

Vendor advisories explicitly linked to this CVE.

2

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
2.4 / 10
Severity
low
Provider
GitHub_M · cna
Vector string
CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
gphoto libgphoto2 <= 2.5.33 (affected) GitHub_M · cna

Weaknesses

1
  • CWE-401 CWE-401: Missing Release of Memory after Effective Lifetime (GitHub_M · cna)

References

2

Provider assertions

2

GitHub_M · cna

libgphoto2 has memory leak in ptp_unpack_Sony_DPD() secondary enumeration list in ptp-pack.c

CISA-ADP · adp

CISA ADP Vulnrichment

Provenance

Schema
5.2
Searchable
yes
Content hash
6b8697556166a52b836c3fa3e4e7b09dd4c8f681b350159f70918dc0b1c6432a
Ingested
23 Sep 2026, 09:13:02 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected