Vulnerability · Published Nov 13, 2024 · Assigned by openssl

CVE-2024-4741Use After Free with SSL_free_buffers

High 7.5

In plain English

A high-severity use-after-free in OpenSSL from OpenSSL. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.9% (higher than 87% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)2.9%top 12.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

Issue summary: Calling the OpenSSL API function SSL_free_buffers may cause memory to be accessed that was previously freed in some situations Impact summary: A use after free can have a range of potential consequences such as the corruption of valid data, crashes or execution of arbitrary code. However, only applications that directly call the SSL_free_buffers function are affected by this issue. Applications that do not call this function are not vulnerable. Our investigations indicate that this function is rarely used by applications. The SSL_free_buffers function is used to free the internal OpenSSL buffer used when processing an incoming record from the network. The call is only expected to succeed if the buffer is not currently in use. However, two scenarios have been identified where the buffer is freed even when still in use. The first scenario occurs where a record header has been received from the network and processed by OpenSSL, but the full record body has not yet arrived. In this case calling SSL_free_buffers will succeed even though a record has only been partially processed and the buffer is still in use. The second scenario occurs where a full record containing application data has been received and processed by OpenSSL but the application has only read part of this data. Again a call to SSL_free_buffers will succeed even though the buffer is still in use. While these scenarios could occur accidentally during normal operation a malicious attacker could attempt to engineer a stituation where this occurs. We are not aware of this issue being actively exploited. The FIPS modules in 3.3, 3.2, 3.1 and 3.0 are not affected by this issue.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8openssl1:1.1.1k-16.el8_6ALSA-2026:26275
AlmaLinux:9openssl1:3.2.2-6.el9_5ALSA-2024:9333
AlmaLinux:8openssl-devel1:1.1.1k-16.el8_6ALSA-2026:26275
AlmaLinux:9openssl-devel1:3.2.2-6.el9_5ALSA-2024:9333
AlmaLinux:8openssl-libs1:1.1.1k-16.el8_6ALSA-2026:26275
AlmaLinux:9openssl-libs1:3.2.2-6.el9_5ALSA-2024:9333
AlmaLinux:8openssl-perl1:1.1.1k-16.el8_6ALSA-2026:26275
AlmaLinux:9openssl-perl1:3.2.2-6.el9_5ALSA-2024:9333
Alpine:v3.20openssl3.3.0-r3ALPINE-CVE-2024-4741
Alpine:v3.21openssl3.3.0-r3ALPINE-CVE-2024-4741
Alpine:v3.22openssl3.3.0-r3ALPINE-CVE-2024-4741
Alpine:v3.23openssl3.3.0-r3ALPINE-CVE-2024-4741
Alpine:v3.24openssl3.3.0-r3ALPINE-CVE-2024-4741
Debian:12openssl3.0.14-1~deb12u1DEBIAN-CVE-2024-4741
Debian:13openssl3.2.2-1DEBIAN-CVE-2024-4741
Debian:14openssl3.2.2-1DEBIAN-CVE-2024-4741
Rocky Linux:8openssl1:1.1.1k-16.el8_10RLSA-2026:26275
Rocky Linux:9openssl1:3.2.2-6.el9_5.1RLSA-2024:9333
Rocky Linux:9openssl-fips-provider0:3.0.7-6.el9_5RLSA-2024:9333
Ubuntu:22.04:LTSedk22022.02-3ubuntu0.22.04.4USN-7894-1
Ubuntu:22.04:LTSedk22022.02-3ubuntu0.22.04.4UBUNTU-CVE-2024-4741
Ubuntu:24.04:LTSedk22024.02-2ubuntu0.6UBUNTU-CVE-2024-4741
Ubuntu:24.04:LTSedk22024.02-2ubuntu0.6USN-7894-1
Ubuntu:22.04:LTSopenssl3.0.2-0ubuntu1.17USN-6937-1
Ubuntu:22.04:LTSopenssl3.0.2-0ubuntu1.17UBUNTU-CVE-2024-4741
Ubuntu:24.04:LTSopenssl3.0.13-0ubuntu3.2USN-6937-1
Ubuntu:24.04:LTSopenssl3.0.13-0ubuntu3.2UBUNTU-CVE-2024-4741

Affected products (as reported)

VendorProductVersions
OpenSSL OpenSSL 3.3.0 – before 3.3.13.2.0 – before 3.2.23.1.0 – before 3.1.63.0.0 – before 3.0.141.1.1 – before 1.1.1y

Weakness: CWE-416 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References