Bug 1478316 (CVE-2017-1000099) - CVE-2017-1000099 curl: FILE buffer read out of bounds
Summary: CVE-2017-1000099 curl: FILE buffer read out of bounds
Keywords:
Status: CLOSED NOTABUG
Alias: CVE-2017-1000099
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: 1479669 1479670
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-08-04 09:36 UTC by Adam Mariš
Modified: 2021-02-17 01:46 UTC (History)
3 users (show)

Fixed In Version: curl 7.55.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-11-12 09:37:07 UTC
Embargoed:


Attachments (Terms of Use)
Upstream patch (995 bytes, patch)
2017-08-04 09:45 UTC, Adam Mariš
no flags Details | Diff

Description Adam Mariš 2017-08-04 09:36:59 UTC
When asking to get a file from a file:// URL, libcurl provides a feature that
outputs meta-data about the file using HTTP-like headers.

The code doing this would send the wrong buffer to the user (stdout or the
application's provide callback), which could lead to other private data from
the heap to get inadvertently displayed.

The wrong buffer was an uninitialized memory area allocated on the heap and if
it turned out to not contain any zero byte, it would continue and display the
data following that buffer in memory.

Affected versions: libcurl 7.54.1

Comment 1 Adam Mariš 2017-08-04 09:37:02 UTC
Acknowledgments:

Name: the Curl project
Upstream: Even Rouault

Comment 2 Adam Mariš 2017-08-04 09:45:49 UTC
Created attachment 1308974 [details]
Upstream patch

Comment 3 Andrej Nemec 2017-08-09 06:23:43 UTC
External References:

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

Comment 4 Andrej Nemec 2017-08-09 06:31:28 UTC
Created curl tracking bugs for this issue:

Affects: fedora-all [bug 1479670]


Created mingw-curl tracking bugs for this issue:

Affects: fedora-all [bug 1479669]


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