Bug 1375906 (CVE-2016-7167) - CVE-2016-7167 curl: escape and unescape integer overflows
Summary: CVE-2016-7167 curl: escape and unescape integer overflows
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2016-7167
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1375907 1375908 1375909 1377578
Blocks: 1375910
TreeView+ depends on / blocked
 
Reported: 2016-09-14 08:41 UTC by Adam Mariš
Modified: 2021-02-17 03:20 UTC (History)
30 users (show)

Fixed In Version: curl 7.50.3
Doc Type: If docs needed, set a value
Doc Text:
Multiple integer overflow flaws leading to heap-based buffer overflows were found in the way curl handled escaping and unescaping of data. An attacker could potentially use these flaws to crash an application using libcurl by sending a specially crafted input to the affected libcurl functions.
Clone Of:
Environment:
Last Closed: 2019-06-08 02:58:34 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2017:2016 0 normal SHIPPED_LIVE Moderate: curl security, bug fix, and enhancement update 2017-08-01 18:02:02 UTC
Red Hat Product Errata RHSA-2018:2486 0 None None None 2018-08-16 16:06:41 UTC
Red Hat Product Errata RHSA-2018:3558 0 None None None 2018-11-13 08:32:36 UTC

Description Adam Mariš 2016-09-14 08:41:03 UTC
It was found that provided string length arguments in four libcurl functions curl_escape(), curl_easy_escape(), curl_unescape and curl_easy_unescape were not properly checked and due to arithmetic in the functions, passing in the length 0xffffffff (2^32-1 or UINT_MAX or even just -1) would end up causing an allocation of zero bytes of heap memory that curl would attempt to write gigabytes of data into.

This flaw does not affect the curl command line tool.

Affected versions: libcurl 7.11.1 to and including 7.50.2

External References:

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

Comment 1 Adam Mariš 2016-09-14 08:42:28 UTC
Created curl tracking bugs for this issue:

Affects: fedora-all [bug 1375907]

Comment 2 Adam Mariš 2016-09-14 08:42:45 UTC
Created mingw-curl tracking bugs for this issue:

Affects: fedora-all [bug 1375908]
Affects: epel-7 [bug 1375909]

Comment 3 Dhiru Kholia 2016-09-15 07:34:17 UTC
Upstream patch:

https://curl.haxx.se/CVE-2016-7167.patch

Comment 20 errata-xmlrpc 2017-08-01 17:03:18 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2017:2016 https://access.redhat.com/errata/RHSA-2017:2016

Comment 22 errata-xmlrpc 2018-08-16 16:06:25 UTC
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

Comment 23 errata-xmlrpc 2018-11-13 08:32:23 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


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