Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CVE-2017-13001/NFS: Don't copy more data than is in the file handle.
Also, put the buffer on the stack; no reason to make it static. (65 bytes isn't a lot.) This fixes a buffer over-read discovered by Kamil Frankowicz. Add a test using the capture file supplied by the reporter(s).
- Loading branch information
1 parent
8512734
commit 7a92344
Showing
4 changed files
with
112 additions
and
3 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,104 @@ | ||
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 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x0040: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x0050: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x0060: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x0070: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x0080: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x0090: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x00a0: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x00b0: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x00c0: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x00d0: 3030 3030 3030 3030 3030 3030 000000000000 | ||
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 00000000 | ||
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 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x0040: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x0050: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x0060: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x0070: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x0080: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x0090: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x00a0: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x00b0: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x00c0: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
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 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x0040: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x0050: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x0060: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x0070: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x0080: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x0090: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x00a0: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x00b0: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x00c0: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x00d0: 3030 3030 3030 3030 3030 3030 000000000000 | ||
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 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x0040: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x0050: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x0060: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x0070: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x0080: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x0090: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x00a0: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x00b0: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x00c0: 3030 3030 0000 | ||
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 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x0040: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x0050: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x0060: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x0070: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x0080: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x0090: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x00a0: 3030 3030 0000 | ||
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 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x0040: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x0050: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x0060: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x0070: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x0080: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x0090: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x00a0: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x00b0: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x00c0: 3030 3030 3030 3030 3030 3030 000000000000 | ||
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 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x0040: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x0050: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x0060: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x0070: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x0080: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x0090: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x00a0: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x00b0: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x00c0: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 | ||
0x00d0: 3030 3030 3030 3030 3030 3030 000000000000 | ||
IP 48.48.48.48.12336 > 48.48.48.48.2049: Flags [.U], seq 808464432:808476728, ack 808464432, win 12336, urg 12336, length 12296: NFS request xid 808464432 12292 readlink fh 00000000/808464432 |
Binary file not shown.