Skip to content
OpenAdvisories
Critical · 9.1 CVE-2021-22945 EUVD-2021-10073GHSA-22mx-9r92-42g8

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 free…

Published Sep 23, 2021 · Updated Oct 14, 2026 · Assigned by hackerone

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*.

Affected products

VendorProductAffectedFixed
— https://github.com/curl/curl curl 7.73.0 to and including 7.78.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 curl 7.79.1-1 —
Debian 13 curl 7.79.1-1 —
Debian 12 curl 7.79.1-1 —
Debian 11 curl 7.74.0-1.3+deb11u2 DSA-5197-1
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS curl 7.74.0-1.3ubuntu2 —
Ubuntu 20.04 LTS curl 7.68.0-1ubuntu2.7 USN-5079-1
Ubuntu 18.04 LTS curl 7.58.0-2ubuntu3.15 USN-5079-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed curl 7.79.1-1.1 openSUSE-SU-2024:10582-1
ReleasePackageFixed inAdvisory
Alpine v3.24 curl 7.79.0-r0 —
Alpine v3.23 curl 7.79.0-r0 —
Alpine v3.22 curl 7.79.0-r0 —
Alpine v3.21 curl 7.79.0-r0 —
Alpine v3.20 curl 7.79.0-r0 —
Show 9 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 curl 7.79.0-r0 —
Alpine v3.18 curl 7.79.0-r0 —
Alpine v3.17 curl 7.79.0-r0 —
Alpine v3.16 curl 7.79.0-r0 —
Alpine v3.15 curl 7.79.0-r0 —
Alpine v3.14 curl 7.79.0-r0 —
Alpine v3.13 curl 7.79.0-r0 —
Alpine v3.12 curl 7.79.0-r0 —
Alpine v3.11 curl 7.79.0-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 curl +2 7.79.1-1.amzn2.0.1 ALAS2-2021-1724

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) curl 7.82.0-1 —

Advisories 12

References