CVE Vulnerabilities

CVE-2022-32149

Missing Release of Resource after Effective Lifetime

Published: Oct 14, 2022 | Modified: Oct 18, 2022
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
RedHat/V2
RedHat/V3
7.5 MODERATE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Ubuntu
MEDIUM

An attacker may cause a denial of service by crafting an Accept-Language header which ParseAcceptLanguage will take significant time to parse.

Weakness

The product does not release a resource after its effective lifetime has ended, i.e., after the resource is no longer needed.

Affected Software

Name Vendor Start Version End Version
Text Golang * 0.3.8 (excluding)
Logging subsystem for Red Hat OpenShift 5.4 RedHat openshift-logging/elasticsearch-proxy-rhel8:v1.0.0-300 *
OADP-1.0-RHEL-8 RedHat oadp/oadp-velero-rhel8:1.0.7-5 *
OpenShift Custom Metrics Autoscaler 2 RedHat custom-metrics-autoscaler-tech-preview/custom-metrics-autoscaler-rhel8:2.8.2-143 *
OpenShift Developer Tools and Services for OCP 4.9 RedHat ocp-tools-4/service-binding-operator-bundle:v1.3.1-7 *
OpenShift Developer Tools and Services for OCP 4.9 RedHat ocp-tools-4/service-binding-rhel8-operator:v1.3.1-5 *
OpenShift Logging 5.3 RedHat openshift-logging/elasticsearch-proxy-rhel8:v1.0.0-302 *
Red Hat Advanced Cluster Management for Kubernetes 2 RedHat lighthouse-agent-container *
Red Hat Advanced Cluster Management for Kubernetes 2 RedHat lighthouse-coredns-container *
Red Hat Advanced Cluster Management for Kubernetes 2 RedHat subctl-container *
Red Hat Advanced Cluster Management for Kubernetes 2 RedHat submariner-gateway-container *
Red Hat Advanced Cluster Management for Kubernetes 2 RedHat submariner-globalnet-container *
Red Hat Advanced Cluster Management for Kubernetes 2 RedHat submariner-networkplugin-syncer-container *
Red Hat Advanced Cluster Management for Kubernetes 2 RedHat submariner-operator-bundle-container *
Red Hat Advanced Cluster Management for Kubernetes 2 RedHat submariner-operator-container *
Red Hat Advanced Cluster Management for Kubernetes 2 RedHat submariner-route-agent-container *
Red Hat Advanced Cluster Management for Kubernetes 2 RedHat lighthouse-agent-container *
Red Hat Advanced Cluster Management for Kubernetes 2 RedHat lighthouse-coredns-container *
Red Hat Advanced Cluster Management for Kubernetes 2 RedHat nettest-container *
Red Hat Advanced Cluster Management for Kubernetes 2 RedHat subctl-container *
Red Hat Advanced Cluster Management for Kubernetes 2 RedHat submariner-gateway-container *
Red Hat Advanced Cluster Management for Kubernetes 2 RedHat submariner-globalnet-container *
Red Hat Advanced Cluster Management for Kubernetes 2 RedHat submariner-networkplugin-syncer-container *
Red Hat Advanced Cluster Management for Kubernetes 2 RedHat submariner-operator-bundle-container *
Red Hat Advanced Cluster Management for Kubernetes 2 RedHat submariner-operator-container *
Red Hat Advanced Cluster Management for Kubernetes 2 RedHat submariner-route-agent-container *
Red Hat Enterprise Linux 8.6 Extended Update Support RedHat container-tools:rhel8-8060020240413110723.3b538bd8 *
Red Hat Enterprise Linux 8.8 Extended Update Support RedHat container-tools:rhel8-8080020240422101606.0f77c1b7 *
Red Hat Migration Toolkit for Containers 1.7 RedHat rhmtc/openshift-migration-velero-rhel8:v1.7.7-5 *
Red Hat OpenShift Container Platform 4.12 RedHat podman-3:4.2.0-7.rhaos4.12.el9 *
RHEL-7-CNV-4.13 RedHat kubevirt-0:4.13.0-1469.el7 *
RHEL-8-CNV-4.13 RedHat kubevirt-0:4.13.0-1469.el8 *
RHEL-9-CNV-4.13 RedHat kubevirt-0:4.13.0-1469.el9 *
RHEL-9-CNV-4.13 RedHat container-native-virtualization/virt-api-rhel9:v4.13.0-358 *
RHOL-5.5-RHEL-8 RedHat openshift-logging/elasticsearch-proxy-rhel8:v1.0.0-303 *
Golang-golang-x-text Ubuntu esm-apps/focal *
Golang-golang-x-text Ubuntu esm-apps/jammy *
Golang-golang-x-text Ubuntu focal *
Golang-golang-x-text Ubuntu jammy *
Golang-golang-x-text Ubuntu kinetic *
Golang-golang-x-text Ubuntu lunar *
Golang-golang-x-text Ubuntu trusty *
Golang-golang-x-text Ubuntu upstream *
Golang-golang-x-text Ubuntu xenial *
Golang-x-text Ubuntu bionic *
Golang-x-text Ubuntu esm-apps/bionic *
Golang-x-text Ubuntu esm-apps/focal *
Golang-x-text Ubuntu focal *
Golang-x-text Ubuntu xenial *

Potential Mitigations

  • Use a language that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid.
  • For example, languages such as Java, Ruby, and Lisp perform automatic garbage collection that releases memory for objects that have been deallocated.
  • Use resource-limiting settings provided by the operating system or environment. For example, when managing system resources in POSIX, setrlimit() can be used to set limits for certain types of resources, and getrlimit() can determine how many resources are available. However, these functions are not available on all operating systems.
  • When the current levels get close to the maximum that is defined for the application (see CWE-770), then limit the allocation of further resources to privileged users; alternately, begin releasing resources for less-privileged users. While this mitigation may protect the system from attack, it will not necessarily stop attackers from adversely impacting other users.
  • Ensure that the application performs the appropriate error checks and error handling in case resources become unavailable (CWE-703).

References