CVE-2026-40341: CWE-126: Buffer Over-read in gphoto libgphoto2
libgphoto2 is a camera access and control library. In versions up to and including 2.5.33, an out of bound read in ptp_unpack_EOS_FocusInfoEx could be used to crash libgphoto2 when processing input from untrusted USB devices. Commit c385b34af260595dfbb5f9329526be5158985987 contains a patch. No known workarounds are available.
AI Analysis
Technical Summary
The vulnerability CVE-2026-40341 affects libgphoto2, a camera access and control library, in versions up to 2.5.33. It is caused by an out-of-bounds read in the ptp_unpack_EOS_FocusInfoEx function, which can lead to a crash of the library when processing data from untrusted USB devices. This is classified as a CWE-126 buffer over-read. A patch commit has been identified (c385b34af260595dfbb5f9329526be5158985987), but no official remediation level or vendor advisory is available. The CVSS 3.1 base score is 3.5, indicating low severity, with the attack vector being physical (local USB device), no privileges required, and no user interaction needed.
Potential Impact
Successful exploitation of this vulnerability can cause a denial of service by crashing libgphoto2 when it processes malicious input from untrusted USB devices. There is no indication of confidentiality or integrity impact. No known exploits are reported in the wild.
Mitigation Recommendations
A patch addressing this vulnerability exists in the identified commit, but no official vendor advisory or released patch is currently confirmed. Users should monitor the vendor's official channels for a formal patch release and apply it once available. No workarounds are currently known.
CVE-2026-40341: CWE-126: Buffer Over-read in gphoto libgphoto2
Description
libgphoto2 is a camera access and control library. In versions up to and including 2.5.33, an out of bound read in ptp_unpack_EOS_FocusInfoEx could be used to crash libgphoto2 when processing input from untrusted USB devices. Commit c385b34af260595dfbb5f9329526be5158985987 contains a patch. No known workarounds are available.
CVSS v3.1
Score 3.5low
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability CVE-2026-40341 affects libgphoto2, a camera access and control library, in versions up to 2.5.33. It is caused by an out-of-bounds read in the ptp_unpack_EOS_FocusInfoEx function, which can lead to a crash of the library when processing data from untrusted USB devices. This is classified as a CWE-126 buffer over-read. A patch commit has been identified (c385b34af260595dfbb5f9329526be5158985987), but no official remediation level or vendor advisory is available. The CVSS 3.1 base score is 3.5, indicating low severity, with the attack vector being physical (local USB device), no privileges required, and no user interaction needed.
Potential Impact
Successful exploitation of this vulnerability can cause a denial of service by crashing libgphoto2 when it processes malicious input from untrusted USB devices. There is no indication of confidentiality or integrity impact. No known exploits are reported in the wild.
Mitigation Recommendations
A patch addressing this vulnerability exists in the identified commit, but no official vendor advisory or released patch is currently confirmed. Users should monitor the vendor's official channels for a formal patch release and apply it once available. No workarounds are currently known.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-10T22:50:01.358Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69e389f6bdfbbecc59765178
Added to database: 4/18/2026, 1:41:10 PM
Last enriched: 4/26/2026, 2:39:52 AM
Last updated: 6/1/2026, 11:06:45 AM
Views: 136
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.