Bug 1642203 (CVE-2018-16840) - CVE-2018-16840 curl: Use-after-free when closing "easy" handle in Curl_close()
Summary: CVE-2018-16840 curl: Use-after-free when closing "easy" handle in Curl_close()
Status: NEW
Alias: CVE-2018-16840
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard: impact=low,public=20181031,reported=2...
Keywords: Security
Depends On: 1644556 1652660 1644555 1644557
Blocks: 1642204
TreeView+ depends on / blocked
 
Reported: 2018-10-24 01:51 UTC by Sam Fowler
Modified: 2019-06-08 23:41 UTC (History)
30 users (show)

(edit)
Clone Of:
(edit)
Last Closed:


Attachments (Terms of Use)

Description Sam Fowler 2018-10-24 01:51:43 UTC
Curl versions 7.59.0 to 7.61.1 are vulnerable to heap use-after-free flaw in 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.

Comment 1 Sam Fowler 2018-10-24 01:52:01 UTC
Acknowledgments:

Name: the Curl project
Upstream: Brian Carpenter (Geeknik Labs)

Comment 3 Sam Fowler 2018-10-31 07:02:42 UTC
Created curl tracking bugs for this issue:

Affects: fedora-all [bug 1644555]


Created mingw-curl tracking bugs for this issue:

Affects: epel-7 [bug 1644556]


Note You need to log in before you can comment on or make changes to this bug.