Bug 1461321 - (CVE-2017-9502) CVE-2017-9502 curl: URL file scheme drive letter buffer overflow
CVE-2017-9502 curl: URL file scheme drive letter buffer overflow
Status: CLOSED NOTABUG
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
medium Severity medium
: ---
: ---
Assigned To: Red Hat Product Security
impact=moderate,public=20170614,repor...
: Security
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-06-14 04:27 EDT by Adam Mariš
Modified: 2017-06-15 13:00 EDT (History)
26 users (show)

See Also:
Fixed In Version: curl 7.54.1
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-06-14 04:28:14 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Adam Mariš 2017-06-14 04:27:18 EDT
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 04:32:57 EDT
NOTABUG because it only affects Windows/DOS builds (including Cygwin).
Comment 2 Michael Cronenworth 2017-06-14 09:11:01 EDT
I would assume MinGW is affected. I'll push a Fedora update soon.
Comment 3 Adam Mariš 2017-06-15 04:00:52 EDT
(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 13:00:31 EDT
Updates pushed. Thanks.

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