Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1552631 - (CVE-2018-1000121) CVE-2018-1000121 curl: LDAP NULL pointer dereference
CVE-2018-1000121 curl: LDAP NULL pointer dereference
Status: NEW
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
low Severity low
: ---
: ---
Assigned To: Red Hat Product Security
impact=low,public=20180314,reported=2...
: Security
Depends On: 1555207 1555208 1555221 1555209 1555210 1565031
Blocks: 1552634
  Show dependency treegraph
 
Reported: 2018-03-07 08:11 EST by Andrej Nemec
Modified: 2018-10-30 03:43 EDT (History)
23 users (show)

See Also:
Fixed In Version: curl 7.59.0
Doc Type: If docs needed, set a value
Doc Text:
A NULL pointer dereference flaw was found in the way libcurl checks values returned by the openldap ldap_get_attribute_ber() function. A malicious LDAP server could use this flaw to crash a libcurl client application via a specially crafted LDAP reply.
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)
upstream patch (1.55 KB, patch)
2018-03-07 08:18 EST, Andrej Nemec
no flags Details | Diff


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2018:3157 None None None 2018-10-30 03:43 EDT

  None (edit)
Description Andrej Nemec 2018-03-07 08:11:01 EST
It was found that curl might dereference a near-NULL address when getting an LDAP URL.

The function `ldap_get_attribute_ber()` is called to get attributes, but it
turns out that it can return `LDAP_SUCCESS` and still return a `NULL` pointer
in the result pointer when getting a particularly crafted response.

libcurl-using applications that allow LDAP URLs, or that allow redirects to
LDAP URLs could be made to crash by a malicious server.
Comment 1 Andrej Nemec 2018-03-07 08:11:03 EST
Acknowledgments:

Name: the Curl project
Upstream: Dario Weisser
Comment 2 Andrej Nemec 2018-03-07 08:18 EST
Created attachment 1405334 [details]
upstream patch
Comment 3 Adam Mariš 2018-03-14 03:29:45 EDT
External References:

https://curl.haxx.se/docs/adv_2018-97a2.html
Comment 4 Adam Mariš 2018-03-14 03:33:13 EDT
Created mingw-curl tracking bugs for this issue:

Affects: fedora-all [bug 1555207]


Created curl tracking bugs for this issue:

Affects: fedora-all [bug 1555209]


Created mingw-curl tracking bugs for this issue:

Affects: epel-7 [bug 1555208]
Comment 7 Cedric Buissart 2018-03-14 06:31:20 EDT
Upstream fix:
 openldap: check ldap_get_attribute_ber() results for NULL before using
https://github.com/curl/curl/commit/9889db0433
Comment 11 errata-xmlrpc 2018-10-30 03:43:23 EDT
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

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

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