]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Add missing null-pointer checks in key exchange.
authorSimon Tatham <anakin@pobox.com>
Sat, 13 Jun 2015 14:22:03 +0000 (15:22 +0100)
committerSimon Tatham <anakin@pobox.com>
Sat, 13 Jun 2015 15:01:55 +0000 (16:01 +0100)
commit1eb578a488a71284d6b18e46df301e54805f2c35
tree5821575449fda6dc6475b9f5fdf5f2400188e97a
parentf8b27925eee6a37df107a7cd2e718e997a52516e
Add missing null-pointer checks in key exchange.

Assorted calls to ssh_pkt_getstring in handling the later parts of key
exchange (post-KEXINIT) were not checked for NULL afterwards, so that
a variety of badly formatted key exchange packets would cause a crash
rather than a sensible error message.

None of these is an exploitable vulnerability - the server can only
force a clean null-deref crash, not an access to actually interesting
memory.

Thanks to '3unnym00n' for pointing out one of these, causing me to
find all the rest of them too.
ssh.c