CVE Vulnerabilities

CVE-2021-22945

Double Free

Published: Sep 23, 2021 | Modified: Mar 27, 2024
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

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, potentially leading to modification of unexpected memory locations.

Affected Software

Name Vendor Start Version End Version
Libcurl Haxx 7.73.0 (including) 7.78.0 (including)
Curl Ubuntu devel *
Curl Ubuntu hirsute *
Curl Ubuntu impish *
Curl Ubuntu jammy *
Curl Ubuntu trusty *
Curl Ubuntu upstream *
Curl Ubuntu xenial *

Potential Mitigations

References