PatchaPalooza

CVE-2026-40335: libgphoto2 has OOB read in ptp_unpack_DPV() UINT128/INT128 handling in ptp-pack.c

CVE-2026-40335 is a vulnerability in libgphoto2 has OOB read in ptp_unpack_DPV() UINT128/INT128 handling in ptp-pack.c, rated Moderate by Microsoft, with a CVSS 3.1 base score of 5.2 (Medium). An attacker can exploit it by an attacker with physical access, without any privileges and without user interaction. Microsoft has not reported exploitation in the wild. The EPSS model estimates a 0.21% probability of exploitation activity in the next 30 days, higher than 10% of all scored vulnerabilities. Microsoft released the fix on 16 November 2026, outside Patch Tuesday. It affects 1 product in 1 product family (Open Source Software).

Key facts

CVE ID
CVE-2026-40335
Severity
Medium CVSS 5.2
Microsoft severity
Moderate
Exploited in the wild
No
Publicly disclosed
No
Weakness
CWE-125
EPSS
0.21% (percentile 10%)
CISA KEV
Not listed
Released
Last updated
Patch Tuesday
April 2026 Patch Tuesday
Product families
Open Source Software

CVSS score and vector

Microsoft scores CVE-2026-40335 at 5.2 (temporal 5.2) using CVSS 3.1. Vector: CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L

MetricValue
Attack vectorPhysical
Attack complexityLow
Privileges requiredNone
User interactionNone
ScopeUnchanged
Confidentiality impactHigh
Integrity impactNone
Availability impactLow

Affected products (1)

Open Source Software

ProductSecurity updateTypeFixed buildRestart
azl4 libgphoto2 2.5.33-4.azl4 on Azure Linux 4.0Release NotesSecurity Update0:2.5.34-5.azl4

NIST NVD data

NVD status
Deferred
NVD CVSS
5.2 (MEDIUM)
NVD weakness
CWE-125
Published to NVD
NVD last modified

References

Revision history

VersionDateDescription
1.0Information published.
2.0Information published.

Sources