PT-2016-7524 · Curl+3 · Libcurl+3

Andrej Nemec

·

Published

2016-11-02

·

Updated

2026-05-18

·

CVE-2016-8618

CVSS v3.1

9.8

Critical

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions libcurl versions prior to 7.51.0
Description The issue arises from an unsafe size t multiplication in the curl maprintf() function, which can be tricked into doing a double-free. This occurs on systems using 32-bit size t variables. The function is used internally in numerous situations and can double an allocated memory area with realloc(), allowing the size to wrap and become zero. When this happens, realloc() returns NULL and frees the memory. If this error occurs, libcurl attempts to free the memory again, resulting in a double-free. Systems with 64-bit versions of the size t type are not affected.
Recommendations For versions prior to 7.51.0, consider disabling the curl maprintf() function as a temporary workaround until a patch is available. Restrict the use of the curl maprintf() function to minimize the risk of exploitation. Avoid using the curl maprintf() function in situations where it may be triggered by an unsafe size t multiplication. At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Double Free

Use After Free

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALT-PU-2016-2231
CLEANSTART-2026-AY18527
CLEANSTART-2026-BW46578
CLEANSTART-2026-DI23929
CLEANSTART-2026-LQ42192
CLEANSTART-2026-OF85770
CVE-2016-8618
DLA-711-1
DSA-3705-1
MGASA-2018-0053
OPENSUSE-SU-2016_2768-1
OPENSUSE-SU-2024:10303-1
RHSA-2018:3558
SUSE-SU-2016:2699-1
SUSE-SU-2016:2700-1
SUSE-SU-2016:2714-1
SUSE-SU-2017:2699-1
SUSE-SU-2017:2700-1
USN-3123-1

Affected Products

Alt Linux
Suse
Ubuntu
Libcurl