CVE-2024-4741: Use After Free with SSL_free_buffers

Published May 29, 2024
·
Updated

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 SSLfreebuffers 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 SSLfreebuffers 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 SSLfreebuffers 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 SSLfreebuffers 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.

OpenSSL 1.0.2 is also not affected by this issue.

OpenSSL 3.3, 3.2, 3.1, 3.0 and 1.1.1 are vulnerable to this issue.

OpenSSL 3.3 users should upgrade to OpenSSL 3.3.1 once it is released.

OpenSSL 3.2 users should upgrade to OpenSSL 3.2.2 once it is released.

OpenSSL 3.1 users should upgrade to OpenSSL 3.1.6 once it is released.

OpenSSL 3.0 users should upgrade to OpenSSL 3.0.14 once it is released.

OpenSSL 1.1.1 users should upgrade to OpenSSL 1.1.1y once it is released (premium support customers only).

Due to the low severity of this issue we are not issuing new releases of OpenSSL at this time. The fix will be included in the next releases when they become available. The fix is also available in commit e5093133c3 (for 3.3), commit c88c3de510 (for 3.2), commit 704f725b96 (for 3.1) and commit b3f0eb0a29 (for 3.0) in the OpenSSL git repository. It is available to premium support customers in commit f7a045f314 (for 1.1.1).

This issue was reported on 10th April 2024 by William Ahern (Akamai). The fix was developed by Matt Caswell and Watson Ladd (Akamai).

Other sources

Issue summary: Calling the OpenSSL API function SSLfreebuffers 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 SSLfreebuffers 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 SSLfreebuffers 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 SSLfreebuffers 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 SSLfreebuffers 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.

— MITRE

Affected Software

116 affected componentsFixes available
F5 Traffix SDC=5.2.0, =5.1.0
debian/openssl
3.0.20-1~deb12u23.0.22-1~deb12u23.5.7-1~deb13u23.5.7-1~deb13u33.6.5-1
IBM Cloud Pak for Data System (Yosemite 1.0)<=11.3.1.2-IF1 - 11.3.1.2-IF2
ubuntu/openssl*
ubuntu/openssl*
ubuntu/edk2*
ubuntu/nodejs*
ubuntu/openssl*
ubuntu/openssl*
ubuntu/openssl*
ubuntu/edk2*
ubuntu/nodejs*
ubuntu/openssl*
ubuntu/openssl*
ubuntu/openssl<1.1.1f-1ubuntu2.23
1.1.1f-1ubuntu2.23
ubuntu/edk2*
ubuntu/openssl*
ubuntu/edk2<2022.02-3ubuntu0.22.04.4
2022.02-3ubuntu0.22.04.4
ubuntu/openssl<3.0.2-0ubuntu1.17
3.0.2-0ubuntu1.17
ubuntu/nodejs*
ubuntu/openssl*
ubuntu/openssl-fips*
ubuntu/openssl<3.0.2-0ubuntu1.17+Fips1
3.0.2-0ubuntu1.17+Fips1
ubuntu/openssl-fips*
ubuntu/edk2<2024.02-2ubuntu0.6
2024.02-2ubuntu0.6
ubuntu/openssl<3.0.13-0ubuntu3.2
3.0.13-0ubuntu3.2
ubuntu/openssl-fips<3.0.13-0ubuntu3.6+Fips1
3.0.13-0ubuntu3.6+Fips1
OpenSSL OpenSSL>=1.1.1<1.1.1y
OpenSSL OpenSSL>=3.0.0<3.0.14
OpenSSL OpenSSL>=3.1.0<3.1.6
OpenSSL OpenSSL>=3.2.0<3.2.2
OpenSSL OpenSSL=3.3.0
Debian Debian Linux=11.0
NetApp Active Iq Unified Manager Linux
NetApp Active Iq Unified Manager Vmware Vsphere
NetApp Management Services For Element Software And Netapp Hci
NetApp OnCommand Workflow Automation
NetApp ONTAP Select Deploy administration utility
NetApp Snapmanager Hyper-v
NetApp Brocade Fabric Operating System
All of the following
NetApp 8300 Firmware
NetApp 8300
All of the following
NetApp 8700 Firmware
NetApp 8700
All of the following
NetApp A400 Firmware
NetApp A400
All of the following
NetApp C400 Firmware
NetApp C400
All of the following
NetApp A250 Firmware
NetApp A250
All of the following
NetApp 500f Firmware
NetApp 500f
All of the following
NetApp C250 Firmware
NetApp C250
All of the following
NetApp A800 Firmware
NetApp A800
All of the following
NetApp C800 Firmware
NetApp C800
All of the following
NetApp A900 Firmware
NetApp A900
All of the following
NetApp 9500 Firmware
NetApp 9500
All of the following
NetApp C190 Firmware
NetApp C190
All of the following
NetApp A150 Firmware
NetApp A150
All of the following
NetApp A220 Firmware
NetApp A220
All of the following
NetApp Fas2720 Firmware
NetApp Fas2720
All of the following
NetApp Fas2750 Firmware
NetApp Fas2750
All of the following
NetApp Fas2820 Firmware
NetApp Fas2820
All of the following
NetApp H300s Firmware
NetApp H300s
All of the following
NetApp H500s Firmware
NetApp H500s
All of the following
NetApp H700s Firmware
NetApp H700s
All of the following
NetApp H410s Firmware
NetApp H410s
All of the following
NetApp H410c Firmware
NetApp H410c
All of the following
NetApp H610c Firmware
NetApp H610c
All of the following
NetApp H610s Firmware
NetApp H610s
All of the following
NetApp H615c Firmware
NetApp H615c
All of the following
NetApp A700s Firmware
NetApp A700s
All of the following
NetApp Bootstrap Os
NetApp Hci Compute Node
debian/openssl<3.0.14-1~deb12u1
3.0.14-1~deb12u1
debian/openssl<3.2.2-1
3.2.2-1
debian/openssl<3.2.2-1
3.2.2-1
redhat/openssl<3.3.1
3.3.1
redhat/openssl<3.2.2
3.2.2
redhat/openssl<3.1.6
3.1.6
redhat/openssl<3.0.14
3.0.14
redhat/openssl<1.1.1
1.1.1
All of the following
azurelinux/edk2<20240524git3e722403cd16-6
20240524git3e722403cd16-6
Microsoft Azure Linux=3.0
All of the following
azurelinux/hvloader<1.0.1-6
1.0.1-6
Microsoft CBL-Mariner=2.0
All of the following
azurelinux/openssl<1.1.1k-31
1.1.1k-31
Microsoft CBL-Mariner=2.0
alpine/openssl>=3.0.0<3.0.14-r0
3.0.14-r0
alpine/openssl>=3.1.0<3.1.6-r0
3.1.6-r0
alpine/openssl>=3.1.0<3.1.6-r0
3.1.6-r0
alpine/openssl>=3.2.0<3.3.0-r3
3.3.0-r3
alpine/openssl>=3.2.0<3.3.0-r3
3.3.0-r3
alpine/openssl>=3.2.0<3.3.0-r3
3.3.0-r3
alpine/openssl>=3.2.0<3.3.0-r3
3.3.0-r3
alpine/openssl>=3.2.0<3.3.0-r3
3.3.0-r3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/openssl to a version that resolves this vulnerability.

    Fixed in 3.0.20-1~deb12u2Fixed in 3.0.22-1~deb12u2Fixed in 3.5.7-1~deb13u2Fixed in 3.5.7-1~deb13u3Fixed in 3.6.5-1
  2. Upgrade

    Upgrade ubuntu/openssl to a version that resolves this vulnerability.

    Fixed in 1.1.1f-1ubuntu2.23
  3. Upgrade

    Upgrade ubuntu/edk2 to a version that resolves this vulnerability.

    Fixed in 2022.02-3ubuntu0.22.04.4
  4. Upgrade

    Upgrade ubuntu/openssl to a version that resolves this vulnerability.

    Fixed in 3.0.2-0ubuntu1.17
  5. Upgrade

    Upgrade ubuntu/openssl to a version that resolves this vulnerability.

    Fixed in 3.0.2-0ubuntu1.17+Fips1
  6. Upgrade

    Upgrade ubuntu/edk2 to a version that resolves this vulnerability.

    Fixed in 2024.02-2ubuntu0.6
  7. Upgrade

    Upgrade ubuntu/openssl to a version that resolves this vulnerability.

    Fixed in 3.0.13-0ubuntu3.2
  8. Upgrade

    Upgrade ubuntu/openssl-fips to a version that resolves this vulnerability.

    Fixed in 3.0.13-0ubuntu3.6+Fips1
  9. Upgrade

    Upgrade alpine/openssl to a version that resolves this vulnerability.

    Fixed in 3.0.14-r0
  10. Upgrade

    Upgrade alpine/openssl to a version that resolves this vulnerability.

    Fixed in 3.1.6-r0
  11. Upgrade

    Upgrade alpine/openssl to a version that resolves this vulnerability.

    Fixed in 3.3.0-r3
  12. Upgrade

    Upgrade debian/openssl to a version that resolves this vulnerability.

    Fixed in 3.0.14-1~deb12u1
  13. Upgrade

    Upgrade debian/openssl to a version that resolves this vulnerability.

    Fixed in 3.2.2-1
  14. Upgrade

    Upgrade redhat/openssl to a version that resolves this vulnerability.

    Fixed in 3.3.1
  15. Upgrade

    Upgrade redhat/openssl to a version that resolves this vulnerability.

    Fixed in 3.2.2
  16. Upgrade

    Upgrade redhat/openssl to a version that resolves this vulnerability.

    Fixed in 3.1.6
  17. Upgrade

    Upgrade redhat/openssl to a version that resolves this vulnerability.

    Fixed in 3.0.14
  18. Upgrade

    Upgrade redhat/openssl to a version that resolves this vulnerability.

    Fixed in 1.1.1
  19. Upgrade

    Upgrade azurelinux/hvloader to a version that resolves this vulnerability.

    Fixed in 1.0.1-6
  20. Upgrade

    Upgrade azurelinux/edk2 to a version that resolves this vulnerability.

    Fixed in 20240524git3e722403cd16-6
  21. Upgrade

    Upgrade azurelinux/openssl to a version that resolves this vulnerability.

    Fixed in 1.1.1k-31
  22. Upgrade

    Upgrade OpenSSL to a version that resolves this vulnerability.

    Fixed in 1.1.1y
  23. Upgrade

    Upgrade OpenSSL to a version that resolves this vulnerability.

    Fixed in 3.0.14
  24. Upgrade

    Upgrade OpenSSL to a version that resolves this vulnerability.

    Fixed in 3.1.6
  25. Upgrade

    Upgrade OpenSSL to a version that resolves this vulnerability.

    Fixed in 3.2.2
  26. Upgrade

    Upgrade OpenSSL to a version that resolves this vulnerability.

    Fixed in 3.3.1

Event History

May 28, 2024
CVE Published
via Ubuntu·12:00 AM
Data Sourced
via Ubuntu·12:00 AM
RemedyDescriptionSeverityAffected Software
Data Sourced
via OSV·12:00 AM
DescriptionSeverityAffected Software
Updated
via Ubuntu·12:00 AM
Affected Software
Updated
via Ubuntu·12:00 AM
RemedyDescriptionAffected Software
May 29, 2024
Data Sourced
via Red Hat·09:07 AM
DescriptionSeverityAffected Software
Jul 5, 2024
Advisory Published
via F5·07:02 PM
Data Sourced
via F5·07:02 PM
DescriptionSeverityWeaknessAffected Software
Nov 13, 2024
CVE Published
via MITRE·10:20 AM
Data Sourced
via MITRE·10:20 AM
DescriptionWeakness
Data Sourced
via NVD·11:15 AM
DescriptionWeakness
Data Sourced
via NVD·03:35 PM
Severity
Nov 14, 2024
Data Sourced
via Microsoft·08:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·08:00 AM
Affected Software
Updated
via Microsoft·08:00 AM
WeaknessAffected Software
Dec 4, 2024
Updated
via F5·01:07 AM
DescriptionAffected Software
Jan 23, 2025
Advisory Published
via F5·11:14 PM
Updated
via F5·11:14 PM
SeverityWeaknessAffected Software
Jun 28, 2025
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software
Aug 17, 2025
Updated
via IBM·12:00 AM
Affected Software
Jan 30, 2026
Updated
via IBM·12:00 AM
Affected Software
Aug 20, 2026
Updated
via IBM·12:00 AM
Affected Software
Oct 21, 2026
Updated
via IBM·12:00 AM
Affected Software
Oct 28, 2026
Data Sourced
via OSV·10:58 AM
Weakness
Nov 6, 2026
Updated
via NVD·10:17 PM
Severity
Event
via NVD·10:17 PM
Nov 7, 2026
Updated
via OSV·09:30 AM
Severity
Updated
via OSV·10:01 AM
Severity
Nov 8, 2026
Updated
via OSV·07:05 AM
Severity
Nov 9, 2026
Data Sourced
via NVD·05:27 PM
RemedyAffected Software
Nov 10, 2026
Updated
via OSV·09:30 AM
Affected Software
Nov 14, 2026
Updated
via Microsoft·09:12 AM
Weakness
Nov 17, 2026
Updated
via OSV·06:31 AM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2024-4741?

CVE-2024-4741 has the potential for severe consequences including data corruption, crashes, or execution of arbitrary code.

2

How do I fix CVE-2024-4741?

To fix CVE-2024-4741, update OpenSSL to the recommended versions specified in the advisory.

3

Which applications are affected by CVE-2024-4741?

Only applications that directly call the SSL_free_buffers function are affected by CVE-2024-4741.

4

What are the potential consequences of CVE-2024-4741?

The potential consequences of CVE-2024-4741 include corruption of valid data, application crashes, or the execution of arbitrary code.

5

Is CVE-2024-4741 a critical vulnerability?

Yes, CVE-2024-4741 is considered critical due to its potential to allow for arbitrary code execution.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203