CVE-2024-4741 Use After Free with SSL_free_buffers

High 7.5 Published Updated

Attackers can trigger a use-after-free in OpenSSL's SSL_free_buffers function, potentially leading to arbitrary code execution or crashes in applications that explicitly call this rarely used API.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-4741?

CVE-2024-4741 is a high-severity use after free vulnerability in OpenSSL, published on 13 Nov 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

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.

Weakness: CWE-416

Which versions are affected by CVE-2024-4741?

Linux distribution packages (40)
openssl-1_1 SUSE:Enterprise Storage 7.1All versions1.1.1d-150200.11.91.1
openssl-1_1 SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSSAll versions1.1.1d-150200.11.91.1
openssl-1_1 SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSSAll versions1.1.1d-150200.11.91.1
openssl-1_1 SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOSAll versions1.1.1l-150400.7.69.1
openssl-3 SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOSAll versions3.0.8-150400.4.57.1
openssl-1_1 SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSSAll versions1.1.1l-150400.7.69.1
openssl-3 SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSSAll versions3.0.8-150400.4.57.1
openssl-1_1-livepatches SUSE:Linux Enterprise Live Patching 15 SP4All versions0.4-150400.3.11.1
openssl-1_1-livepatches SUSE:Linux Enterprise Live Patching 15 SP5All versions0.4-150500.6.8.1
openssl-1_1 SUSE:Linux Enterprise Micro 5.1All versions1.1.1d-150200.11.91.1
openssl-1_1 SUSE:Linux Enterprise Micro 5.2All versions1.1.1d-150200.11.91.1
openssl-1_1 SUSE:Linux Enterprise Micro 5.3All versions1.1.1l-150400.7.69.1
openssl-3 SUSE:Linux Enterprise Micro 5.3All versions3.0.8-150400.4.57.1
openssl-1_1 SUSE:Linux Enterprise Micro 5.4All versions1.1.1l-150400.7.69.1
openssl-3 SUSE:Linux Enterprise Micro 5.4All versions3.0.8-150400.4.57.1
openssl-1_1 SUSE:Linux Enterprise Micro 5.5All versions1.1.1l-150500.17.31.1
openssl-1_1 SUSE:Linux Enterprise Micro 5.5All versions1.1.1l-150500.17.31.1
openssl-1_1 SUSE:Linux Enterprise Module for Basesystem 15 SP5All versions1.1.1l-150500.17.31.1
openssl-3 SUSE:Linux Enterprise Module for Basesystem 15 SP5All versions3.0.8-150500.5.36.1
openssl-1_1 SUSE:Linux Enterprise Module for Basesystem 15 SP6All versions1.1.1w-150600.5.3.1
openssl-1_1 SUSE:Linux Enterprise Module for Development Tools 15 SP6All versions1.1.1w-150600.5.3.1
openssl-1_1 SUSE:Linux Enterprise Module for Legacy 15 SP6All versions1.1.1w-150600.5.3.1
openssl-1_1 SUSE:Linux Enterprise Server 12 SP5All versions1.1.1d-2.107.1
openssl-1_1 SUSE:Linux Enterprise Server 15 SP2-LTSSAll versions1.1.1d-150200.11.91.1
openssl-1_1 SUSE:Linux Enterprise Server 15 SP3-LTSSAll versions1.1.1d-150200.11.91.1
openssl-1_1 SUSE:Linux Enterprise Server 15 SP4-LTSSAll versions1.1.1l-150400.7.69.1
openssl-3 SUSE:Linux Enterprise Server 15 SP4-LTSSAll versions3.0.8-150400.4.57.1
openssl-1_1 SUSE:Linux Enterprise Server for SAP Applications 12 SP5All versions1.1.1d-2.107.1
openssl-1_1 SUSE:Linux Enterprise Server for SAP Applications 15 SP2All versions1.1.1d-150200.11.91.1
openssl-1_1 SUSE:Linux Enterprise Server for SAP Applications 15 SP3All versions1.1.1d-150200.11.91.1
openssl-1_1 SUSE:Linux Enterprise Server for SAP Applications 15 SP4All versions1.1.1l-150400.7.69.1
openssl-3 SUSE:Linux Enterprise Server for SAP Applications 15 SP4All versions3.0.8-150400.4.57.1
openssl-1_1 SUSE:Linux Enterprise Software Development Kit 12 SP5All versions1.1.1d-2.107.1
openssl-1_1 SUSE:Manager Proxy 4.3All versions1.1.1l-150400.7.69.1
openssl-3 SUSE:Manager Proxy 4.3All versions3.0.8-150400.4.57.1
openssl-1_1 SUSE:Manager Server 4.3All versions1.1.1l-150400.7.69.1
openssl-3 SUSE:Manager Server 4.3All versions3.0.8-150400.4.57.1
openssl-1_1 openSUSE:Leap 15.5All versions1.1.1l-150500.17.31.1
openssl-3 openSUSE:Leap 15.5All versions3.0.8-150500.5.36.1
openssl-1_1 openSUSE:Leap 15.6All versions1.1.1w-150600.5.3.1

How do I fix CVE-2024-4741?

Apply the vendor's patch.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2024-4741 being exploited?

There is no known exploitation of CVE-2024-4741 in the wild and no public exploit code.

Sources

Also known as ALPINE-CVE-2024-4741, AZL-42952, AZL-52910, AZL-52983, AZL-78564, BELL-CVE-2024-4741 and 21 more.

Is CVE-2024-4741 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free