PT-2016-7525 · Curl+3 · Curl+3

Andrej Nemec

·

Published

2016-11-02

·

Updated

2026-05-18

·

CVE-2016-8619

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 curl versions prior to 7.51.0
Description The issue arises from the read data() function in security.c, which is used in curl's implementation of the Kerberos authentication mechanism. This function fails to ensure that the length parameter passed to realloc() is not set to 0 when reading length fields from the socket. As a result, realloc() may be called with a zero size, returning NULL and freeing the memory. In the error path, libcurl then attempts to free the memory again, leading to a double free of memory. This flaw could be triggered by a malicious or ill-behaving server.
Recommendations For versions prior to 7.51.0, update to version 7.51.0 or later to resolve the issue. As a temporary workaround, consider disabling the read data() function in security.c until a patch is available. Restrict access to the Kerberos authentication mechanism to minimize the risk of exploitation. Avoid using the read data() function in the affected API endpoint until the issue is resolved.

Fix

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-8619
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
Curl