diff options
author | Guy Harris <guy@alum.mit.edu> | 2017-03-21 19:30:48 -0700 |
---|---|---|
committer | Denis Ovsienko <denis@ovsienko.info> | 2017-09-13 12:25:44 +0100 |
commit | c177cb3800a9a68d79b2812f0ffcb9479abd6eb8 (patch) | |
tree | e73868e44780a3971505f8489c731e3f8fab5d32 /addrtoname.h | |
parent | 985122081165753c7442bd7824c473eb9ff56308 (diff) | |
download | tcpdump-c177cb3800a9a68d79b2812f0ffcb9479abd6eb8.tar.gz |
CVE-2017-13016/ES-IS: Fix printing of addresses in RD PDUs.
Always print the SNPA, and flag it as such; only print it as a MAC
address if it's 6 bytes long.
Identify the NET as such.
This fixes a buffer over-read discovered by Bhargava Shastry,
SecT/TU Berlin.
Add tests using the capture files supplied by the reporter(s), modified
so the capture files won't be rejected as an invalid capture.
Diffstat (limited to 'addrtoname.h')
-rw-r--r-- | addrtoname.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/addrtoname.h b/addrtoname.h index 72e5ef19..fe8b6bbe 100644 --- a/addrtoname.h +++ b/addrtoname.h @@ -33,7 +33,8 @@ enum { LINKADDR_ETHER, LINKADDR_FRELAY, LINKADDR_IEEE1394, - LINKADDR_ATM + LINKADDR_ATM, + LINKADDR_OTHER }; #define BUFSIZE 128 |