Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
CVE-2017-12893/SMB/CIFS: Add a bounds check in name_len().
After we advance the pointer by the length value in the buffer, make sure it points to something in the captured data. This fixes a buffer over-read discovered by Forcepoint's security researchers Otto Airamo & Antti Levomäki. Add a test using the capture file supplied by the reporter(s).
- Loading branch information
1 parent
c6e0531
commit 6f5ba2b
Showing
4 changed files
with
20 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,16 @@ | ||
| 00:0c:85:0e:a5:ff > 00:00:0c:07:ac:f0, ethertype IPv4 (0x0800), length 92: (tos 0x0, ttl 127, id 38615, offset 0, flags [none], proto UDP (17), length 78) | ||
| 10.49.248.228.137 > 10.48.161.241.137: | ||
| >>> NBT UDP PACKET(137): QUERY; REQUEST; UNICAST | ||
| TrnID=0x8D40 | ||
| OpCode=0 | ||
| NmFlags=0x10 | ||
| Rcode=0 | ||
| QueryCount=1 | ||
| AnswerCount=0 | ||
| AuthorityCount=0 | ||
| AddressRecCount=0 | ||
| QuestionRecords: | ||
| Name= | ||
| WARNING: Short packet. Try increasing the snap length | ||
|
|
||
|
|
Binary file not shown.