Elevated
libgphoto2 sierra driver stack buffer overflow
CVE-2026-138158
Plugging in a bad camera or USB device can let it hack your PC.
- CVE
- CVE-2026-138158 (opens in a new tab)
- Score
- CVSS 7.0
- Public date
- 2026-11-08
- First seen
7.0
Products
Mitigation
Update libgphoto2 to 2.5.35 or later. No stopgap is named until then.
Summary
A stack buffer overflow in the libgphoto2 sierra driver's sierra_get_string_register() lets a malicious camera or USB device overwrite memory when files are listed. Versions through 2.5.34 are affected.
Exploit code is public
Affected when
- sierra driver included in a default build
- Malicious device connected and its file list viewed
Incidents by product: libgphoto2
Distribution packages (2) (every link below opens in a new tab)
- Debian 13 (trixie)libgphoto2 · not fixed yet
- Debian 12 (bookworm)libgphoto2 · not fixed yet
Sources: Debian Security Tracker
Read the advisory · github.com (opens in a new tab)
- Advisory: github.com (opens in a new tab)
- Write-up: github.com (opens in a new tab)
- Write-up: vulncheck.com (opens in a new tab)
- CVE record: cve.org (opens in a new tab)