CVE-2022-28041
Linux Debian vulnerability analysis and mitigation

Overview

CVE-2022-28041 affects stb_image.h version 2.27, specifically containing an integer overflow vulnerability in the function stbi__jpeg_decode_block_prog_dc. This vulnerability was discovered and disclosed in early 2022, with fixes being implemented and distributed throughout 2022 and 2023. The vulnerability affects various software packages that incorporate the stb_image.h library, including CuraEngine, USD, and other applications that use this header-only library for image processing (NVD, Debian Security).

Technical details

The vulnerability stems from an integer overflow condition in the stbi__jpeg_decode_block_prog_dc function within stb_image.h. When processing certain JPEG images, the function can experience a signed integer overflow, which is undefined behavior in C/C++. The issue was identified through fuzz testing with UndefinedBehaviorSanitizer (UBSAN), which detected multiple instances where arithmetic operations could result in values that cannot be represented in the target integer type (GitHub Issue).

Impact

The exploitation of this vulnerability can lead to a Denial of Service (DoS) condition through unspecified vectors. When triggered, the integer overflow can cause the application to crash or behave unpredictably, potentially affecting the stability and availability of systems using the affected library (MITRE CVE).

Mitigation and workarounds

The vulnerability has been fixed in subsequent releases of stb_image.h. The fix includes additional checks for integer overflow conditions and proper handling of arithmetic operations. Various distributions have released security updates, including Debian (DLA-3305-1) and Fedora. Users are advised to update their packages to the latest versions that include these fixes (Debian LTS).

Additional resources


SourceThis report was generated using AI

Related Linux Debian vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-23745HIGH8.2
  • JavaScriptJavaScript
  • argo-workflows-fips-3.6
NoYesJan 16, 2026
CVE-2026-23535HIGH8
  • PythonPython
  • wlc
NoYesJan 16, 2026
CVE-2026-23490HIGH7.5
  • PythonPython
  • pyasn1
NoYesJan 16, 2026
CVE-2026-23643MEDIUM5.4
  • CakePHPCakePHP
  • cakephp
NoYesJan 16, 2026
CVE-2025-61873LOW2.6
  • Linux DebianLinux Debian
  • request-tracker4
NoYesJan 16, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management