Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-40341— libgphoto2 has an OOB Read in ptp_unpack_EOS_FocusInfoEx

Quick assessment

Affected
gphoto libgphoto2
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

libgphoto2是gPhoto开源的一个数码相机访问与控制库。 libgphoto2 2.5.33及之前版本存在安全漏洞,该漏洞源于ptp_unpack_EOS_FocusInfoEx函数存在越界读取,可能导致处理不受信任USB设备输入时崩溃。

CVSS 3.5 · Low EPSS 0.19% · P8

Possible ATT&CK Techniques 1 AI

T1190 · Exploit Public-Facing Application
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-40341

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
libgphoto2 has an OOB Read in ptp_unpack_EOS_FocusInfoEx
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
Source: CVE Program / CVE List V5
Vulnerability Type
缓冲区上溢读取
Source: CVE Program / CVE List V5
Vulnerability Title
libgphoto2 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
libgphoto2是gPhoto开源的一个数码相机访问与控制库。 libgphoto2 2.5.33及之前版本存在安全漏洞,该漏洞源于ptp_unpack_EOS_FocusInfoEx函数存在越界读取,可能导致处理不受信任USB设备输入时崩溃。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
gphoto libgphoto2 <= 2.5.33 -

II. Public POCs for CVE-2026-40341

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-40341

登录查看更多情报信息。

Patches & Fixes for CVE-2026-40341 (1)

Same Patch Batch · gphoto · 2026-04-17 · 8 CVEs total

CVE-2026-40340 6.1 MEDIUM libgphoto2 has OOB read in ptp_unpack_OI() in ptp-pack.c via malicious PTP ObjectInfo resp
CVE-2026-40333 6.1 MEDIUM libgphoto2 has OOB read in ptp_unpack_EOS_ImageFormat() and ptp_unpack_EOS_CustomFuncEx()
CVE-2026-40339 5.2 MEDIUM libgphoto2 has OOB read in ptp_unpack_Sony_DPD() FormFlag parsing in ptp-pack.c
CVE-2026-40338 5.2 MEDIUM libgphoto2 has OOB read in ptp_unpack_Sony_DPD() enumeration count parsing in ptp-pack.c
CVE-2026-40335 5.2 MEDIUM libgphoto2 has OOB read in ptp_unpack_DPV() UINT128/INT128 handling in ptp-pack.c
CVE-2026-40334 3.5 LOW libgphoto2 missing null termination in ptp_unpack_Canon_FE() filename buffer in ptp-pack.c
CVE-2026-40336 2.4 LOW libgphoto2 has memory leak in ptp_unpack_Sony_DPD() secondary enumeration list in ptp-pack

IV. Related Vulnerabilities

V. Comments for CVE-2026-40341

No comments yet


Leave a comment