Ubuntu Addresses CImg Security Issues in Long-Term Support Versions
Ubuntu issued a security update to resolve several vulnerabilities in the CImg library, affecting multiple long-term support (LTS) versions. Users are advised to upgrade to designated package versions to reduce potential risks.
LinuxOperating systemsVulnerabilitiesKey points
- A heap-based buffer over-read flaw in CImg could allow attackers to crash the application or access sensitive data if a malicious BMP file is opened.
- A URL sanitization flaw in CImg allowed attackers to execute arbitrary commands if images were loaded from the network.
- Users are advised to upgrade to specific versions of CImg packages to resolve the vulnerabilities.
Ubuntu issued a security update to resolve several vulnerabilities in the CImg library. This update affects multiple long-term support (LTS) versions of Ubuntu, specifically 16.04 LTS and 18.04 LTS. A flaw in CImg involving a heap-based buffer over-read could allow attackers to crash the application or access confidential data if a malicious BMP file is opened. This issue impacted Ubuntu 16.04 LTS and 18.04 LTS and was linked to multiple CVE identifiers, including CVE-2018-7588 and CVE-2018-7641. Another vulnerability, a double free issue, could result in a denial of service or arbitrary code execution if a specially crafted BMP file was opened, and this only affected Ubuntu 16.04 LTS. A URL sanitization flaw in CImg allowed attackers to run arbitrary commands when images were loaded from the network, impacting Ubuntu 16.04 LTS and 18.04 LTS. A PNM-related flaw could lead to denial of service or arbitrary code execution if a malicious file was opened, and this affected Ubuntu 16.04 LTS and 20.04 LTS. The PNM vulnerability was assigned the CVE identifier CVE-2020-25693. The update recommends users upgrade to specific versions of CImg packages to address the vulnerabilities. The cimg-examples package was updated to version 2.4.5+dfsg-1ubuntu0.1~esm1, while the cimg-dev package was updated to version 1.7.9+dfsg-2ubuntu0.18.04.2+esm3. Additional versions of cimg-examples were also updated to 1.7.9+dfsg-2ubuntu0.18.04.2+esm3 and 1.6.5+dfsg-1ubuntu0.1~esm2. The update process involves applying a standard system update to implement the necessary fixes. The vulnerabilities were identified by the Ubuntu security team and addressed through software updates. To exploit these vulnerabilities, a user or automated system must be tricked into opening a malicious file. The report does not mention any confirmed cases of exploitation. The vendor advises applying the updates promptly to minimize the risks. The update includes patches for all the identified vulnerabilities in CImg.
What to do
- Install the necessary fixes by applying a standard system update.
- Upgrade to the recommended versions of CImg packages.
- Ensure all affected Ubuntu LTS versions are patched to address the vulnerabilities.
- Watch for any attempts to exploit these vulnerabilities through malicious file activity.
Original report
“USN-9480-1: CImg vulnerabilities”
It was discovered that CImg did not properly handle certain BMP images, which could lead to a heap-based buffer over-read. If a user or automated system were tricked into opening a specially crafted file, an attacker could possibly use these issues to cause CImg to crash, resulting in a denial of service, or obtain sensitive information. These issues only affected Ubuntu 16.04 LTS and Ubuntu 18.0…