CVE Vulnerabilities

CVE-2021-22945

Double Free

Published: Sep 23, 2021 | Modified: Jun 09, 2025
CVSS 3.x
9.1
CRITICAL
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
CVSS 2.x
5.8 MEDIUM
AV:N/AC:M/Au:N/C:P/I:N/A:P
RedHat/V2
RedHat/V3
9.1 MODERATE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

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.

Weakness

The product calls free() twice on the same memory address.

Affected Software

NameVendorStart VersionEnd Version
LibcurlHaxx7.73.0 (including)7.78.0 (including)
CurlUbuntudevel*
CurlUbuntuhirsute*
CurlUbuntuimpish*
CurlUbuntujammy*
CurlUbuntutrusty*
CurlUbuntuupstream*
CurlUbuntuxenial*

Potential Mitigations

References