CVE Vulnerabilities

CVE-2021-43825

Use After Free

Published: Feb 22, 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
5 MEDIUM
AV:N/AC:L/Au:N/C:N/I:N/A:P
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

Envoy is an open source edge and service proxy, designed for cloud-native applications. Sending a locally generated response must stop further processing of request or response data. Envoy tracks the amount of buffered request and response data and aborts the request if the amount of buffered data is over the limit by sending 413 or 500 responses. However when the buffer overflows while response is processed by the filter chain the operation may not be aborted correctly and result in accessing a freed memory block. If this happens Envoy will crash resulting in a denial of service.

Weakness

The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory “belongs” to the code that operates on the new pointer.

Affected Software

Name Vendor Start Version End Version
Envoy Envoyproxy * 1.18.6 (excluding)
Envoy Envoyproxy 1.19.0 (including) 1.19.3 (excluding)
Envoy Envoyproxy 1.20.0 (including) 1.20.2 (excluding)
Envoy Envoyproxy 1.21.0 (including) 1.21.1 (excluding)
OpenShift Service Mesh 2.0 RedHat servicemesh-proxy-0:2.0.9-3.el8 *
OpenShift Service Mesh 2.1 RedHat servicemesh-proxy-0:2.1.2-4.el8 *

Potential Mitigations

References