]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix CVE-2022-3786 in punycode decoder.
authorPauli <pauli@openssl.org>
Wed, 26 Oct 2022 23:22:47 +0000 (10:22 +1100)
committerTomas Mraz <tomas@openssl.org>
Tue, 1 Nov 2022 16:44:49 +0000 (17:44 +0100)
commit680e65b94c916af259bfdc2e25f1ab6e0c7a97d6
tree7f44cceb29e258b862c0334b35f5a9d62b312c13
parent3b421ebc64c7b52f1b9feb3812bdc7781c784332
Fix CVE-2022-3786 in punycode decoder.

Fixed the ossl_a2ulabel() function which also contained a potential
buffer overflow, albeit without control of the contents.
This overflow could result in a crash (causing a denial of service).

The function also did not NUL-terminate the output in some cases.

The two issues fixed here were dentified and reported
by Viktor Dukhovni while researching CVE-2022-3602.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(cherry picked from commit c42165b5706e42f67ef8ef4c351a9a4c5d21639a)
crypto/punycode.c