Bug 1461321 (CVE-2017-9502) - CVE-2017-9502 curl: URL file scheme drive letter buffer overflow
Summary: CVE-2017-9502 curl: URL file scheme drive letter buffer overflow
Keywords:
Status: CLOSED NOTABUG
Alias: CVE-2017-9502
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-06-14 08:27 UTC by Adam Mariš
Modified: 2021-02-17 02:02 UTC (History)
26 users (show)

Fixed In Version: curl 7.54.1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-06-14 08:28:14 UTC


Attachments (Terms of Use)

Description Adam Mariš 2017-06-14 08:27:18 UTC
When libcurl is given either

    a file: URL that doesn't use two slashes following the colon, or
    is told that file is the default scheme to use for URLs without scheme

... and the given path starts with a drive letter and libcurl is built for Windows or DOS, then libcurl would copy the path with a wrong offset, so that the end of the given path would write beyond the malloc buffer. Up to seven bytes too much.

Affected versions: libcurl 7.53.0 to and including 7.54.0

External References:

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

Comment 1 Paul Howarth 2017-06-14 08:32:57 UTC
NOTABUG because it only affects Windows/DOS builds (including Cygwin).

Comment 2 Michael Cronenworth 2017-06-14 13:11:01 UTC
I would assume MinGW is affected. I'll push a Fedora update soon.

Comment 3 Adam Mariš 2017-06-15 08:00:52 UTC
(In reply to Michael Cronenworth from comment #2)
> I would assume MinGW is affected. I'll push a Fedora update soon.

I see mingw-curl 7.47.0 in Fedora 24 (can't find build for 25), which should not be vulnerable according to upstream advisory. Fedora 26 currently has 7.53.1 which is vulnerable.

Comment 4 Michael Cronenworth 2017-06-15 17:00:31 UTC
Updates pushed. Thanks.


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