AOSC-Dev / aosc-os-abbs

ABBS/ACBS tree for AOSC OS package metadata, build configuration, scripts, and patches
https://packages.aosc.io
GNU General Public License v2.0
102 stars 80 forks source link

curl: security update to 7.61.1 #1368

Closed l2dy closed 6 years ago

l2dy commented 6 years ago

CVE IDs (if any)

CVE-2018-14618

Other security advisory IDs (if any)

DSA-4286-1

Patches (if any)

https://github.com/curl/curl/commit/57d299a499155d4b327e341c6024e293b0418243.patch

PoC(s) (if any)

https://github.com/curl/curl/issues/2756

Additional descriptions (if applicable)

https://curl.haxx.se/docs/CVE-2018-14618.html

libcurl contains a buffer overrun in the NTLM authentication code.

The internal function Curl_ntlm_core_mk_nt_hash multiplies the length of the password by two (SUM) to figure out how large temporary storage area to allocate from the heap.

The length value is then subsequently used to iterate over the password and generate output into the allocated storage buffer. On systems with a 32 bit size_t, the math to calculate SUM triggers an integer overflow when the password length exceeds 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 heap buffer overflow.

(This bug is almost identical to CVE-2017-8816.)

We are not aware of any exploit of this flaw.

Architectural progress

Please remove any architecture to which the security vulnerabilities do not apply.

MingcongBai commented 6 years ago

Fixed with https://github.com/AOSC-Dev/aosc-os-abbs/commit/698716fe8a7428f7a0683cde5f8c315239946826. Closing.

l2dy commented 6 years ago

Use AOSA-2018-0398.