USN-7437-1: CImg library vulnerabilities

Publication date

15 April 2025

Overview

Several security issues were fixed in CImg.


Packages

  • cimg - powerful image processing library

Details

It was discovered that the CImg library did not properly check the size
of images before loading them. An attacker could possibly use this issue
to cause a denial of service. This issue only affected Ubuntu 22.04 LTS.
(CVE-2022-1325)

It was discovered that the CImg library did not correctly handle certain
memory operations, which could lead to a buffer overflow. An attacker
could possibly use this issue to execute arbitrary code or cause a denial
of service. (CVE-2024-26540)

It was discovered that the CImg library did not properly check the size
of images before loading them. An attacker could possibly use this issue
to cause a denial of service. This issue only affected Ubuntu 22.04 LTS.
(CVE-2022-1325)

It was discovered that the CImg library did not correctly handle certain
memory operations, which could lead to a buffer overflow. An attacker
could possibly use this issue to execute arbitrary code or cause a denial
of service. (CVE-2024-26540)

Update instructions

In general, a standard system update will make all the necessary changes.

Learn more about how to get the fixes.

The problem can be corrected by updating your system to the following package versions:

Ubuntu Release Package Version
24.10 oracular cimg-dev –  3.2.1+dfsg-1ubuntu0.24.10.1
24.04 noble cimg-dev –  3.2.1+dfsg-1ubuntu0.24.04.1~esm1  
22.04 jammy cimg-dev –  2.9.4+dfsg-3ubuntu0.1~esm1  
18.04 bionic cimg-dev –  1.7.9+dfsg-2ubuntu0.18.04.2+esm1  

Reduce your security exposure

Ubuntu Pro provides ten-year security coverage to 25,000+ packages in Main and Universe repositories, and it is free for up to five machines.


Have additional questions?

Talk to a member of the team ›