Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CVE-2017-5483/SNMP: improve ASN.1 bounds checks
Kamil Frankowicz had found that truncated BE_STR and BE_SEQ ASN.1 elements could lead to an overread, from the source code it looked like other ids could have this problem too. Move the checks introduced in commit 72e501f out of the switch blocks to cover all ids by default. This fixes GH#559 and GH#566.
- Loading branch information
1 parent
c39c1d9
commit eec1624
Showing
6 changed files
with
27 additions
and
4 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,21 @@ | ||
30:30:30:30:30:30 > 30:30:30:30:30:30, ethertype Unknown (0x3030), length 808464432: | ||
0x0000: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x0010: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x0020: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x0030: 3030 00 | ||
30:30:30:30:30:30 > 30:30:30:30:30:30, ethertype Unknown (0x3030), length 808464432: | ||
0x0000: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x0010: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x0020: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x0030: 3030 00 | ||
30:30:30:30:30:30 > 30:30:30:30:30:30, ethertype Unknown (0x3030), length 808464432: | ||
0x0000: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x0010: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x0020: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x0030: 3030 00 | ||
30:30:30:30:30:30 > 30:30:30:30:30:30, ethertype Unknown (0x3030), length 808464432: | ||
0x0000: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x0010: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x0020: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x0030: 3030 00 | ||
IP 48.48.48.48.12336 > 48.48.48.48.161: [|snmp] |
Binary file not shown.
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 @@ | ||
IP 48.48.48.48.12336 > 48.48.48.48.162: [|snmp] |
Binary file not shown.