CVE-2026-138158

MEDIUMCVSS 6.6/10EPSS 0.44%

Last modified

CVE-2026-138158 is a medium-severity vulnerability rated 6.6/10 on the CVSS scale. 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.. EPSS estimates a 0.44% chance of exploitation in the next 30 days.

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.

Metrics

Weakness Enumeration

Affected Software

Source: CNA advisory (CVE.org). NVD analysis pending.

VendorProductVersions
gphotolibgphoto2<= 2.5.34

References

Timeline

Published
Last Modified
Status
Received

Frequently Asked Questions

What is CVE-2026-138158?
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.
How severe is CVE-2026-138158?
CVE-2026-138158 has a CVSS score of 6.6/10 (MEDIUM severity). The EPSS model estimates a 0.44% probability of exploitation in the next 30 days.
How do I fix CVE-2026-138158?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

How Strix Helps

Related CVEs from 2026

Are you affected by CVE-2026-138158?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST