VDB

CVE-2024-4741

CVE-2024-4741 PUBLISHED CVSS 9.8 CRITICAL

Use After Free with SSL_free_buffers

Reported by openssl · Published November 13, 2024

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
opensslAlpine3.3.0-r3, 3.1.6-r0, 3.0.14-r0
opensslerrata.rockylinux.org1.1.1
openssl-libs-debuginfoerrata.rockylinux.org1.1.1
opensslChainguard3.3.1-r0
openssl-perlerrata.rockylinux.org1.1.1
openssl-debuginfoerrata.rockylinux.org1.1.1
openssl11Amazon Linux1:1.1.1g-12.amzn2.0.23
opensslWolfi3.3.1-r0
openssl-debugsourceerrata.rockylinux.org1.1.1
openssl-libsAmazon Linux1:3.0.8-1.amzn2023.0.14
openssl11-develAmazon Linux1:1.1.1g-12.amzn2.0.23
openssl11-staticAmazon Linux1:1.1.1g-12.amzn2.0.23

10 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
OpenSSLOpenSSL3.3.0, 3.2.0, 3.1.0
alpineopenssl0, 0, 0
chainguardopenssl0
amazon:2openssl110
wolfiopenssl0
amazon:2023openssl-libs0
amazon:2openssl11-devel0
amazon:2openssl11-static0
amazon:2023openssl-snapsafe-libs0
amazon:2openssl11-libs0
amazon:2023openssl0
chainguardlibcrypto3-2.340
amazon:2023openssl-perl0
chainguardopenssl-provider-fips-3.1.2*
amazon:2023openssl-devel0
opensslopenssl1.1.1, 3.3.0, 3.1.0
chainguardopenssl-provider-fips0
OpenSSLOpenSSL1.1.1, 3.3.0, 3.2.0

Timeline

  • May 28, 2024 CVE Published
  • Nov 13, 2024 Coalition ESS Score (30 in total, the first dated here)
  • Nov 14, 2024 EPSS Score (30 in total, the first dated here)
  • Mar 17, 2026 Security Advisory (15 in total, the first dated here)
  • Jun 16, 2026 Distribution Patch (9 in total, the first dated here)
  • Nov 9, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-4741
vulnetix vdb fixes CVE-2024-4741

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-4741/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›