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)

Notes

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

Search for package or bug name: Reporting problems