Bug 1478310 (CVE-2017-1000100)

Summary: CVE-2017-1000100 curl: TFTP sends more than buffer size
Product: [Other] Security Response Reporter: Adam Mariš <amaris>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: bmcclain, bodavis, cfergeau, dbhole, eedri, hhorak, jorton, kanderso, kdudka, lsurette, luhliari, mgoldboi, michal.skrivanek, omajid, rwagner, security-response-team, sisharma, srevivo, ykaul
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: curl 7.55.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-21 11:55:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1479668, 1479669, 1479670    
Bug Blocks: 1478321    
Attachments:
Description Flags
Upstream patch none

Description Adam Mariš 2017-08-04 09:27:54 UTC
When doing an TFTP upload and curl/libcurl is given a URL that contains a very
long file name (longer than about 515 bytes), the file name is truncated to
fit within the buffer boundaries, but the buffer size is still wrongly updated
to use the untruncated length. This too large value is then used in the
`send()` call, making curl attempt to send more data than what is actually put
into the buffer. The `send()` function will then read beyond the end of the
heap based buffer.

Affected versions: libcurl 7.15.0 to and including 7.54.1

Comment 1 Adam Mariš 2017-08-04 09:28:05 UTC
Acknowledgments:

Name: the Curl project
Upstream: Even Rouault

Comment 3 Adam Mariš 2017-08-04 09:45:02 UTC
Created attachment 1308973 [details]
Upstream patch

Comment 4 Doran Moppert 2017-08-07 03:45:50 UTC
Statement:

Red Hat Product Security has rated this issue as having Low security impact. This issue is not currently planned to be addressed in future updates. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/.

Comment 5 Andrej Nemec 2017-08-09 06:22:48 UTC
External References:

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

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

Affects: fedora-all [bug 1479670]


Created mingw-curl tracking bugs for this issue:

Affects: epel-7 [bug 1479668]
Affects: fedora-all [bug 1479669]

Comment 7 errata-xmlrpc 2018-11-13 08:34:30 UTC
This issue has been addressed in the following products:

  Red Hat Software Collections for Red Hat Enterprise Linux 6
  Red Hat Software Collections for Red Hat Enterprise Linux 7
  Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS

Via RHSA-2018:3558 https://access.redhat.com/errata/RHSA-2018:3558