Stack-based Buffer Overflow Affecting libgphoto2 package, versions *


Severity

Recommended
0.0
medium
0
10

Based on CentOS security rating.

Threat Intelligence

EPSS
0.44% (30th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-CENTOS10-LIBGPHOTO2-23331440
  • published3 Dec 2026
  • disclosed28 Nov 2026

Introduced: 28 Nov 2026

NewCVE-2026-138158  (opens in a new tab)
CWE-121  (opens in a new tab)

How to fix?

There is no fixed version for Centos:10 libgphoto2.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libgphoto2 package and not the libgphoto2 package as distributed by Centos. See How to fix? for Centos:10 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1