CVE-2024-4741
openssl: Use After Free with SSL_free_buffers
Overview
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.
Source: OX vulnerability database
Severity
9.8 · CRITICAL
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness: CWE-416
Affected packages · 2
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Julia | Openresty_jll | >=1.19.9+0, <1.27.1+0 | 1.27.1+0 |
| Julia | OpenSSL_jll | <3.0.14+0 | 3.0.14+0 |
Open a package to see all its vulnerabilities.
Operating systems · 80 fixes
Azure Linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.0 | edk2 | 0:20240524git3e722403cd16-6.azl3 |
Oracle Linux 2 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 | openssl +3 | 1:1.1.1k-16.el8_6 |
| 8 | openssl +4 | 2:1.1.1k-16.ksplice1.el8_6 |
| 9 | openssl +3 | 1:3.2.2-6.0.1.el9_5 |
| 9 | openssl-fips-provider +1 | 3.0.7-6.0.1.el9_5 |
Photon OS 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 4.0 | openssl +4 | 3.0.14-1.ph4 |
| 5.0 | openssl +5 | 3.0.14-1.ph5 |
Red Hat 3 releases · 3 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | jbcs-httpd24-openssl | affected | — |
| 8 | openssl +3 | 1:1.1.1k-16.el8_6 | RHSA-2026:26275 |
| 9 | compat-openssl11 +1 | affected | — |
| 9 | openssl +3 | 1:3.2.2-6.el9_5 | RHSA-2024:9333 |
SUSE Linux Enterprise 5 releases · 3 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 12.5 | libopenssl-1-1-devel +6 | 1.1.1d-2.107.1 | SUSE-SU-2024:2036-1 |
| 15.4 | openssl-1-1-livepatches | 0.4-150400.3.11.1 | SUSE-SU-2024:2197-1 |
| 15.4 | libopenssl-1-1-devel +6 | 1.1.1l-150400.7.69.1 | SUSE-SU-2024:2089-1 |
| 15.4 | libopenssl-3-devel +2 | 3.0.8-150400.4.57.1 | SUSE-SU-2024:2088-1 |
| 15.5 | openssl-1-1-livepatches | 0.4-150500.6.8.1 | SUSE-SU-2024:2271-1 |
| 15.5 | libopenssl-1-1-devel +5 | 1.1.1l-150500.17.31.1 | SUSE-SU-2024:2051-1 |
5 more rows
SUSE Linux Enterprise Micro 6 releases · 5 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 5.1 | libopenssl-1-1-devel +3 | 1.1.1d-150200.11.91.1 | SUSE-SU-2024:2035-1 |
| 5.2 | libopenssl-1-1-devel +3 | 1.1.1d-150200.11.91.1 | SUSE-SU-2024:2035-1 |
| 5.3 | libopenssl-1-1-devel +3 | 1.1.1l-150400.7.69.1 | SUSE-SU-2024:2089-1 |
| 5.3 | libopenssl3 | 3.0.8-150400.4.57.1 | SUSE-SU-2024:2088-1 |
| 5.4 | libopenssl-1-1-devel +3 | 1.1.1l-150400.7.69.1 | SUSE-SU-2024:2089-1 |
| 5.4 | libopenssl3 | 3.0.8-150400.4.57.1 | SUSE-SU-2024:2088-1 |
4 more rows
alma 3 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 10 | edk2-aarch64 +3 | 20260221-7.el10.alma.1 |
| 8 | openssl +3 | 1:1.1.1k-16.el8_6 |
| 9 | openssl +3 | 1:3.2.2-6.el9_5 |
alpine 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | openssl | 3.3.0-r3 |
| 3.23 | openssl | 3.3.0-r3 |
| 3.24 | openssl | 3.3.0-r3 |
| edge | openssl | 3.3.0-r3 |
amazon linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 2023 | openssl +8 | 1:3.0.8-1.amzn2023.0.14 |
chainguard 1 release · 3 packages
| Release | Package | Fixed in |
|---|---|---|
| openssl-provider-fips-3-1-2 | not affected | |
| openssl-provider-fips | 3.0.9-r1 | |
| libcrypto3-2-34 +1 | 3.3.1-r0 |
debian 5 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 10 | openssl | affected |
| 11 | openssl | 1.1.1w-0+deb11u2 |
| 12 | openssl | 3.0.14-1~deb12u1 |
| 13 | openssl | 3.2.2-1 |
| 14 | openssl | 3.2.2-1 |
echo 1 release · 6 packages
| Release | Package | Fixed in |
|---|---|---|
| openssl-1-1-1c | 1.1.1c+e1 | |
| openssl-1-1-1g | 1.1.1g+e1 | |
| openssl-1-1-1k | 1.1.1k+e1 | |
| openssl | 3.0.14-1~deb12u1 | |
| openssl-3-0-9 | 3.0.9+e1 | |
| openssl-3-1-0 | 3.1.0+e1 |
openSUSE 1 release · 2 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | libopenssl-1-1-devel +5 | 1.1.1w-11.1 | openSUSE-SU-2024:14219-1 |
| Tumbleweed | libopenssl-3-devel +9 | 3.1.4-11.1 | openSUSE-SU-2024:14220-1 |
openSUSE Leap Micro 2 releases · 2 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 5.3 | libopenssl-1-1-devel +3 | 1.1.1l-150400.7.69.1 | SUSE-SU-2024:2089-1 |
| 5.3 | libopenssl3 | 3.0.8-150400.4.57.1 | SUSE-SU-2024:2088-1 |
| 5.4 | libopenssl-1-1-devel +3 | 1.1.1l-150400.7.69.1 | SUSE-SU-2024:2089-1 |
| 5.4 | libopenssl3 | 3.0.8-150400.4.57.1 | SUSE-SU-2024:2088-1 |
rocky 3 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 10 | edk2-aarch64 +1 | 20260221-7.el10 |
| 8 | openssl +3 | 1:1.1.1k-16.el8_10 |
| 9 | openssl +3 | 1:3.2.2-6.el9_5.1 |
root.io alpine 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.23 | rootio-openssl | 3.3.0-r3 |
root.io debian 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | rootio-openssl | 1.1.1w-0+deb11u2 |
| 12 | rootio-openssl | 3.0.14-1~deb12u1 |
seal Red Hat 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 7 | openssl +1 | 1:1.0.2k-25.el7_9+sp999 |
| 7 | openssl +1 | 1:1.0.2k-26.el7_9+sp999 |
| 8 | openssl +1 | 1:1.1.1k-6.el8_5+sp999 |
seal debian 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| openssl +1 | 1.1.1w-0+deb11u2+sp999 | |
| openssl +1 | 3.0.16-1~deb12u1+sp999 |
ubuntu 5 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 20.04 | openssl | 1.1.1f-1ubuntu2.23 |
| 20.04-ESM | edk2 | affected |
| 20.04-ESM | openssl | 1.1.1f-1ubuntu2.23 |
| 22.04 | edk2 | 2022.02-3ubuntu0.22.04.4 |
| 22.04 | openssl | 3.0.2-0ubuntu1.17 |
| 24.04 | edk2 | 2024.02-2ubuntu0.6 |
2 more rows
wolfi 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| openssl | 3.3.1-r0 |
References
- access.redhat.com https://access.redhat.com/errata/RHSA-2024:9333
- access.redhat.com https://access.redhat.com/security/cve/CVE-2024-4741
- bugzilla.redhat.com https://bugzilla.redhat.com/2274020
- bugzilla.redhat.com https://bugzilla.redhat.com/2281029
- bugzilla.redhat.com https://bugzilla.redhat.com/2283757
- bugzilla.redhat.com https://bugzilla.redhat.com/2294581
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2274020
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2281029
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2283757
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2294581
Show all 34 references
- creativecommons.org https://creativecommons.org/licenses/by/4.0/
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-2511
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-4603
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-4741
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-5535
- errata.almalinux.org https://errata.almalinux.org/9/ALSA-2024-9333.html
- errata.rockylinux.org https://errata.rockylinux.org/RLSA-2024:9333
- github.com https://github.com/advisories/GHSA-6vgq-8qjq-h578
- github.com https://github.com/openssl/openssl/commit/704f725b96aa373ee45ecfb23f6abfe8be8d9177
- github.com https://github.com/openssl/openssl/commit/b3f0eb0a295f58f16ba43ba99dad70d4ee5c437d
- github.com https://github.com/openssl/openssl/commit/c88c3de51020c37e8706bf7a682a162593053aac
- github.com https://github.com/openssl/openssl/commit/e5093133c35ca82874ad83697af76f4b0f7e3bd8
- github.openssl.org https://github.openssl.org/openssl/extended-releases/commit/f7a045f3143fc6da2ee66bf52d8df04829590dd4
- linux.oracle.com https://linux.oracle.com/cve/CVE-2024-4741.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2026-50323.html
- lists.debian.org https://lists.debian.org/debian-lts-announce/2024/10/msg00033.html
- lists.debian.org https://lists.debian.org/debian-lts-announce/2024/11/msg00000.html
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2024-4741
- security.netapp.com https://security.netapp.com/advisory/ntap-20240621-0004
- security.netapp.com https://security.netapp.com/advisory/ntap-20240621-0004/
- ubuntu.com https://ubuntu.com/security/notices/USN-6937-1
- ubuntu.com https://ubuntu.com/security/notices/USN-7894-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2024-4741
- www.openssl.org https://www.openssl.org/news/secadv/20240528.txt
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.