Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(for 4.9.3) CVE-2018-14467/BGP: Fix BGP_CAPCODE_MP.
Add a bounds check and a comment to bgp_capabilities_print(). This fixes a buffer over-read discovered by Bhargava Shastry, SecT/TU Berlin. Add a test using the capture file supplied by the reporter(s).
- Loading branch information
Showing
4 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
IP (tos 0x1f,CE, ttl 254, id 38671, offset 0, flags [+, DF, rsvd], proto TCP (6), length 4135, bad cksum 200 (->1fdd)!) | ||
226.219.0.0.179 > 16.233.34.0.100: Flags [SPUE], seq 347537408:347541483, win 511, urg 65535, options [eol], length 4075: BGP [|BGP] | ||
Open Message (1), length: 59 | ||
Version 255, my AS 65528, Holdtime 4324s, ID 144.8.32.4 | ||
Optional parameters, length: 29 | ||
Option Unknown (0), length: 0 | ||
no decoder for option 0 | ||
Option Capabilities Advertisement (2), length: 8 | ||
Graceful Restart (64), length: 0 | ||
Restart Flags: [none], Restart Time 0s | ||
Unknown (0), length: 0 | ||
no decoder for Capability 0 | ||
32-Bit AS Number (65), length: 4 | ||
4 Byte AS 2 | ||
Option Unknown (0), length: 2 | ||
no decoder for option 0 | ||
Option Capabilities Advertisement (2), length: 2 | ||
Unknown (232), length: 3 | ||
no decoder for Capability 232 | ||
0x0000: 0207 04 | ||
Option Capabilities Advertisement (2), length: 7 | ||
Multiple Routes to a Destination (4), length: 0 | ||
no decoder for Capability 4 | ||
Unknown (8), length: 0 | ||
no decoder for Capability 8 | ||
Multiprotocol Extensions (1), length: 0[|BGP] |
Binary file not shown.