]> git.ipfire.org Git - thirdparty/openvpn.git/commit
mbedtls: fix --x509-track post-authentication remote DoS (CVE-2017-7522)
authorSteffan Karger <steffan.karger@fox-it.com>
Mon, 19 Jun 2017 09:28:36 +0000 (11:28 +0200)
committerGert Doering <gert@greenie.muc.de>
Mon, 19 Jun 2017 17:58:12 +0000 (19:58 +0200)
commit67edada0beaf5ce6e47f13526b9f678dad4fc126
tree3d8136ee8d74435b3543d4effa88d9b8b40c8c26
parentdf5efe7e2cd23b2282526f2c41be2063d941dff1
mbedtls: fix --x509-track post-authentication remote DoS (CVE-2017-7522)

asn1_buf_to_c_string() returned a literal string if the input ASN.1 string
contained a NUL character, while the caller expects a mutable string.
The caller will attempt to change this string, which allows a client to
crash a server by sending a certificate with an embedded NUL character.

(The other way around is not interesting, as servers are allowed to stop
a client by design.)

Impact analysis:
 * applies to mbedtls builds only
 * introduced in 2.4 (so 2.3 is not affected)
 * can only be exploited if the --x509-track option is used
 * requires the CA to sign a certificate with an embedded NUL in the
   certificate subject

This bug was discovered and reported to the OpenVPN security team by
Guido Vranken.

CVE: 2017-7522
Signed-off-by: Steffan Karger <steffan.karger@fox-it.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <1497864520-12219-2-git-send-email-steffan.karger@fox-it.com>
URL: https://www.mail-archive.com/search?l=mid&q=1497864520-12219-2-git-send-email-steffan.karger@fox-it.com
Signed-off-by: Gert Doering <gert@greenie.muc.de>
(cherry picked from commit 426392940c7060300a10077c389f5156c790c2f6)
Changes.rst
src/openvpn/ssl_verify_mbedtls.c