CVE Vulnerabilities

CVE-2024-32974

Use After Free

Published: Jun 04, 2024 | 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
RedHat/V2
RedHat/V3
5.9 MODERATE
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Ubuntu

Envoy is a cloud-native, open source edge and service proxy. A crash was observed in EnvoyQuicServerStream::OnInitialHeadersComplete() with following call stack. It is a use-after-free caused by QUICHE continuing push request headers after StopReading() being called on the stream. As after StopReading(), the HCMs ActiveStream might have already be destroyed and any up calls from QUICHE could potentially cause use after free.

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.27.6 (excluding)
Envoy Envoyproxy 1.28.0 (including) 1.28.4 (excluding)
Envoy Envoyproxy 1.29.0 (including) 1.29.5 (excluding)
Envoy Envoyproxy 1.30.0 (including) 1.30.2 (excluding)

Potential Mitigations

References