Bug 2466483 (CVE-2026-42146) - CVE-2026-42146 CImg: CImg Library: Denial of Service via crafted BMP file
Summary: CVE-2026-42146 CImg: CImg Library: Denial of Service via crafted BMP file
Keywords:
Status: NEW
Alias: CVE-2026-42146
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2467995
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-05-04 19:01 UTC by OSIDB Bzimport
Modified: 2026-05-08 11:13 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.