]> The Tcpdump Group git mirrors - tcpdump/commit
CVE-2017-12897/ISO CLNS: Use ND_TTEST() for the bounds checks in isoclns_print().
authorGuy Harris <[email protected]>
Fri, 3 Feb 2017 20:24:14 +0000 (12:24 -0800)
committerDenis Ovsienko <[email protected]>
Sun, 3 Sep 2017 23:08:58 +0000 (00:08 +0100)
commit7dcbc13ce49fd180442107f2fa2b384606608186
tree6e6f8e88e5aa3b98e671cb4906af6a29a44f39a6
parent014a703fcba8fe83c57125076a3b4f23043c80f6
CVE-2017-12897/ISO CLNS: Use ND_TTEST() for the bounds checks in isoclns_print().

This fixes a buffer over-read discovered by Kamil Frankowicz.

Don't pass the remaining caplen - that's too hard to get right, and we
were getting it wrong in at least one case; just use ND_TTEST().

Add a test using the capture file supplied by the reporter(s).
15 files changed:
netdissect.h
print-atm.c
print-chdlc.c
print-ether.c
print-fr.c
print-gre.c
print-isoclns.c
print-juniper.c
print-llc.c
print-mpls.c
print-null.c
print-ppp.c
tests/TESTLIST
tests/isoclns-oobr.out [new file with mode: 0644]
tests/isoclns-oobr.pcap [new file with mode: 0644]