{"id":"DEBIAN-CVE-2026-138158","details":"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.","modified":"2026-11-28T09:00:06.172563132Z","published":"2026-11-28T03:17:07.590Z","upstream":["CVE-2026-138158"],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2026-138158"}],"affected":[{"package":{"name":"libgphoto2","ecosystem":"Debian:12","purl":"pkg:deb/debian/libgphoto2?arch=source&distro=bookworm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.5.30-1","2.5.31-1","2.5.31-2","2.5.31-2.1","2.5.31-2.1~exp1","2.5.31-3","2.5.31-4","2.5.32-1","2.5.33-1","2.5.34-1","2.5.34-2"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-138158.json"}},{"package":{"name":"libgphoto2","ecosystem":"Debian:13","purl":"pkg:deb/debian/libgphoto2?arch=source&distro=trixie"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.5.31-4","2.5.32-1","2.5.33-1","2.5.34-1","2.5.34-2"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-138158.json"}},{"package":{"name":"libgphoto2","ecosystem":"Debian:14","purl":"pkg:deb/debian/libgphoto2?arch=source&distro=forky"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.5.31-4","2.5.32-1","2.5.33-1","2.5.34-1","2.5.34-2"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-138158.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"}]}