PatchaPalooza

CVE-2026-40340: libgphoto2 has OOB read in ptp_unpack_OI() in ptp-pack.c via malicious PTP ObjectInfo response

CVE-2026-40340 is a vulnerability in libgphoto2 has OOB read in ptp_unpack_OI() in ptp-pack.c via malicious PTP ObjectInfo response, rated Moderate by Microsoft, with a CVSS 3.1 base score of 6.1 (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.23% probability of exploitation activity in the next 30 days, higher than 13% 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-40340
Severity
Medium CVSS 6.1
Microsoft severity
Moderate
Exploited in the wild
No
Publicly disclosed
No
Weakness
CWE-125
EPSS
0.23% (percentile 13%)
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-40340 at 6.1 (temporal 6.1) using CVSS 3.1. Vector: CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H

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

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
6.1 (MEDIUM)
NVD weakness
CWE-125
Published to NVD
NVD last modified

References

Revision history

VersionDateDescription
1.0Information published.
2.0Information published.

Sources