diff options
author | Colin Watson <cjwatson@debian.org> | 2006-09-29 11:11:50 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2006-09-29 11:11:50 +0000 |
commit | 0b228013734983ec12ddaa535d42704b5e4cee90 (patch) | |
tree | ea38d090d185ec0c05096d532ad15e56639e7ccb /packet.c | |
parent | 37ee889c18fbb5693ba03576f44f5b81db8c7c3c (diff) |
* Backport from 4.4p1 (since I don't have an updated version of the GSSAPI
patch yet):
- CVE-2006-4924: Fix a pre-authentication denial of service found by
Tavis Ormandy, that would cause sshd(8) to spin until the login grace
time expired (closes: #389995).
Diffstat (limited to 'packet.c')
-rw-r--r-- | packet.c | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -992,9 +992,16 @@ packet_read_poll1(void) | |||
992 | * (C)1998 CORE-SDI, Buenos Aires Argentina | 992 | * (C)1998 CORE-SDI, Buenos Aires Argentina |
993 | * Ariel Futoransky(futo@core-sdi.com) | 993 | * Ariel Futoransky(futo@core-sdi.com) |
994 | */ | 994 | */ |
995 | if (!receive_context.plaintext && | 995 | if (!receive_context.plaintext) { |
996 | detect_attack(buffer_ptr(&input), padded_len, NULL) == DEATTACK_DETECTED) | 996 | switch (detect_attack(buffer_ptr(&input), padded_len, NULL)) { |
997 | packet_disconnect("crc32 compensation attack: network attack detected"); | 997 | case DEATTACK_DETECTED: |
998 | packet_disconnect("crc32 compensation attack: " | ||
999 | "network attack detected"); | ||
1000 | case DEATTACK_DOS_DETECTED: | ||
1001 | packet_disconnect("deattack denial of " | ||
1002 | "service detected"); | ||
1003 | } | ||
1004 | } | ||
998 | 1005 | ||
999 | /* Decrypt data to incoming_packet. */ | 1006 | /* Decrypt data to incoming_packet. */ |
1000 | buffer_clear(&incoming_packet); | 1007 | buffer_clear(&incoming_packet); |