CVE-2026-138158

medium
EUVD alias: EUVD-2026-137555
Assigned by CNA: vulncheck
Published 2026-11-28 · Modified 2026-11-30
CVSS v3
6.6
CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS v4 NEW
7.0
CVSS:4.0/AV:P/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
VIR risk
6.6

Description

libgphoto2 through 2.5.34 contains a stack buffer overflow in sierra_get_string_register() that lets a malicious sierra-protocol camera or USB device overwrite stack memory. When files are listed, the device can answer the file-name register with an oversized packet, writing up to 32 KB past small stack buffers to cause crashes or possible code execution.

Predictions

Exploit likelihood
65%
Patch ETA
—

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

Mitigation details

Source: Debian Security Tracker · View original ↗ · DFSG

CVE-2026-138158 NameCVE-2026-138158 Descriptionlibgphoto2 through 2.5.34 contains a stack buffer overflow in sierra_get_string_register() that lets a malicious sierra-protocol camera or USB device overwrite stack memory. When files are listed, the device can answer the file-name register with an oversized packet, writing up to 32 KB past small stack buffers to cause crashes or possible code…

CVE-2026-138158

NameCVE-2026-138158
Descriptionlibgphoto2 through 2.5.34 contains a stack buffer overflow in sierra_get_string_register() that lets a malicious sierra-protocol camera or USB device overwrite stack memory. When files are listed, the device can answer the file-name register with an oversized packet, writing up to 32 KB past small stack buffers to cause crashes or possible code execution.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
libgphoto2 (PTS)bookworm2.5.30-1vulnerable
trixie2.5.31-4vulnerable
forky, sid2.5.34-2vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
libgphoto2source(unstable)(unfixed)unimportant

Notes

https://github.com/gphoto/libgphoto2/security/advisories/GHSA-4f44-frcc-8824
Fixed by: https://github.com/gphoto/libgphoto2/commit/c4cd525d7461c26b89b4705dc74fc4b84d57ff3a
Negligible security impact

Home - Debian Security - Source (Git)

Apply commands

text fix
Notes
https://github.com/gphoto/libgphoto2/security/advisories/GHSA-4f44-frcc-8824Fixed by: https://github.com/gphoto/libgphoto2/commit/c4cd525d7461c26b89b4705dc74fc4b84d57ff3aNegligible security impact

OS impact

debian Debian Affected 4 releases
VersionPackageStatusFixed in
trixie libgphoto2 Affected —
sid libgphoto2 Affected —
forky libgphoto2 Affected —
bookworm libgphoto2 Affected —
suse SUSE Tracked 1 release
VersionPackageStatusFixed in
— — Unknown —

Application impact

VendorProductVersionsFixed
gphotolibgphoto2{"endIncluding":"2.5.34"}

References

CWEs

CWE-121

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.