CVE-2026-40335
libgphoto2 has OOB read in ptp_unpack_DPV() UINT128/INT128 handling in ptp-pack.c
libgphoto2 is a camera access and control library. Versions up to and including 2.5.33 have an out-of-bounds read in ptp_unpack_DPV() in camlibs/ptp2/ptp-pack.c (lines 622–629). The UINT128 and INT128 cases advance *offset += 16 without verifying that 16 bytes remain in the buffer. The entry check at line 609 only guarantees *offset < total (at least 1 byte available), leaving up to 15 bytes unvalidated. Commit 433bde9888d70aa726e32744cd751d7dbe94379a patches the issue.
Attack profile
How easy it is to exploit
- Attack vector
- Physical
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- None
- Availability
- Low
Exploit likelihood
What each source reports
CVE List Score used
5.2
libgphoto2 has OOB read in ptp_unpack_DPV() UINT128/INT128 handling in ptp-pack.c
libgphoto2 is a camera access and control library. Versions up to and including 2.5.33 have an out-of-bounds read in ptp_unpack_DPV() in camlibs/ptp2/ptp-pack.c (lines 622–629). The UINT128 and INT128 cases advance *offset += 16 without verifying that 16 bytes remain in the buffer. The entry check at line 609 only guarantees *offset < total (at least 1 byte available), leaving up to 15 bytes unvalidated. Commit 433bde9888d70aa726e32744cd751d7dbe94379a patches the issue.
- Record
CVE-2026-40335- CVSS 3.1
- 5.2 Medium
CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L - Weakness
- CWE-125
- Updated
- 2026-11-02
EUVDEUVD-2026-23586
5.2
libgphoto2 is a camera access and control library. Versions up to and including 2.5.33 have an out-of-bounds read in ptp_unpack_DPV() in camlibs/ptp2/ptp-pack.c (lines 622–629). The UINT128 and INT128 cases advance *offset += 16 without verifying that 16 bytes remain in the buffer. The entry check at line 609 only guarantees *offset < total (at least 1 byte available), leaving up to 15 bytes unvalidated. Commit 433bde9888d70aa726e32744cd751d7dbe94379a patches the issue.
- Record
EUVD-2026-23586- CVSS 3.1
- 5.2 Medium
CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L - Updated
- 2026-11-02
NVD
5.2
libgphoto2 is a camera access and control library. Versions up to and including 2.5.33 have an out-of-bounds read in ptp_unpack_DPV() in camlibs/ptp2/ptp-pack.c (lines 622–629). The UINT128 and INT128 cases advance *offset += 16 without verifying that 16 bytes remain in the buffer. The entry check at line 609 only guarantees *offset < total (at least 1 byte available), leaving up to 15 bytes unvalidated. Commit 433bde9888d70aa726e32744cd751d7dbe94379a patches the issue.
- Record
CVE-2026-40335- CVSS 3.1
- 5.2 Medium
CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L - Weakness
- CWE-125
- Updated
- 2026-11-02
OSV
5.2
libgphoto2 has OOB read in ptp_unpack_DPV() UINT128/INT128 handling in ptp-pack.c
libgphoto2 is a camera access and control library. Versions up to and including 2.5.33 have an out-of-bounds read in ptp_unpack_DPV() in camlibs/ptp2/ptp-pack.c (lines 622–629). The UINT128 and INT128 cases advance *offset += 16 without verifying that 16 bytes remain in the buffer. The entry check at line 609 only guarantees *offset < total (at least 1 byte available), leaving up to 15 bytes unvalidated. Commit 433bde9888d70aa726e32744cd751d7dbe94379a patches the issue.
- Record
CVE-2026-40335- CVSS 3.1
- 5.2 Medium
CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L - Weakness
- CWE-125
- Updated
- 2026-11-02
OSVDEBIAN-CVE-2026-40335
5.2
libgphoto2 is a camera access and control library. Versions up to and including 2.5.33 have an out-of-bounds read in ptp_unpack_DPV() in camlibs/ptp2/ptp-pack.c (lines 622–629). The UINT128 and INT128 cases advance *offset += 16 without verifying that 16 bytes remain in the buffer. The entry check at line 609 only guarantees *offset < total (at least 1 byte available), leaving up to 15 bytes unvalidated. Commit 433bde9888d70aa726e32744cd751d7dbe94379a patches the issue.
- Record
DEBIAN-CVE-2026-40335- CVSS 3.1
- 5.2 Medium
CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L - Updated
- 2026-11-02
OSVOESA-2026-2067
6.1
libgphoto2 security update
is the core of gphoto2 software. It is a portable library which gives access to literally hundreds of digital cameras.
Security Fix(es):
libgphoto2 is a camera access and control library. In versions up to and including 2.5.33, a missing null terminator exists in the ptp_unpack_Canon_FE() function in camlibs/ptp2/ptp-pack.c (line 1377). The function copies a filename into a 13-byte buffer using strncpy without explicitly null-terminating the result. If the source data is exactly 13 bytes with no null terminator, the buffer is left unterminated, leading to out-of-bounds reads in any subsequent string operation.(CVE-2026-40334)
libgphoto2 is a camera access and control library. Versions up to and including 2.5.33 contain an out-of-bounds read vulnerability in the ptp_unpack_DPV() function within camlibs/ptp2/ptp-pack.c (lines 622–629). When handling UINT128 and INT128 data types, the code advances the buffer offset by *offset += 16 without verifying that 16 bytes remain in the buffer. The entry check at line 609 only ensures *offset < total (at least 1 byte available), leaving up to 15 bytes unvalidated. This could lead to reading beyond the buffer boundary, resulting in a crash or information disclosure. The issue has been patched in commit 433bde9888d70aa726e32744cd751d7dbe94379a.(CVE-2026-40335)
libgphoto2 is an open-source library for accessing and controlling cameras. Versions up to and including 2.5.33 contain an out-of-bounds read vulnerability in the ptp_unpack_Sony_DPD() function (line 856) within the file camlibs/ptp2/ptp-pack.c, specifically in the PTP_DPFF_Enumeration case. The function reads a 2-byte enumeration count N via dtoh16o(data, *poffset) without verifying that at least 2 bytes remain in the buffer. The standard ptp_unpack_DPD() function (line 704) includes this exact check, indicating the omission in the Sony variant was an oversight. An attacker could exploit this vulnerability to read data beyond the bounds of the process memory, potentially leading to information disclosure or application crash.(CVE-2026-40338)
libgphoto2 is an open-source library for accessing and controlling cameras. Versions up to and including 2.5.33 contain an out-of-bounds read vulnerability in the ptp_unpack_Sony_DPD() function (line 842) within the file camlibs/ptp2/ptp-pack.c. The function reads the FormFlag byte via dtoh8o(data, *poffset) without performing a prior bounds check. The standard ptp_unpack_DPD() function (lines 686–687) correctly validates *offset + sizeof(uint8_t) > dpdlen before this same read, but the Sony-specific variant omits this check entirely, potentially allowing read access beyond the allocated buffer.(CVE-2026-40339)
libgphoto2 is a camera access and control library. Versions up to and including 2.5.33 contain an out-of-bounds read vulnerability in the ptp_unpack_OI() function within camlibs/ptp2/ptp-pack.c (lines 530–563). The function validates len < PTP_oi_SequenceNumber (i.e., len < 48) but subsequently accesses offsets 48–56, up to 9 bytes beyond the validated boundary, via the Samsung Galaxy 64-bit objectsize detection heuristic. An attacker can exploit this vulnerability by sending a malicious PTP ObjectInfo response, potentially leading to sensitive information disclosure or application crash.(CVE-2026-40340)
libgphoto2 is a camera access and control library. In versions up to and including 2.5.33, an out-of-bounds read vulnerability exists in the ptp_unpack_EOS_FocusInfoEx function. This vulnerability could be exploited by an attacker to crash libgphoto2 (Denial of Service) when processing input from untrusted USB devices.(CVE-2026-40341)
- Record
OESA-2026-2067- CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H - Updated
- 2026-11-02
Show 8 moreShow less
OSVOESA-2026-2068
6.1
libgphoto2 security update
is the core of gphoto2 software. It is a portable library which gives access to literally hundreds of digital cameras.
Security Fix(es):
libgphoto2 is a camera access and control library. In versions up to and including 2.5.33, a missing null terminator exists in the ptp_unpack_Canon_FE() function in camlibs/ptp2/ptp-pack.c (line 1377). The function copies a filename into a 13-byte buffer using strncpy without explicitly null-terminating the result. If the source data is exactly 13 bytes with no null terminator, the buffer is left unterminated, leading to out-of-bounds reads in any subsequent string operation.(CVE-2026-40334)
libgphoto2 is a camera access and control library. Versions up to and including 2.5.33 contain an out-of-bounds read vulnerability in the ptp_unpack_DPV() function within camlibs/ptp2/ptp-pack.c (lines 622–629). When handling UINT128 and INT128 data types, the code advances the buffer offset by *offset += 16 without verifying that 16 bytes remain in the buffer. The entry check at line 609 only ensures *offset < total (at least 1 byte available), leaving up to 15 bytes unvalidated. This could lead to reading beyond the buffer boundary, resulting in a crash or information disclosure. The issue has been patched in commit 433bde9888d70aa726e32744cd751d7dbe94379a.(CVE-2026-40335)
libgphoto2 is an open-source library for accessing and controlling cameras. Versions up to and including 2.5.33 contain an out-of-bounds read vulnerability in the ptp_unpack_Sony_DPD() function (line 856) within the file camlibs/ptp2/ptp-pack.c, specifically in the PTP_DPFF_Enumeration case. The function reads a 2-byte enumeration count N via dtoh16o(data, *poffset) without verifying that at least 2 bytes remain in the buffer. The standard ptp_unpack_DPD() function (line 704) includes this exact check, indicating the omission in the Sony variant was an oversight. An attacker could exploit this vulnerability to read data beyond the bounds of the process memory, potentially leading to information disclosure or application crash.(CVE-2026-40338)
libgphoto2 is an open-source library for accessing and controlling cameras. Versions up to and including 2.5.33 contain an out-of-bounds read vulnerability in the ptp_unpack_Sony_DPD() function (line 842) within the file camlibs/ptp2/ptp-pack.c. The function reads the FormFlag byte via dtoh8o(data, *poffset) without performing a prior bounds check. The standard ptp_unpack_DPD() function (lines 686–687) correctly validates *offset + sizeof(uint8_t) > dpdlen before this same read, but the Sony-specific variant omits this check entirely, potentially allowing read access beyond the allocated buffer.(CVE-2026-40339)
libgphoto2 is a camera access and control library. Versions up to and including 2.5.33 contain an out-of-bounds read vulnerability in the ptp_unpack_OI() function within camlibs/ptp2/ptp-pack.c (lines 530–563). The function validates len < PTP_oi_SequenceNumber (i.e., len < 48) but subsequently accesses offsets 48–56, up to 9 bytes beyond the validated boundary, via the Samsung Galaxy 64-bit objectsize detection heuristic. An attacker can exploit this vulnerability by sending a malicious PTP ObjectInfo response, potentially leading to sensitive information disclosure or application crash.(CVE-2026-40340)
libgphoto2 is a camera access and control library. In versions up to and including 2.5.33, an out-of-bounds read vulnerability exists in the ptp_unpack_EOS_FocusInfoEx function. This vulnerability could be exploited by an attacker to crash libgphoto2 (Denial of Service) when processing input from untrusted USB devices.(CVE-2026-40341)
- Record
OESA-2026-2068- CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H - Updated
- 2026-11-02
OSVOESA-2026-2069
6.1
libgphoto2 security update
is the core of gphoto2 software. It is a portable library which gives access to literally hundreds of digital cameras.
Security Fix(es):
libgphoto2 is a camera access and control library. In versions up to and including 2.5.33, a missing null terminator exists in the ptp_unpack_Canon_FE() function in camlibs/ptp2/ptp-pack.c (line 1377). The function copies a filename into a 13-byte buffer using strncpy without explicitly null-terminating the result. If the source data is exactly 13 bytes with no null terminator, the buffer is left unterminated, leading to out-of-bounds reads in any subsequent string operation.(CVE-2026-40334)
libgphoto2 is a camera access and control library. Versions up to and including 2.5.33 contain an out-of-bounds read vulnerability in the ptp_unpack_DPV() function within camlibs/ptp2/ptp-pack.c (lines 622–629). When handling UINT128 and INT128 data types, the code advances the buffer offset by *offset += 16 without verifying that 16 bytes remain in the buffer. The entry check at line 609 only ensures *offset < total (at least 1 byte available), leaving up to 15 bytes unvalidated. This could lead to reading beyond the buffer boundary, resulting in a crash or information disclosure. The issue has been patched in commit 433bde9888d70aa726e32744cd751d7dbe94379a.(CVE-2026-40335)
libgphoto2 is an open-source library for accessing and controlling cameras. Versions up to and including 2.5.33 contain an out-of-bounds read vulnerability in the ptp_unpack_Sony_DPD() function (line 856) within the file camlibs/ptp2/ptp-pack.c, specifically in the PTP_DPFF_Enumeration case. The function reads a 2-byte enumeration count N via dtoh16o(data, *poffset) without verifying that at least 2 bytes remain in the buffer. The standard ptp_unpack_DPD() function (line 704) includes this exact check, indicating the omission in the Sony variant was an oversight. An attacker could exploit this vulnerability to read data beyond the bounds of the process memory, potentially leading to information disclosure or application crash.(CVE-2026-40338)
libgphoto2 is an open-source library for accessing and controlling cameras. Versions up to and including 2.5.33 contain an out-of-bounds read vulnerability in the ptp_unpack_Sony_DPD() function (line 842) within the file camlibs/ptp2/ptp-pack.c. The function reads the FormFlag byte via dtoh8o(data, *poffset) without performing a prior bounds check. The standard ptp_unpack_DPD() function (lines 686–687) correctly validates *offset + sizeof(uint8_t) > dpdlen before this same read, but the Sony-specific variant omits this check entirely, potentially allowing read access beyond the allocated buffer.(CVE-2026-40339)
libgphoto2 is a camera access and control library. Versions up to and including 2.5.33 contain an out-of-bounds read vulnerability in the ptp_unpack_OI() function within camlibs/ptp2/ptp-pack.c (lines 530–563). The function validates len < PTP_oi_SequenceNumber (i.e., len < 48) but subsequently accesses offsets 48–56, up to 9 bytes beyond the validated boundary, via the Samsung Galaxy 64-bit objectsize detection heuristic. An attacker can exploit this vulnerability by sending a malicious PTP ObjectInfo response, potentially leading to sensitive information disclosure or application crash.(CVE-2026-40340)
libgphoto2 is a camera access and control library. In versions up to and including 2.5.33, an out-of-bounds read vulnerability exists in the ptp_unpack_EOS_FocusInfoEx function. This vulnerability could be exploited by an attacker to crash libgphoto2 (Denial of Service) when processing input from untrusted USB devices.(CVE-2026-40341)
- Record
OESA-2026-2069- CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H - Updated
- 2026-11-02
OSVOESA-2026-2070
6.1
libgphoto2 security update
is the core of gphoto2 software. It is a portable library which gives access to literally hundreds of digital cameras.
Security Fix(es):
libgphoto2 is a camera access and control library. In versions up to and including 2.5.33, a missing null terminator exists in the ptp_unpack_Canon_FE() function in camlibs/ptp2/ptp-pack.c (line 1377). The function copies a filename into a 13-byte buffer using strncpy without explicitly null-terminating the result. If the source data is exactly 13 bytes with no null terminator, the buffer is left unterminated, leading to out-of-bounds reads in any subsequent string operation.(CVE-2026-40334)
libgphoto2 is a camera access and control library. Versions up to and including 2.5.33 contain an out-of-bounds read vulnerability in the ptp_unpack_DPV() function within camlibs/ptp2/ptp-pack.c (lines 622–629). When handling UINT128 and INT128 data types, the code advances the buffer offset by *offset += 16 without verifying that 16 bytes remain in the buffer. The entry check at line 609 only ensures *offset < total (at least 1 byte available), leaving up to 15 bytes unvalidated. This could lead to reading beyond the buffer boundary, resulting in a crash or information disclosure. The issue has been patched in commit 433bde9888d70aa726e32744cd751d7dbe94379a.(CVE-2026-40335)
libgphoto2 is an open-source library for accessing and controlling cameras. Versions up to and including 2.5.33 contain an out-of-bounds read vulnerability in the ptp_unpack_Sony_DPD() function (line 856) within the file camlibs/ptp2/ptp-pack.c, specifically in the PTP_DPFF_Enumeration case. The function reads a 2-byte enumeration count N via dtoh16o(data, *poffset) without verifying that at least 2 bytes remain in the buffer. The standard ptp_unpack_DPD() function (line 704) includes this exact check, indicating the omission in the Sony variant was an oversight. An attacker could exploit this vulnerability to read data beyond the bounds of the process memory, potentially leading to information disclosure or application crash.(CVE-2026-40338)
libgphoto2 is an open-source library for accessing and controlling cameras. Versions up to and including 2.5.33 contain an out-of-bounds read vulnerability in the ptp_unpack_Sony_DPD() function (line 842) within the file camlibs/ptp2/ptp-pack.c. The function reads the FormFlag byte via dtoh8o(data, *poffset) without performing a prior bounds check. The standard ptp_unpack_DPD() function (lines 686–687) correctly validates *offset + sizeof(uint8_t) > dpdlen before this same read, but the Sony-specific variant omits this check entirely, potentially allowing read access beyond the allocated buffer.(CVE-2026-40339)
libgphoto2 is a camera access and control library. Versions up to and including 2.5.33 contain an out-of-bounds read vulnerability in the ptp_unpack_OI() function within camlibs/ptp2/ptp-pack.c (lines 530–563). The function validates len < PTP_oi_SequenceNumber (i.e., len < 48) but subsequently accesses offsets 48–56, up to 9 bytes beyond the validated boundary, via the Samsung Galaxy 64-bit objectsize detection heuristic. An attacker can exploit this vulnerability by sending a malicious PTP ObjectInfo response, potentially leading to sensitive information disclosure or application crash.(CVE-2026-40340)
libgphoto2 is a camera access and control library. In versions up to and including 2.5.33, an out-of-bounds read vulnerability exists in the ptp_unpack_EOS_FocusInfoEx function. This vulnerability could be exploited by an attacker to crash libgphoto2 (Denial of Service) when processing input from untrusted USB devices.(CVE-2026-40341)
- Record
OESA-2026-2070- CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H - Updated
- 2026-11-02
OSVOESA-2026-2071
6.1
libgphoto2 security update
is the core of gphoto2 software. It is a portable library which gives access to literally hundreds of digital cameras.
Security Fix(es):
libgphoto2 is a camera access and control library. In versions up to and including 2.5.33, a missing null terminator exists in the ptp_unpack_Canon_FE() function in camlibs/ptp2/ptp-pack.c (line 1377). The function copies a filename into a 13-byte buffer using strncpy without explicitly null-terminating the result. If the source data is exactly 13 bytes with no null terminator, the buffer is left unterminated, leading to out-of-bounds reads in any subsequent string operation.(CVE-2026-40334)
libgphoto2 is a camera access and control library. Versions up to and including 2.5.33 contain an out-of-bounds read vulnerability in the ptp_unpack_DPV() function within camlibs/ptp2/ptp-pack.c (lines 622–629). When handling UINT128 and INT128 data types, the code advances the buffer offset by *offset += 16 without verifying that 16 bytes remain in the buffer. The entry check at line 609 only ensures *offset < total (at least 1 byte available), leaving up to 15 bytes unvalidated. This could lead to reading beyond the buffer boundary, resulting in a crash or information disclosure. The issue has been patched in commit 433bde9888d70aa726e32744cd751d7dbe94379a.(CVE-2026-40335)
libgphoto2 is an open-source library for accessing and controlling cameras. Versions up to and including 2.5.33 contain an out-of-bounds read vulnerability in the ptp_unpack_Sony_DPD() function (line 856) within the file camlibs/ptp2/ptp-pack.c, specifically in the PTP_DPFF_Enumeration case. The function reads a 2-byte enumeration count N via dtoh16o(data, *poffset) without verifying that at least 2 bytes remain in the buffer. The standard ptp_unpack_DPD() function (line 704) includes this exact check, indicating the omission in the Sony variant was an oversight. An attacker could exploit this vulnerability to read data beyond the bounds of the process memory, potentially leading to information disclosure or application crash.(CVE-2026-40338)
libgphoto2 is an open-source library for accessing and controlling cameras. Versions up to and including 2.5.33 contain an out-of-bounds read vulnerability in the ptp_unpack_Sony_DPD() function (line 842) within the file camlibs/ptp2/ptp-pack.c. The function reads the FormFlag byte via dtoh8o(data, *poffset) without performing a prior bounds check. The standard ptp_unpack_DPD() function (lines 686–687) correctly validates *offset + sizeof(uint8_t) > dpdlen before this same read, but the Sony-specific variant omits this check entirely, potentially allowing read access beyond the allocated buffer.(CVE-2026-40339)
libgphoto2 is a camera access and control library. Versions up to and including 2.5.33 contain an out-of-bounds read vulnerability in the ptp_unpack_OI() function within camlibs/ptp2/ptp-pack.c (lines 530–563). The function validates len < PTP_oi_SequenceNumber (i.e., len < 48) but subsequently accesses offsets 48–56, up to 9 bytes beyond the validated boundary, via the Samsung Galaxy 64-bit objectsize detection heuristic. An attacker can exploit this vulnerability by sending a malicious PTP ObjectInfo response, potentially leading to sensitive information disclosure or application crash.(CVE-2026-40340)
libgphoto2 is a camera access and control library. In versions up to and including 2.5.33, an out-of-bounds read vulnerability exists in the ptp_unpack_EOS_FocusInfoEx function. This vulnerability could be exploited by an attacker to crash libgphoto2 (Denial of Service) when processing input from untrusted USB devices.(CVE-2026-40341)
- Record
OESA-2026-2071- CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2026-40335
5.2
libgphoto2 is a camera access and control library. Versions up to and including 2.5.33 have an out-of-bounds read in ptp_unpack_DPV() in camlibs/ptp2/ptp-pack.c (lines 622–629). The UINT128 and INT128 cases advance *offset += 16 without verifying that 16 bytes remain in the buffer. The entry check at line 609 only guarantees *offset < total (at least 1 byte available), leaving up to 15 bytes unvalidated. Commit 433bde9888d70aa726e32744cd751d7dbe94379a patches the issue.
- Record
UBUNTU-CVE-2026-40335- CVSS 3.1
- 5.2 Medium
CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L - Updated
- 2026-11-02
OSVAZL-83018 No score
CVE-2026-40335 affecting package libgphoto2 2.5.31-1
libgphoto2 is a camera access and control library. Versions up to and including 2.5.33 have an out-of-bounds read in ptp_unpack_DPV() in camlibs/ptp2/ptp-pack.c (lines 622–629). The UINT128 and INT128 cases advance *offset += 16 without verifying that 16 bytes remain in the buffer. The entry check at line 609 only guarantees *offset < total (at least 1 byte available), leaving up to 15 bytes unvalidated. Commit 433bde9888d70aa726e32744cd751d7dbe94379a patches the issue.
- Record
AZL-83018- Updated
- 2026-11-05
OSVopenSUSE-SU-2026:10916-1 No score
libgphoto2-6-2.5.34-1.1 on GA media
These are all security issues fixed in the libgphoto2-6-2.5.34-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2026:10916-1- Updated
- 2026-11-02
OSVUSN-8586-1 No score
libgphoto2 vulnerabilities
It was discovered that libgphoto2 did not properly validate buffer boundaries when parsing EOS image format data. An attacker with physical access could possibly use this issue to obtain sensitive information. (CVE-2026-40333)
It was discovered that libgphoto2 did not properly null-terminate buffers when parsing Canon folder entries. An attacker with physical access could possibly use this issue to obtain sensitive information. (CVE-2026-40334)
It was discovered that libgphoto2 did not properly validate buffer boundaries when parsing device property values. An attacker with physical access could possibly use this issue to obtain sensitive information. (CVE-2026-40335)
It was discovered that libgphoto2 had a memory leak when parsing Sony device property descriptors. An attacker with physical access could possibly use this issue to cause a denial of service. This issue only affected Ubuntu 26.04 LTS. (CVE-2026-40336)
It was discovered that libgphoto2 did not properly validate buffer boundaries when parsing Sony device property enumeration data. An attacker with physical access could possibly use this issue to obtain sensitive information. (CVE-2026-40338)
It was discovered that libgphoto2 did not properly validate buffer boundaries when parsing Sony device property form flags. An attacker with physical access could possibly use this issue to obtain sensitive information. (CVE-2026-40339)
It was discovered that libgphoto2 did not properly validate buffer boundaries when parsing object information. An attacker with physical access could possibly use this issue to obtain sensitive information. (CVE-2026-40340)
It was discovered that libgphoto2 did not properly validate buffer boundaries when parsing EOS focus information. An attacker with physical access could possibly use this issue to cause libgphoto2 to crash, resulting in a denial of service. (CVE-2026-40341)
- Record
USN-8586-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
libgphoto2Azure Linux:3 |
through 2.5.31-1 | None known |
libgphoto2Debian:12 |
All versions, plus listed versions 2.5.30-12.5.31-12.5.31-22.5.31-2.12.5.31-2.1~exp1 Show 6 moreShow less2.5.31-32.5.31-42.5.32-12.5.33-12.5.34-12.5.34-2 |
None known |
libgphoto2Debian:13 |
All versions, plus listed versions 2.5.31-42.5.32-12.5.33-12.5.34-12.5.34-2 |
None known |
libgphoto2Debian:14 |
before 2.5.34-1, plus listed versions 2.5.31-42.5.32-12.5.33-1 |
2.5.34-1 |
libgphoto2openEuler:24.03-LTS From an advisory covering 6 CVEs |
before 2.5.31-3.oe2403 | 2.5.31-3.oe2403 |
libgphoto2openEuler:24.03-LTS-SP1 From an advisory covering 6 CVEs |
before 2.5.31-3.oe2403sp1 | 2.5.31-3.oe2403sp1 |
libgphoto2openEuler:24.03-LTS-SP3 From an advisory covering 6 CVEs |
before 2.5.31-3.oe2403sp3 | 2.5.31-3.oe2403sp3 |
libgphoto2openEuler:20.03-LTS-SP4 From an advisory covering 6 CVEs |
before 2.5.18-5.oe2003sp4 | 2.5.18-5.oe2003sp4 |
libgphoto2openEuler:22.03-LTS-SP4 From an advisory covering 6 CVEs |
before 2.5.18-5.oe2203sp4 | 2.5.18-5.oe2203sp4 |
libgphoto2Ubuntu:14.04:LTS |
All versions, plus listed versions 2.5.2-0ubuntu52.5.2-0ubuntu62.5.3.1-0ubuntu12.5.3.1-1ubuntu22.5.3.1-1ubuntu2.2 |
None known |
Show 11 moreShow less
| Package | Affected | Fixed |
|---|---|---|
libgphoto2Ubuntu:16.04:LTS |
All versions, plus listed versions 2.5.8-12.5.8-22.5.8-32.5.9-22.5.9-3 |
None known |
libgphoto2Ubuntu:18.04:LTS |
All versions, plus listed versions 2.5.14-12.5.16-2 |
None known |
libgphoto2Ubuntu:20.04:LTS |
All versions, plus listed versions 2.5.23-22.5.24-12.5.25-0ubuntu0.1 |
None known |
libgphoto2Ubuntu:22.04:LTS |
before 2.5.27-1ubuntu0.1, plus listed versions 2.5.27-12.5.27-1build12.5.27-1build2 |
2.5.27-1ubuntu0.1 |
libgphoto2Ubuntu:24.04:LTS |
before 2.5.31-2.1ubuntu1.1, plus listed versions 2.5.30-12.5.31-12.5.31-22.5.31-2.1build12.5.31-2.1build22.5.31-2.1ubuntu1 |
2.5.31-2.1ubuntu1.1 |
libgphoto2Ubuntu:25.10 |
All versions, plus listed versions 2.5.31-42.5.31-4build12.5.31-4ubuntu1 |
None known |
libgphoto2Ubuntu:26.04:LTS |
before 2.5.33-1ubuntu1.1, plus listed versions 2.5.31-4build12.5.32-12.5.33-12.5.33-1ubuntu1 |
2.5.33-1ubuntu1.1 |
libgphoto2Ubuntu:22.04:LTS From an advisory covering 8 CVEs |
before 2.5.27-1ubuntu0.1, plus listed versions 2.5.27-12.5.27-1build12.5.27-1build2 |
2.5.27-1ubuntu0.1 |
libgphoto2Ubuntu:24.04:LTS From an advisory covering 8 CVEs |
before 2.5.31-2.1ubuntu1.1, plus listed versions 2.5.30-12.5.31-12.5.31-22.5.31-2.1build12.5.31-2.1build22.5.31-2.1ubuntu1 |
2.5.31-2.1ubuntu1.1 |
libgphoto2Ubuntu:26.04:LTS From an advisory covering 8 CVEs |
before 2.5.33-1ubuntu1.1, plus listed versions 2.5.31-4build12.5.32-12.5.33-12.5.33-1ubuntu1 |
2.5.33-1ubuntu1.1 |
libgphoto2openSUSE:Tumbleweed From an advisory covering 8 CVEs |
before 2.5.34-1.1 | 2.5.34-1.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected | ||
| facts | OSV | |
| first indexed | CVE List, EUVD, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2026-40335 is a medium vulnerability (CVSS 5.2) in Gphoto Libgphoto2, published April 17, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.20%, the 9th percentile. Fixed in libgphoto2 2.5.34-1.
References
github.com/gphoto/libgphoto2/security/advisories/GHSA-g4g5-c2x9-cqfj
github.com/gphoto/libgphoto2/commit/433bde9888d70aa726e32744cd751d7dbe94379a
nvd.nist.gov/vuln/detail/CVE-2026-40335
github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40335.json
security-tracker.debian.org/tracker/CVE-2026-40335
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2026-2067
Show 27 moreShow less
nvd.nist.gov/vuln/detail/CVE-2026-40334
nvd.nist.gov/vuln/detail/CVE-2026-40338
nvd.nist.gov/vuln/detail/CVE-2026-40339
nvd.nist.gov/vuln/detail/CVE-2026-40340
nvd.nist.gov/vuln/detail/CVE-2026-40341
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2026-2068
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2026-2069
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2026-2070
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2026-2071
ubuntu.com/security/CVE-2026-40335
cve.org/CVERecord?id=CVE-2026-40335
ubuntu.com/security/notices/USN-8586-1
ubuntu.com/security/CVE-2026-40333
ubuntu.com/security/CVE-2026-40334
ubuntu.com/security/CVE-2026-40336
ubuntu.com/security/CVE-2026-40338
ubuntu.com/security/CVE-2026-40339
ubuntu.com/security/CVE-2026-40340
ubuntu.com/security/CVE-2026-40341
suse.com/security/cve/CVE-2026-40333
suse.com/security/cve/CVE-2026-40334
suse.com/security/cve/CVE-2026-40335
suse.com/security/cve/CVE-2026-40336
suse.com/security/cve/CVE-2026-40338
suse.com/security/cve/CVE-2026-40339
suse.com/security/cve/CVE-2026-40340
suse.com/security/cve/CVE-2026-40341