Buffer Overflow Affecting zxing-cpp-devel package, versions <1.2.0-9.7.1


Severity

Recommended
0.0
high
0
10

Based on SUSE Linux Enterprise Server security rating.

Threat Intelligence

EPSS
1.46% (73rd 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-SLES153-ZXINGCPPDEVEL-2647351
  • published14 Apr 2022
  • disclosed24 Jan 2022

Introduced: 24 Jan 2022

CVE-2021-42716  (opens in a new tab)
CWE-120  (opens in a new tab)

How to fix?

Upgrade SLES:15.3 zxing-cpp-devel to version 1.2.0-9.7.1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream zxing-cpp-devel package and not the zxing-cpp-devel package as distributed by SLES. See How to fix? for SLES:15.3 relevant fixed versions and status.

An issue was discovered in stb stb_image.h 2.27. The PNM loader incorrectly interpreted 16-bit PGM files as 8-bit when converting to RGBA, leading to a buffer overflow when later reinterpreting the result as a 16-bit buffer. An attacker could potentially have crashed a service using stb_image, or read up to 1024 bytes of non-consecutive heap data without control over the read location.

References

CVSS Base Scores

version 3.1