Use After Free Affecting curl package, versions <7.62.0-r0
Threat Intelligence
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-ALPINE320-CURL-7008608
- published 23 May 2024
- disclosed 31 Oct 2018
Introduced: 31 Oct 2018
CVE-2018-16840 Open this link in a new tabHow to fix?
Upgrade Alpine:3.20
curl
to version 7.62.0-r0 or higher.
NVD Description
Note: Versions mentioned in the description apply only to the upstream curl
package and not the curl
package as distributed by Alpine
.
See How to fix?
for Alpine:3.20
relevant fixed versions and status.
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.
References
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-16840
- https://security-tracker.debian.org/tracker/CVE-2018-16840
- https://security.gentoo.org/glsa/201903-03
- https://github.com/curl/curl/commit/81d135d67155c5295b1033679c606165d4e28f3f
- https://curl.haxx.se/docs/CVE-2018-16840.html
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16840
- http://www.securitytracker.com/id/1042013
- http://people.ubuntu.com/~ubuntu-security/cve/CVE-2018-16840
- https://usn.ubuntu.com/3805-1/