CVE-2021-22945
published critical CVSS 3.1 · 9.1curl: use-after-free and double-free in MQTT sending
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | https://github.com/curl/curlcurl 7.73.0 to and including 7.78.0 | 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 |
| Amazon Linux | AL2 | Release evaluationALAS2-2021-1724 | Fixed | Not stated | Amazon Linux assessment |
| Alpine Linux | edge | curl | Fixed | 7.79.0-r0 | Package fix record |
| Debian | bullseye | curl | Advisory build | 7.74.0-1.3+deb11u2 | DSA-5197-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | curlaarch64 | Advisory build | 7.79.1-1.1 | OPENSUSE-SU-2024:10582-1 |
Show 39 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 |
| Amazon Linux | AL2 | curlaarch64 | Listed in advisory | Not stated | ALAS2-2021-1724 |
| Alpine Linux | v3.11 | curl | Fixed | 7.79.0-r0 | Package fix record |
| Alpine Linux | v3.12 | curl | Fixed | 7.79.0-r0 | Package fix record |
| Alpine Linux | v3.13 | curl | Fixed | 7.79.0-r0 | Package fix record |
| Alpine Linux | v3.14 | curl | Fixed | 7.79.0-r0 | Package fix record |
| Alpine Linux | v3.15 | curl | Fixed | 7.79.0-r0 | Package fix record |
| Alpine Linux | v3.16 | curl | Fixed | 7.79.0-r0 | Package fix record |
| Alpine Linux | v3.17 | curl | Fixed | 7.79.0-r0 | Package fix record |
| Alpine Linux | v3.18 | curl | Fixed | 7.79.0-r0 | Package fix record |
| Alpine Linux | v3.19 | curl | Fixed | 7.79.0-r0 | Package fix record |
| Alpine Linux | v3.20 | curl | Fixed | 7.79.0-r0 | Package fix record |
| Alpine Linux | v3.21 | curl | Fixed | 7.79.0-r0 | Package fix record |
| Alpine Linux | v3.22 | curl | Fixed | 7.79.0-r0 | Package fix record |
| Alpine Linux | v3.23 | curl | Fixed | 7.79.0-r0 | Package fix record |
| Alpine Linux | v3.24 | curl | Fixed | 7.79.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 |
| Amazon Linux | AL2 | curli686 | Listed in advisory | Not stated | ALAS2-2021-1724 |
| Amazon Linux | AL2 | curlsrc | Listed in advisory | Not stated | ALAS2-2021-1724 |
| Amazon Linux | AL2 | curlx86_64 | Listed in advisory | Not stated | ALAS2-2021-1724 |
Description
When sending data to an MQTT server, libcurl <= 7.73.0 and 7.78.0 could in some circumstances erroneously keep a pointer to an already freed memory area and both use that again in a subsequent call to send data and also free it *again*.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.1 / 10
- Severity
- critical
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
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 | curl 7.73.0 to and including 7.78.0 (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
2- CWE-415 Double Free (CWE-415)
- CWE-415 CWE-415 Double Free
References
12- 20220314 APPLE-SA-2022-03-14-4 macOS Monterey 12.3 http://seclists.org/fulldisclosure/2022/Mar/29
- 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/pdf/ssa-389290.pdf
- https://hackerone.com/reports/1269242
- FEDORA-2021-1d24845e93 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/APOAK4X73EJTAPTSVT7IRVDMUWVXNWGD/
- FEDORA-2021-fc96a3a749 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RWLEC6YVEM2HWUBX67SDGPSY4CQB72OE/
- GLSA-202212-01 https://security.gentoo.org/glsa/202212-01
- https://security.netapp.com/advisory/ntap-20211029-0003/
- https://support.apple.com/kb/HT213183
- DSA-5197 https://www.debian.org/security/2022/dsa-5197
- https://www.oracle.com/security-alerts/cpuoct2021.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
- f9b49562a60b5596707c0f4788c91eb83713f53a2ebe9acda578dab6913f0157
- Ingested
- 14 Oct 2026, 14:23:10 UTC
- Source record
- Official CVE record