CVE-2016-8618: Double Free

Published Oct 25, 2016
·
Updated

The libcurl API function called curlmaprintf() before version 7.51.0 can be tricked into doing a double-free due to an unsafe sizet multiplication, on systems using 32 bit sizet variables.

Other sources

The libcurl API function called curlmaprintf() can be tricked into doing a double-free due to an unsafe sizet multiplication, on systems using 32 bit sizet variables. The function is also used internallty in numerous situations.

The function doubles an allocated memory area with realloc() and allows the size to wrap and become zero 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.

Systems with 64 bit versions of the sizet type are not affected by this issue.

This behavior is triggable using the publicly exposed function.

External References:

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

Red Hat

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:21 AM
DescriptionSeverityAffected Software
Jul 31, 2018
CVE Published
via MITRE·09:00 PM
Data Sourced
via MITRE·09:00 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2016-8618?

CVE-2016-8618 has a medium severity level due to its potential for causing a double-free vulnerability.

2

How do I fix CVE-2016-8618?

To fix CVE-2016-8618, update the libcurl library to version 7.51.0 or later.

3

What systems are affected by CVE-2016-8618?

CVE-2016-8618 affects systems using the libcurl API function 'curl_maprintf()' before version 7.51.0.

4

What could happen if CVE-2016-8618 is exploited?

If exploited, CVE-2016-8618 could lead to memory corruption, which might potentially allow an attacker to execute arbitrary code.

5

Are there any known exploits for CVE-2016-8618?

Yes, there are known vulnerabilities associated with CVE-2016-8618 that can be exploited on affected systems.

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