CVE-2024-4741Use After Free with SSL_free_buffers
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.
What to do
Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.
Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | edk2 | Not affected vulnerable_code_not_present | ||
| Ubuntu 26.04 | nodejs | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | edk2 | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | nodejs | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | edk2 | Fixed | 2024.02-2ubuntu0.6 | UBUNTU-CVE-2024-4741 |
| Ubuntu 24.04 | nodejs | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | openssl | Fixed | 3.0.13-0ubuntu3.2 | UBUNTU-CVE-2024-4741 |
| Ubuntu 22.04 | edk2 | Fixed | 2022.02-3ubuntu0.22.04.4 | UBUNTU-CVE-2024-4741 |
| Ubuntu 22.04 | nodejs | Fix pending | UBUNTU-CVE-2024-4741 | |
| Ubuntu 22.04 | openssl | Fixed | 3.0.2-0ubuntu1.17 | UBUNTU-CVE-2024-4741 |
| Ubuntu 20.04 | edk2 | Fix pending | UBUNTU-CVE-2024-4741 | |
| Ubuntu 20.04 | openssl | Fixed | 1.1.1f-1ubuntu2.23 | UBUNTU-CVE-2024-4741 |
| Ubuntu 18.04 | edk2 | Fix pending | UBUNTU-CVE-2024-4741 | |
| Ubuntu 18.04 | nodejs | Fix pending | UBUNTU-CVE-2024-4741 | |
| Ubuntu 18.04 | openssl | Fix pending | UBUNTU-CVE-2024-4741 | |
| Ubuntu 16.04 | edk2 | Fix pending | UBUNTU-CVE-2024-4741 | |
| Ubuntu 16.04 | nodejs | Fix pending | UBUNTU-CVE-2024-4741 | |
| Ubuntu 16.04 | openssl | Fix pending | UBUNTU-CVE-2024-4741 | |
| Ubuntu 14.04 | openssl | Fix pending | UBUNTU-CVE-2024-4741 | |
| Debian 14 | openssl | Fixed | 3.2.2-1 | DEBIAN-CVE-2024-4741 |
| Debian 13 | openssl | Fixed | 3.2.2-1 | DEBIAN-CVE-2024-4741 |
| Debian 12 | openssl | Fixed | 3.0.14-1~deb12u1 | DEBIAN-CVE-2024-4741 |
| Red Hat Enterprise Linux 10 | edk2 | Fixed | 0:20260221-7.el10 | RHSA-2026:97212 |
| Red Hat Enterprise Linux 10 | edk2-aarch64 | Fixed | 0:20260221-7.el10 | RHSA-2026:97212 |
| Red Hat Enterprise Linux 10 | edk2-ovmf | Fixed | 0:20260221-7.el10 | RHSA-2026:97212 |
| Red Hat Enterprise Linux 10 | edk2-tools | Fixed | 0:20260221-7.el10 | RHSA-2026:97212 |
| Red Hat Enterprise Linux 10 | edk2-tools-doc | Fixed | 0:20260221-7.el10 | RHSA-2026:97212 |
| Red Hat Enterprise Linux 10 | mokutil | Not affected | ||
| Red Hat Enterprise Linux 10 | openssl | Not affected | ||
| Red Hat Enterprise Linux 10 | openssl-devel | Not affected | ||
| Red Hat Enterprise Linux 10 | openssl-libs | Not affected | ||
| Red Hat Enterprise Linux 10 | openssl-perl | Not affected | ||
| Red Hat Enterprise Linux 10 | shim-aa64 | Not affected | ||
| Red Hat Enterprise Linux 10 | shim-x64 | Not affected | ||
| Red Hat Enterprise Linux 9 | compat-openssl11 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | edk2 | Not affected | ||
| Red Hat Enterprise Linux 9 | edk2-aarch64 | Not affected | ||
| Red Hat Enterprise Linux 9 | edk2-ovmf | Not affected | ||
| Red Hat Enterprise Linux 9 | edk2-tools | Not affected | ||
| Red Hat Enterprise Linux 9 | edk2-tools-doc | Not affected | ||
| Red Hat Enterprise Linux 9 | openssl | Fixed | 1:3.2.2-6.el9_5 | RHSA-2024:9333 |
| Red Hat Enterprise Linux 9 | openssl-devel | Fixed | 1:3.2.2-6.el9_5 | RHSA-2024:9333 |
| Red Hat Enterprise Linux 9 | openssl-libs | Fixed | 1:3.2.2-6.el9_5 | RHSA-2024:9333 |
| Red Hat Enterprise Linux 9 | openssl-perl | Fixed | 1:3.2.2-6.el9_5 | RHSA-2024:9333 |
| Red Hat Enterprise Linux 9 | shim | Not affected | ||
| Red Hat Enterprise Linux 9 | shim-aa64 | Not affected | ||
| Red Hat Enterprise Linux 9 | shim-unsigned-aarch64 | Not affected | ||
| Red Hat Enterprise Linux 9 | shim-unsigned-x64 | Not affected | ||
| Red Hat Enterprise Linux 9 | shim-x64 | Not affected | ||
| Red Hat Enterprise Linux 8 | compat-openssl10 | Not affected | ||
| Red Hat Enterprise Linux 8 | edk2 | Not affected | ||
| Red Hat Enterprise Linux 8 | edk2-aarch64 | Not affected | ||
| Red Hat Enterprise Linux 8 | edk2-ovmf | Not affected | ||
| Red Hat Enterprise Linux 8 | mingw-openssl | Not affected | ||
| Red Hat Enterprise Linux 8 | mingw32-openssl | Not affected | ||
| Red Hat Enterprise Linux 8 | mingw64-openssl | Not affected | ||
| Red Hat Enterprise Linux 8 | openssl | Fixed | 1:1.1.1k-16.el8_6 | RHSA-2026:26275 |
| Red Hat Enterprise Linux 8 | openssl-devel | Fixed | 1:1.1.1k-16.el8_6 | RHSA-2026:26275 |
| Red Hat Enterprise Linux 8 | openssl-libs | Fixed | 1:1.1.1k-16.el8_6 | RHSA-2026:26275 |
| Red Hat Enterprise Linux 8 | openssl-perl | Fixed | 1:1.1.1k-16.el8_6 | RHSA-2026:26275 |
| Red Hat Enterprise Linux 8 | shim | Not affected | ||
| Red Hat Enterprise Linux 8 | shim-aa64 | Not affected | ||
| Red Hat Enterprise Linux 8 | shim-ia32 | Not affected | ||
| Red Hat Enterprise Linux 8 | shim-unsigned-x64 | Not affected | ||
| Red Hat Enterprise Linux 8 | shim-x64 | Not affected | ||
| Red Hat Enterprise Linux 7 | AAVMF | Not affected | ||
| Red Hat Enterprise Linux 7 | OVMF | Not affected | ||
| Red Hat Enterprise Linux 7 | openssl | Not affected | ||
| Red Hat Enterprise Linux 7 | openssl-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | openssl-libs | Not affected | ||
| Red Hat Enterprise Linux 7 | openssl-perl | Not affected | ||
| Red Hat Enterprise Linux 7 | openssl-static | Not affected | ||
| Red Hat Enterprise Linux 7 | ovmf | Not affected | ||
| Red Hat Enterprise Linux 6 | openssl | Not affected | ||
| Red Hat Enterprise Linux 6 | openssl-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | openssl-perl | Not affected | ||
| Red Hat Enterprise Linux 6 | openssl-static | Not affected | ||
| AlmaLinux 10 | edk2-aarch64 | Fixed | 20260221-7.el10.alma.1 | ALSA-2026:97212 |
| AlmaLinux 10 | edk2-ovmf | Fixed | 20260221-7.el10.alma.1 | ALSA-2026:97212 |
| AlmaLinux 10 | edk2-tools | Fixed | 20260221-7.el10.alma.1 | ALSA-2026:97212 |
| AlmaLinux 10 | edk2-tools-doc | Fixed | 20260221-7.el10.alma.1 | ALSA-2026:97212 |
| AlmaLinux 9 | openssl | Fixed | 1:3.2.2-6.el9_5 | ALSA-2024:9333 |
| AlmaLinux 9 | openssl-devel | Fixed | 1:3.2.2-6.el9_5 | ALSA-2024:9333 |
| AlmaLinux 9 | openssl-libs | Fixed | 1:3.2.2-6.el9_5 | ALSA-2024:9333 |
| AlmaLinux 9 | openssl-perl | Fixed | 1:3.2.2-6.el9_5 | ALSA-2024:9333 |
| AlmaLinux 8 | openssl | Fixed | 1:1.1.1k-16.el8_6 | ALSA-2026:26275 |
| AlmaLinux 8 | openssl-devel | Fixed | 1:1.1.1k-16.el8_6 | ALSA-2026:26275 |
| AlmaLinux 8 | openssl-libs | Fixed | 1:1.1.1k-16.el8_6 | ALSA-2026:26275 |
| AlmaLinux 8 | openssl-perl | Fixed | 1:1.1.1k-16.el8_6 | ALSA-2026:26275 |
| Rocky Linux 10 | edk2-aarch64 | Fixed | 0:20260221-7.el10 | RLSA-2026:97212 |
| Rocky Linux 10 | edk2-ovmf | Fixed | 0:20260221-7.el10 | RLSA-2026:97212 |
| Rocky Linux 10 | edk2-tools | Fixed | 0:20260221-7.el10 | RLSA-2026:97212 |
| Rocky Linux 10 | edk2-tools-doc | Fixed | 0:20260221-7.el10 | RLSA-2026:97212 |
| Rocky Linux 9 | openssl | Fixed | 1:3.2.2-6.el9_5.1 | RLSA-2024:9333 |
| Rocky Linux 9 | openssl-fips-provider | Fixed | 0:3.0.7-6.el9_5 | RLSA-2024:9333 |
| Rocky Linux 8 | openssl | Fixed | 1:1.1.1k-16.el8_10 | RLSA-2026:26275 |
| Alpine Linux 3.24 | openssl | Fixed | 3.3.0-r3 | ALPINE-CVE-2024-4741 |
| Alpine Linux 3.23 | openssl | Fixed | 3.3.0-r3 | ALPINE-CVE-2024-4741 |
| Alpine Linux 3.22 | openssl | Fixed | 3.3.0-r3 | ALPINE-CVE-2024-4741 |
| Alpine Linux 3.21 | openssl | Fixed | 3.3.0-r3 | ALPINE-CVE-2024-4741 |
| Alpine Linux 3.20 | openssl | Fixed | 3.3.0-r3 | ALPINE-CVE-2024-4741 |
| Alpine Linux 3.19 | openssl | Fixed | 3.1.6-r0 | ALPINE-CVE-2024-4741 |
| Alpine Linux 3.18 | openssl | Fixed | 3.1.6-r0 | ALPINE-CVE-2024-4741 |
| Alpine Linux 3.17 | openssl | Fixed | 3.0.14-r0 | ALPINE-CVE-2024-4741 |
What the vendor says
As published in the CVE record by openssl, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- OpenSSL: affected: 3.3.0 to before 3.3.1, 3.2.0 to before 3.2.2, 3.1.0 to before 3.1.6, 3.0.0 to before 3.0.14, 1.1.1 to before 1.1.1y; fixed in
3.3.1,3.2.2,3.1.6,3.0.14,1.1.1y
Vendor advisories:
- https://www.openssl.org/news/secadv/20240528.txt (vendor-advisory)
- https://github.com/openssl/openssl/commit/e5093133c35ca82874ad83697af76f4b0f7e3bd8 (patch)
- https://github.com/openssl/openssl/commit/c88c3de51020c37e8706bf7a682a162593053aac (patch)
- https://github.com/openssl/openssl/commit/704f725b96aa373ee45ecfb23f6abfe8be8d9177 (patch)
- https://github.com/openssl/openssl/commit/b3f0eb0a295f58f16ba43ba99dad70d4ee5c437d (patch)
- https://github.openssl.org/openssl/extended-releases/commit/f7a045f3143fc6da2ee66bf52d8df… (patch)
References
- https://www.openssl.org/news/secadv/20240528.txt
- https://github.com/openssl/openssl/commit/e5093133c35ca82874ad83697af76f4b0f7e3bd8
- https://github.com/openssl/openssl/commit/c88c3de51020c37e8706bf7a682a162593053aac
- https://github.com/openssl/openssl/commit/704f725b96aa373ee45ecfb23f6abfe8be8d9177
- https://github.com/openssl/openssl/commit/b3f0eb0a295f58f16ba43ba99dad70d4ee5c437d
- https://github.openssl.org/openssl/extended-releases/commit/f7a045f3143fc6da2ee66bf52d8df04829590dd4
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.