CVE Vulnerabilities

CVE-2022-1708

Uncontrolled Resource Consumption

Published: Jun 07, 2022 | Modified: Nov 21, 2024
CVSS 3.x
7.5
HIGH
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.x
7.8 HIGH
AV:N/AC:L/Au:N/C:N/I:N/A:C
RedHat/V2
RedHat/V3
6.8 MODERATE
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:N/A:H
Ubuntu
MEDIUM

A vulnerability was found in CRI-O that causes memory or disk space exhaustion on the node for anyone with access to the Kube API. The ExecSync request runs commands in a container and logs the output of the command. This output is then read by CRI-O after command execution, and it is read in a manner where the entire file corresponding to the output of the command is read in. Thus, if the output of the command is large it is possible to exhaust the memory or the disk space of the node when CRI-O reads the output of the command. The highest threat from this vulnerability is system availability.

Weakness

The product does not properly control the allocation and maintenance of a limited resource, thereby enabling an actor to influence the amount of resources consumed, eventually leading to the exhaustion of available resources.

Affected Software

Name Vendor Start Version End Version
Cri-o Kubernetes * 1.19.7 (excluding)
Cri-o Kubernetes 1.20.0 (including) 1.20.8 (excluding)
Cri-o Kubernetes 1.21.0 (including) 1.21.8 (excluding)
Cri-o Kubernetes 1.22.0 (including) 1.22.5 (excluding)
Cri-o Kubernetes 1.23.0 (including) 1.23.3 (excluding)
Cri-o Kubernetes 1.24.0 (including) 1.24.0 (including)
Red Hat Enterprise Linux 8 RedHat container-tools:rhel8-8070020220929222448.39077419 *
Red Hat Enterprise Linux 8 RedHat container-tools:4.0-8070020220830101436.39077419 *
Red Hat Enterprise Linux 8 RedHat container-tools:3.0-8070020220802115906.39077419 *
Red Hat OpenShift Container Platform 3.11 RedHat cri-o-0:1.11.16-0.17.rhaos3.11.git4c0a8ad.el7 *
Red Hat OpenShift Container Platform 4.10 RedHat conmon-2:2.0.29-3.rhaos4.10.el8 *
Red Hat OpenShift Container Platform 4.10 RedHat cri-o-0:1.23.3-3.rhaos4.10.git5fe1720.el8 *
Red Hat OpenShift Container Platform 4.6 RedHat conmon-2:2.0.21-3.rhaos4.6.el8 *
Red Hat OpenShift Container Platform 4.6 RedHat cri-o-0:1.19.7-2.rhaos4.6.git3c20b65.el7 *
Red Hat OpenShift Container Platform 4.7 RedHat conmon-2:2.0.29-3.rhaos4.7.el7 *
Red Hat OpenShift Container Platform 4.7 RedHat cri-o-0:1.20.8-3.rhaos4.7.gitb9df556.el7 *
Red Hat OpenShift Container Platform 4.8 RedHat conmon-2:2.0.29-3.rhaos4.8.el7 *
Red Hat OpenShift Container Platform 4.8 RedHat cri-o-0:1.21.8-3.rhaos4.8.gitd7fbb0d.el8 *
Red Hat OpenShift Container Platform 4.9 RedHat conmon-2:2.0.29-3.rhaos4.9.el8 *
Red Hat OpenShift Container Platform 4.9 RedHat cri-o-0:1.22.5-3.rhaos4.9.gitb6d3a87.el8 *

Extended Description

Limited resources include memory, file system storage, database connection pool entries, and CPU. If an attacker can trigger the allocation of these limited resources, but the number or size of the resources is not controlled, then the attacker could cause a denial of service that consumes all available resources. This would prevent valid users from accessing the product, and it could potentially have an impact on the surrounding environment. For example, a memory exhaustion attack against an application could slow down the application as well as its host operating system. There are at least three distinct scenarios which can commonly lead to resource exhaustion:

Resource exhaustion problems are often result due to an incorrect implementation of the following situations:

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