First published: Wed Oct 31 2018(Updated: )
A heap use-after-free flaw was found in curl versions from 7.59.0 through 7.61.1 in the code related to closing an easy handle. When closing and cleaning up an 'easy' handle in the `Curl_close()` function, the library code first frees a struct (without nulling the pointer) and might then subsequently erroneously write to a struct field within that already freed struct.
Credit: secalert@redhat.com secalert@redhat.com
Affected Software | Affected Version | How to fix |
---|---|---|
Haxx Curl | >=7.59.0<=7.61.1 | |
Canonical Ubuntu Linux | =14.04 | |
Canonical Ubuntu Linux | =16.04 | |
Canonical Ubuntu Linux | =18.04 | |
Canonical Ubuntu Linux | =18.10 | |
ubuntu/curl | <7.61.0-1ubuntu2.2 | 7.61.0-1ubuntu2.2 |
debian/curl | 7.74.0-1.3+deb11u12 7.74.0-1.3+deb11u11 7.88.1-10+deb12u6 7.88.1-10+deb12u5 8.8.0-4 8.9.1-2 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
The vulnerability ID of this flaw is CVE-2018-16840.
The severity of CVE-2018-16840 is critical with a severity value of 9.8.
Curl versions from 7.59.0 through 7.61.1 are affected by CVE-2018-16840.
Upgrade to one of the recommended versions: 7.64.0-4+deb10u2, 7.64.0-4+deb10u7, 7.74.0-1.3+deb11u9, 7.74.0-1.3+deb11u10, 7.88.1-10+deb12u3, 7.88.1-10+deb12u4, or 8.4.0-2.
Yes, you can find additional references for CVE-2018-16840 at the following links: [Reference 1](https://curl.haxx.se/docs/CVE-2018-16840.html), [Reference 2](https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16840), [Reference 3](https://github.com/curl/curl/commit/81d135d67155c5295b1033679c606165d4e28f3f).