Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1503705 - (CVE-2017-1000257) CVE-2017-1000257 curl: IMAP FETCH response out of bounds read
CVE-2017-1000257 curl: IMAP FETCH response out of bounds read
Status: NEW
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=20171023,repor...
: Security
Depends On: 1505232 1505233 1505234 1505284 1505285 1505301 1505302
Blocks: 1503707
  Show dependency treegraph
 
Reported: 2017-10-18 10:55 EDT by Andrej Nemec
Modified: 2018-08-16 12:09 EDT (History)
32 users (show)

See Also:
Fixed In Version: curl 7.56.1
Doc Type: If docs needed, set a value
Doc Text:
A buffer overrun flaw was found in the IMAP handler of libcurl. By tricking an unsuspecting user into connecting to a malicious IMAP server, an attacker could exploit this flaw to potentially cause information disclosure or crash the application.
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)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2017:3263 normal SHIPPED_LIVE Moderate: curl security update 2017-11-27 14:51:12 EST
Red Hat Product Errata RHSA-2018:2486 None None None 2018-08-16 12:09 EDT

  None (edit)
Description Andrej Nemec 2017-10-18 10:55:49 EDT
An IMAP FETCH response line indicates the size of the returned data, in number
of bytes. When that response says the data is zero bytes, libcurl would pass
on that (non-existing) data with a pointer and the size (zero) to the
deliver-data function.

libcurl's deliver-data function treats zero as a magic number and invokes
strlen() on the data to figure out the length. The strlen() is called on a
heap based buffer that might not be zero terminated so libcurl might read
beyond the end of it into whatever memory lies after (or just crash) and then
deliver that to the application as if it was actually downloaded.

Introduced with:

https://github.com/curl/curl/commit/ec3bb8f727

External References:

https://curl.haxx.se/docs/adv_20171023.html
Comment 3 Andrej Nemec 2017-10-18 10:58:37 EDT
Mitigation:

Switch off IMAP in `CURLOPT_PROTOCOLS`
Comment 5 Adam Mariš 2017-10-19 06:55:06 EDT
Acknowledgments:

Name: the Curl project
Upstream: Brian Carpenter, the OSS-Fuzz project
Comment 6 Dhiru Kholia 2017-10-23 02:03:04 EDT
Created curl tracking bugs for this issue:

Affects: fedora-all [bug 1505233]


Created mingw-curl tracking bugs for this issue:

Affects: epel-7 [bug 1505232]
Affects: fedora-all [bug 1505234]
Comment 11 errata-xmlrpc 2017-11-27 09:51:44 EST
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2017:3263 https://access.redhat.com/errata/RHSA-2017:3263
Comment 13 errata-xmlrpc 2018-08-16 12:09:13 EDT
This issue has been addressed in the following products:

  Red Hat JBoss Core Services

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

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