CVE-2026-40341: CWE-126: Buffer Over-read in gphoto libgphoto2
CVE-2026-40341 is a low-severity buffer over-read vulnerability in libgphoto2 versions up to and including 2. 5. 33. The flaw occurs in the ptp_unpack_EOS_FocusInfoEx function when processing input from untrusted USB devices, potentially causing the library to crash. A patch addressing this issue exists in commit c385b34af260595dfbb5f9329526be5158985987, but no official remediation level or vendor advisory details are provided. There are no known exploits in the wild or available workarounds.
AI Analysis
Technical Summary
libgphoto2, a camera access and control library, contains a buffer over-read vulnerability (CWE-126) in the ptp_unpack_EOS_FocusInfoEx function in versions up to 2.5.33. This vulnerability allows an out-of-bounds read when processing data from untrusted USB devices, which can lead to a crash of the library. The issue has been patched in commit c385b34af260595dfbb5f9329526be5158985987. No further remediation details or workarounds are documented.
Potential Impact
The vulnerability can cause a denial of service by crashing libgphoto2 when handling malicious input from untrusted USB devices. There is no indication of confidentiality or integrity impact. No known exploits exist in the wild.
Mitigation Recommendations
A patch fixing this vulnerability is available in commit c385b34af260595dfbb5f9329526be5158985987. Users should update libgphoto2 to a version beyond 2.5.33 that includes this fix. No workarounds are known. Patch status is not officially confirmed beyond the commit reference; users should verify with the vendor or official sources for updated releases.
CVE-2026-40341: CWE-126: Buffer Over-read in gphoto libgphoto2
Description
CVE-2026-40341 is a low-severity buffer over-read vulnerability in libgphoto2 versions up to and including 2. 5. 33. The flaw occurs in the ptp_unpack_EOS_FocusInfoEx function when processing input from untrusted USB devices, potentially causing the library to crash. A patch addressing this issue exists in commit c385b34af260595dfbb5f9329526be5158985987, but no official remediation level or vendor advisory details are provided. There are no known exploits in the wild or available workarounds.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
libgphoto2, a camera access and control library, contains a buffer over-read vulnerability (CWE-126) in the ptp_unpack_EOS_FocusInfoEx function in versions up to 2.5.33. This vulnerability allows an out-of-bounds read when processing data from untrusted USB devices, which can lead to a crash of the library. The issue has been patched in commit c385b34af260595dfbb5f9329526be5158985987. No further remediation details or workarounds are documented.
Potential Impact
The vulnerability can cause a denial of service by crashing libgphoto2 when handling malicious input from untrusted USB devices. There is no indication of confidentiality or integrity impact. No known exploits exist in the wild.
Mitigation Recommendations
A patch fixing this vulnerability is available in commit c385b34af260595dfbb5f9329526be5158985987. Users should update libgphoto2 to a version beyond 2.5.33 that includes this fix. No workarounds are known. Patch status is not officially confirmed beyond the commit reference; users should verify with the vendor or official sources for updated releases.
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/18/2026, 1:53:10 PM
Last updated: 4/18/2026, 4:05:01 PM
Views: 5
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.