Skip to content

Commit

Permalink
CVE-2017-12988/TELNET: Add a missing bounds check.
Browse files Browse the repository at this point in the history
This fixes a buffer over-read discovered by Forcepoint's security
researchers Otto Airamo & Antti Levomäki.

Add a test using the capture file supplied by the reporter(s).
  • Loading branch information
guyharris authored and infrastation committed Sep 13, 2017
1 parent c2ef693 commit 8934a7d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions print-telnet.c
Expand Up @@ -442,6 +442,7 @@ telnet_parse(netdissect_options *ndo, const u_char *sp, u_int length, int print)
break;
p++;
}
ND_TCHECK(*p);
if (*p != IAC)
goto pktend;

Expand Down
1 change: 1 addition & 0 deletions tests/TESTLIST
Expand Up @@ -466,6 +466,7 @@ eigrp-tlv-oobr eigrp-tlv-oobr.pcap eigrp-tlv-oobr.out -vvv -e
zephyr-oobr zephyr-oobr.pcap zephyr-oobr.out -vvv -e
bgp-as-path-oobr bgp-as-path-oobr.pcap bgp-as-path-oobr.out -vvv -e
isakmp-no-none-np isakmp-no-none-np.pcap isakmp-no-none-np.out -vvv -e
telnet-iac-check-oobr telnet-iac-check-oobr.pcap telnet-iac-check-oobr.out -vvv -e

# RTP tests
# fuzzed pcap
Expand Down
2 changes: 2 additions & 0 deletions tests/telnet-iac-check-oobr.out

Large diffs are not rendered by default.

Binary file added tests/telnet-iac-check-oobr.pcap
Binary file not shown.

0 comments on commit 8934a7d

Please sign in to comment.