CURL-CVE-2016-8619

vendorUSosv

double free in krb5 code

view advisory published 2016-11-02Licence: per source

In curl's implementation of the Kerberos authentication mechanism, the function `read_data()` 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 otherwise ill-behaving server.

01

describes (1)

Related CVEs.

IDseverity exploitable
CVE-2016-8619UScritical9.8—
The function `read_data()` in security.c in curl before version 7.51.0 is vulnerable to memory double free.
scry

Advisories like this name the exposed products attackers go after on your perimeter. See what is exposed on your perimeter with a free passive scan.

Free scan