Bug 2466483 (CVE-2026-42146)

Summary: CVE-2026-42146 CImg: CImg Library: Denial of Service via crafted BMP file
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedKeywords: Security
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in CImg Library. A remote attacker can exploit this vulnerability by providing a specially crafted BMP (Bitmap) image file. This occurs because the `nb_colors` field in the BMP file header is used directly to compute an allocation size without proper validation against the remaining file size. Successful exploitation can lead to an out-of-memory condition, causing applications that use CImg to load untrusted BMP files to crash, resulting in a Denial of Service (DoS).
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2467995    
Bug Blocks:    

Description OSIDB Bzimport 2026-05-04 19:01:34 UTC
CImg Library is a C++ library for image processing. Prior to commit c3aacf5, the nb_colors field read from the BMP file header is used directly to compute an allocation size without validating it against the remaining file size. A crafted BMP file with a large nb_colors value triggers an out-of-memory condition, crashing any application that uses CImg to load untrusted BMP files. This issue has been patched via commit c3aacf5.