CVE Vulnerabilities

CVE-2022-1325

Uncontrolled Resource Consumption

Published: Aug 31, 2022 | Modified: Nov 21, 2024
CVSS 3.x
5.5
MEDIUM
Source:
NVD
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
CVSS 2.x
RedHat/V2
RedHat/V3
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

A flaw was found in Clmg, where with the help of a maliciously crafted pandore or bmp file with modified dx and dy header field values it is possible to trick the application into allocating huge buffer sizes like 64 Gigabyte upon reading the file from disk or from a virtual buffer.

Weakness

The product does not properly control the allocation and maintenance of a limited resource.

Affected Software

NameVendorStart VersionEnd Version
CimgCimg*3.1.0 (excluding)
CimgUbuntubionic*
CimgUbuntuesm-apps/bionic*
CimgUbuntuesm-apps/focal*
CimgUbuntuesm-apps/jammy*
CimgUbuntuesm-apps/xenial*
CimgUbuntufocal*
CimgUbuntujammy*
CimgUbuntukinetic*
CimgUbuntulunar*
CimgUbuntumantic*
CimgUbuntutrusty*
CimgUbuntuupstream*
CimgUbuntuxenial*

Potential Mitigations

  • Mitigation of resource exhaustion attacks requires that the target system either:

  • The first of these solutions is an issue in itself though, since it may allow attackers to prevent the use of the system by a particular valid user. If the attacker impersonates the valid user, they may be able to prevent the user from accessing the server in question.

  • The second solution is simply difficult to effectively institute – and even when properly done, it does not provide a full solution. It simply makes the attack require more resources on the part of the attacker.

References