Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dropbear: libtomcrypt: fix vulnerability in der_decode_utf8_string CV…
…E-2019-17362 [ cherry pick of upstream commit 64d1153e5a515740ab56f39c46baf4cf6991a9d3 ] The der_decode_utf8_string function (in der_decode_utf8_string.c) does not properly detect certain invalid UTF-8 sequences. This allows context-dependent attackers to cause a denial of service (out-of-bounds read and crash) or read information from other memory locations via carefully crafted DER-encoded data. To exploit this vulnerability an attacker must be able to provide crafted DER-encoded data to LibTomCrypt (e.g. by importing a X509 certificate). Information disclosure is made possible by a 2-steps attack where the imported data is later somehow re-encoded and sent to the attacker (e.g. import and then export X509 certificate). Fixes: CVE-2019-17362 References: libtom/libtomcrypt#507 Upstream-Status: Submitted [mkj/dropbear#319] Signed-off-by: werew <[email protected]> Signed-off-by: Petr Štetiar <[email protected]>
- Loading branch information