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   
(Show other bugs)
Version: unspecified
Hardware: All 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 1644557 1652660 1644555
Blocks: 1642204
TreeView+ depends on / blocked
 
Reported: 2018-10-24 01:51 UTC by Sam Fowler
Modified: 2018-11-23 02:32 UTC (History)
29 users (show)

Fixed In Version: curl 7.62.0
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


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.