CVE-2021-22901
publishedcurl: Use-after-free in TLS session handling when using OpenSSL TLS backend
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | https://github.com/curl/curl7.75.0 through 7.76.1 | Affected | Not stated | hackerone |
| Siemens | — | SIMATIC S7-1500 CPU 1518-4 PN/DP MFPV3.1.0 to < V3.1.5 · Other versions: unknown | Affected | Not stated | siemens-SADP |
| Siemens | — | SIMATIC S7-1500 CPU 1518-4 PN/DP MFPV3.1.0 to < V3.1.5 · Other versions: unknown | Affected | Not stated | siemens-SADP |
| Siemens | — | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFPV3.1.0 to < V3.1.5 · Other versions: unknown | Affected | Not stated | siemens-SADP |
| Alpine Linux | edge | curl | Fixed | 7.77.0-r0 | Package fix record |
| SUSE / openSUSE | openSUSE-Tumbleweed | curlaarch64 | Advisory build | 7.79.1-1.1 | OPENSUSE-SU-2024:10582-1 |
| Alpine Linux | v3.12 | curl | Fixed | 7.77.0-r0 | Package fix record |
| Alpine Linux | v3.13 | curl | Fixed | 7.77.0-r0 | Package fix record |
Show 32 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Siemens | — | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFPV3.1.0 to < V3.1.5 · Other versions: unknown | Affected | Not stated | siemens-SADP |
| Siemens | — | SIPLUS S7-1500 CPU 1518-4 PN/DP MFPV3.1.0 to < V3.1.5 · Other versions: unknown | Affected | Not stated | siemens-SADP |
| Alpine Linux | v3.14 | curl | Fixed | 7.77.0-r0 | Package fix record |
| Alpine Linux | v3.15 | curl | Fixed | 7.77.0-r0 | Package fix record |
| Alpine Linux | v3.16 | curl | Fixed | 7.77.0-r0 | Package fix record |
| Alpine Linux | v3.17 | curl | Fixed | 7.77.0-r0 | Package fix record |
| Alpine Linux | v3.18 | curl | Fixed | 7.77.0-r0 | Package fix record |
| Alpine Linux | v3.19 | curl | Fixed | 7.77.0-r0 | Package fix record |
| Alpine Linux | v3.20 | curl | Fixed | 7.77.0-r0 | Package fix record |
| Alpine Linux | v3.21 | curl | Fixed | 7.77.0-r0 | Package fix record |
| Alpine Linux | v3.22 | curl | Fixed | 7.77.0-r0 | Package fix record |
| Alpine Linux | v3.23 | curl | Fixed | 7.77.0-r0 | Package fix record |
| Alpine Linux | v3.24 | curl | Fixed | 7.77.0-r0 | Package fix record |
| SUSE / openSUSE | openSUSE-Tumbleweed | curlppc64le | Advisory build | 7.79.1-1.1 | OPENSUSE-SU-2024:10582-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | curls390x | Advisory build | 7.79.1-1.1 | OPENSUSE-SU-2024:10582-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | curlx86_64 | Advisory build | 7.79.1-1.1 | OPENSUSE-SU-2024:10582-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libcurl-develaarch64 | Advisory build | 7.79.1-1.1 | OPENSUSE-SU-2024:10582-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libcurl-develppc64le | Advisory build | 7.79.1-1.1 | OPENSUSE-SU-2024:10582-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libcurl-devels390x | Advisory build | 7.79.1-1.1 | OPENSUSE-SU-2024:10582-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libcurl-develx86_64 | Advisory build | 7.79.1-1.1 | OPENSUSE-SU-2024:10582-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libcurl-devel-32bitaarch64 | Advisory build | 7.79.1-1.1 | OPENSUSE-SU-2024:10582-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libcurl-devel-32bitppc64le | Advisory build | 7.79.1-1.1 | OPENSUSE-SU-2024:10582-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libcurl-devel-32bits390x | Advisory build | 7.79.1-1.1 | OPENSUSE-SU-2024:10582-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libcurl-devel-32bitx86_64 | Advisory build | 7.79.1-1.1 | OPENSUSE-SU-2024:10582-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libcurl4aarch64 | Advisory build | 7.79.1-1.1 | OPENSUSE-SU-2024:10582-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libcurl4ppc64le | Advisory build | 7.79.1-1.1 | OPENSUSE-SU-2024:10582-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libcurl4s390x | Advisory build | 7.79.1-1.1 | OPENSUSE-SU-2024:10582-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libcurl4x86_64 | Advisory build | 7.79.1-1.1 | OPENSUSE-SU-2024:10582-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libcurl4-32bitaarch64 | Advisory build | 7.79.1-1.1 | OPENSUSE-SU-2024:10582-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libcurl4-32bitppc64le | Advisory build | 7.79.1-1.1 | OPENSUSE-SU-2024:10582-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libcurl4-32bits390x | Advisory build | 7.79.1-1.1 | OPENSUSE-SU-2024:10582-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libcurl4-32bitx86_64 | Advisory build | 7.79.1-1.1 | OPENSUSE-SU-2024:10582-1 |
Description
curl 7.75.0 through 7.76.1 suffers from a use-after-free vulnerability resulting in already freed memory being used when a TLS 1.3 session ticket arrives over a connection. A malicious server can use this in rare unfortunate circumstances to potentially reach remote code execution in the client. When libcurl at run-time sets up support for TLS 1.3 session tickets on a connection using OpenSSL, it stores pointers to the transfer in-memory object for later retrieval when a session ticket arrives. If the connection is used by multiple transfers (like with a reused HTTP/1.1 connection or multiplexed HTTP/2 connection) that first transfer object might be freed before the new session is established on that connection and then the function will access a memory buffer that might be freed. When using that memory, libcurl might even call a function pointer in the object, making it possible for a remote code execution if the server could somehow manage to get crafted memory content into the correct place in memory.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | https://github.com/curl/curl | 7.75.0 through 7.76.1 (affected) | hackerone · cna |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | V3.1.0 to < V3.1.5 (affected · custom)Default: unknown | siemens-SADP · adp |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | V3.1.0 to < V3.1.5 (affected · custom)Default: unknown | siemens-SADP · adp |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | V3.1.0 to < V3.1.5 (affected · custom)Default: unknown | siemens-SADP · adp |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | V3.1.0 to < V3.1.5 (affected · custom)Default: unknown | siemens-SADP · adp |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | V3.1.0 to < V3.1.5 (affected · custom)Default: unknown | siemens-SADP · adp |
Weaknesses
1- CWE-416 Use After Free (CWE-416)
References
13- https://cert-portal.siemens.com/productcert/html/ssa-389290.html
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html
- https://cert-portal.siemens.com/productcert/html/ssa-732250.html
- https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf
- https://cert-portal.siemens.com/productcert/pdf/ssa-732250.pdf
- https://curl.se/docs/CVE-2021-22901.html
- https://github.com/curl/curl/commit/7f4a9a9b2a49547eae24d2e19bc5c346e9026479
- https://hackerone.com/reports/1180380
- https://security.netapp.com/advisory/ntap-20210723-0001/
- https://security.netapp.com/advisory/ntap-20210727-0007/
- https://www.oracle.com//security-alerts/cpujul2021.html
- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://www.oracle.com/security-alerts/cpujan2022.html
Provider assertions
4hackerone · cna
siemens-SADP · adp
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 11382cc4c198c8acb8e302798a435e76c6006de144b73234f3e6e6a8289c7a41
- Ingested
- 14 Oct 2026, 14:23:10 UTC
- Source record
- Official CVE record