Hide Forgot
libcurl contains a buffer overrun flaw in the NTLM authentication code. The internal function `Curl_ntlm_core_mk_ntlmv2_hash` sums up the lengths of the user name + password (= SUM) and multiplies the sum by two (= SIZE) to figure out how large storage to allocate from the heap. The SUM value is subsequently used to iterate over the input and generate output into the storage buffer. On systems with a 32 bit `size_t`, the math to calculate SIZE triggers an integer overflow when the combined lengths of the user name and password is larger than 2GB (2^31 bytes). This integer overflow usually causes a very small buffer to actually get allocated instead of the intended very huge one, making the use of that buffer end up in a buffer overrun. This is only an issue on 32 bit systems. It also requires the user and password fields to use more than 2GB of memory combined, which in itself should be rare. - Affected versions: libcurl 7.36.0 to and including 7.56.1 - Not affected versions: libcurl < 7.36.0 and >= 7.57.0
Acknowledgments: Name: the Curl project Upstream: Alex Nichols
Created attachment 1356597 [details] Upstream patch
Created attachment 1356599 [details] Upstream patch
Issue was introduced by commit: https://github.com/curl/curl/commit/86724581b6c02d160b52f817550cfdfc9c93af62
External References: https://curl.haxx.se/docs/adv_2017-12e7.html
Created curl tracking bugs for this issue: Affects: fedora-all [bug 1518621] Created mingw-curl tracking bugs for this issue: Affects: epel-7 [bug 1518622] Affects: fedora-all [bug 1518620]
Upstream commit: https://github.com/curl/curl/commit/7f2a1df6f5fc598750b2c6f34465c8d924db28cc
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