CVE-2016-8619: Use After Free

Published Oct 25, 2016
·
Updated

In curl's implementation of the Kerberos authentication mechanism, the function readdata() in security.c is used to fill the necessary krb5 structures. When reading one of the length fields from the socket, it fails to ensure that the length parameter passed to realloc() is not set to 0.

This would lead to realloc() getting called with a zero size and when doing so realloc() returns NULL and frees the memory - in contrary to normal realloc() fails where it only returns NULL - causing libcurl to free the memory again in the error path.

This flaw could be triggered by a malicious or just otherwise ill-behaving server.

External References:

https://curl.haxx.se/docs/adv20161102E.html

Other sources

The function readdata() in security.c in curl before version 7.51.0 is vulnerable to memory double free.

MITRE

Affected Software

2 affected componentsFixes available
redhat/curl<7.51.0
7.51.0
haxx curl<7.51.0

Event History

Oct 25, 2016
Data Sourced
via Red Hat·08:22 AM
DescriptionSeverityAffected Software
Aug 1, 2018
CVE Published
via MITRE·06:00 AM
Data Sourced
via MITRE·06:00 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2016-8619?

CVE-2016-8619 is classified as a medium severity vulnerability that can lead to a memory double free issue in curl.

2

How do I fix CVE-2016-8619?

To fix CVE-2016-8619, upgrade to curl version 7.51.0 or later.

3

What versions of curl are affected by CVE-2016-8619?

CVE-2016-8619 affects all versions of curl prior to 7.51.0.

4

What is the impact of CVE-2016-8619 on systems using curl?

The impact of CVE-2016-8619 may result in application crashes or undefined behavior due to memory management issues.

5

Is CVE-2016-8619 related to Kerberos authentication in curl?

Yes, CVE-2016-8619 specifically affects curl's implementation of the Kerberos authentication mechanism.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203