Lucene search

K
archlinuxArch LinuxASA-201608-9
HistoryAug 08, 2016 - 12:00 a.m.

curl: multiple issues

2016-08-0800:00:00
Arch Linux
lists.archlinux.org
21

0.007 Low

EPSS

Percentile

80.9%

  • CVE-2016-5419 (authentication bypass)

libcurl would attempt to resume a TLS session even if the client
certificate had changed. That is unacceptable since a server by
specification is allowed to skip the client certificate check on resume,
and may instead use the old identity which was established by the
previous certificate (or no certificate).

  • CVE-2016-5420 (authentication bypass)

libcurl supports reuse of established connections for subsequent
requests. It does this by keeping a few previous connections "alive" in
a connection pool so that a subsequent request that can use one of them
instead of creating a new connection will do so.
When using a client certificate for a connection that was then put into
the connection pool, that connection could then wrongly get reused in a
subsequent request to that same server that either didn’t use a client
certificate at all or that asked to use a different client certificate
thus trying to tell the user that it is a different entity.
This mistakenly using the wrong connection could of course lead to
applications sending requests to the wrong realms of the server using
authentication that it wasn’t supposed to have for those operations.

  • CVE-2016-5421 (arbitrary code execution)

libcurl works with easy handles using the type β€˜CURL *’ that are objects
the application creates using curl_easy_init(). They are the handles
that are all each associated with a single transfer at a time. libcurl
also has an internal struct that represents and holds most state that is
related to a single connection. An easy handle can hold references to
one or many such connection structs depending on the requested operations.
When using libcurl’s multi interface, an application performs transfers
by adding one or more easy handles to the multi handle and then it can
drive all those transfers in parallel.
Due to a flaw, libcurl could leave a pointer to a freed connection
struct dangling in an easy handle that was previously added to a multi
handle when curl_multi_cleanup() is called with an easy handle still
added to it. This does not seem to cause any notable harm if the handle
is then closed properly.
However, if the easy handle would instead get used again with the easy
interface and curl_easy_perform() to do another transfer, it would
blindly use the connection struct pointer now pointing to freed memory.
An application could be made to allocate its own fake version of the
connect struct, fill in some data and then have the curl_easy_perform()
call do something that clearly was not intended by the original code.

OSVersionArchitecturePackageVersionFilename
anyanyanycurl<Β 7.50.1-1UNKNOWN