Skip to content

CVE-2024-4741 Use After Free with SSL_free_buffers

CriticalCVSS 9.8 EPSS 3.3%
Published
Updated
Exploit status
No public exploit known
Technology
OpenSSLUbuntuDebian

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.

Affected products

ProductAffected versionsFixed in
cbl-mariner hvloader(CBL-Mariner:2.0) < 1.0.1-6 1.0.1-6
OpenSSL(CBL-Mariner:2.0) < 1.1.1k-31 1.1.1k-31
azure linux edk2(Azure Linux:3.0) < 20240524git3e722403cd16-6 20240524git3e722403cd16-6
debian/openssl(Debian:12) < 3.0.14-1~deb12u1 3.0.14-1~deb12u1
debian/openssl(Debian:12) = 3.0.10-1 No fix listed
debian/openssl(Debian:12) = 3.0.10-1~deb12u1 No fix listed
debian/openssl(Debian:12) = 3.0.11-1 No fix listed
debian/openssl(Debian:12) = 3.0.11-1~deb12u1 No fix listed
debian/openssl(Debian:12) = 3.0.11-1~deb12u2 No fix listed
debian/openssl(Debian:12) = 3.0.12-1 No fix listed
debian/openssl(Debian:12) = 3.0.12-2 No fix listed
debian/openssl(Debian:12) = 3.0.13-1~deb12u1 No fix listed
debian/openssl(Debian:12) = 3.0.13-1~deb12u2 No fix listed
debian/openssl(Debian:12) = 3.0.9-1 No fix listed
debian/openssl(Debian:13) < 3.2.2-1 3.2.2-1
debian/openssl(Debian:14) < 3.2.2-1 3.2.2-1
ubuntu/edk2(Ubuntu:22.04) < 2022.02-3ubuntu0.22.04.4 2022.02-3ubuntu0.22.04.4
ubuntu/openssl(Ubuntu:22.04) < 3.0.2-0ubuntu1.17 3.0.2-0ubuntu1.17
ubuntu/nodejs(Ubuntu:22.04) All versions No fix listed
OpenSSL >= 3.3.0, < 3.3.1 3.3.1
OpenSSL >= 3.2.0, < 3.2.2 3.2.2
OpenSSL >= 3.1.0, < 3.1.6 3.1.6
OpenSSL >= 3.0.0, < 3.0.14 3.0.14
OpenSSL >= 1.1.1, < 1.1.1y 1.1.1y
ubuntu/edk2(Ubuntu:24.04) < 2024.02-2ubuntu0.6 2024.02-2ubuntu0.6
Show 44 more
ProductAffected versionsFixed in
ubuntu/openssl(Ubuntu:24.04) < 3.0.13-0ubuntu3.2 3.0.13-0ubuntu3.2
OpenSSL = 3.3.0 No fix listed
debian linux = 11.0 No fix listed
netapp active iq unified manager All versions No fix listed
netapp management services for element software and netapp hci All versions No fix listed
netapp oncommand workflow automation All versions No fix listed
netapp ontap select deploy administration utility All versions No fix listed
netapp snapmanager All versions No fix listed
netapp brocade fabric operating system All versions No fix listed
netapp 8300 firmware All versions No fix listed
netapp 8700 firmware All versions No fix listed
netapp a400 firmware All versions No fix listed
netapp c400 firmware All versions No fix listed
netapp a250 firmware All versions No fix listed
netapp 500f firmware All versions No fix listed
netapp c250 firmware All versions No fix listed
netapp a800 firmware All versions No fix listed
netapp c800 firmware All versions No fix listed
netapp a900 firmware All versions No fix listed
netapp 9500 firmware All versions No fix listed
netapp c190 firmware All versions No fix listed
netapp a150 firmware All versions No fix listed
netapp a220 firmware All versions No fix listed
netapp fas2720 firmware All versions No fix listed
netapp fas2750 firmware All versions No fix listed
netapp fas2820 firmware All versions No fix listed
netapp h300s firmware All versions No fix listed
netapp h500s firmware All versions No fix listed
netapp h700s firmware All versions No fix listed
netapp h410s firmware All versions No fix listed
netapp h410c firmware All versions No fix listed
netapp h610c firmware All versions No fix listed
netapp h610s firmware All versions No fix listed
netapp h615c firmware All versions No fix listed
netapp a700s firmware All versions No fix listed
netapp bootstrap os All versions No fix listed
alpine/openssl(Alpine:v3.17) >= 3.0.0, < 3.0.14-r0 3.0.14-r0
alpine/openssl(Alpine:v3.18) >= 3.1.0, < 3.1.6-r0 3.1.6-r0
alpine/openssl(Alpine:v3.19) >= 3.1.0, < 3.1.6-r0 3.1.6-r0
alpine/openssl(Alpine:v3.20) >= 3.2.0, < 3.3.0-r3 3.3.0-r3
alpine/openssl(Alpine:v3.21) >= 3.2.0, < 3.3.0-r3 3.3.0-r3
alpine/openssl(Alpine:v3.22) >= 3.2.0, < 3.3.0-r3 3.3.0-r3
alpine/openssl(Alpine:v3.23) >= 3.2.0, < 3.3.0-r3 3.3.0-r3
alpine/openssl(Alpine:v3.24) >= 3.2.0, < 3.3.0-r3 3.3.0-r3

References