summaryrefslogtreecommitdiff
path: root/tests/nfs-attr-oobr.pcap
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2017-02-03 15:14:51 -0800
committerDenis Ovsienko <denis@ovsienko.info>2017-09-13 12:25:44 +0100
commit19d25dd8781620cd41bf178a5e2e27fc1cf242d0 (patch)
tree0de33783070d48ec47742a43b5c232a6388ffc96 /tests/nfs-attr-oobr.pcap
parent1dcd10aceabbc03bf571ea32b892c522cbe923de (diff)
downloadtcpdump-19d25dd8781620cd41bf178a5e2e27fc1cf242d0.tar.gz
CVE-2017-12898/NFS: Fix bounds checking.
Fix the bounds checking for the NFSv3 WRITE procedure to check whether the length of the opaque data being written is present in the captured data, not just whether the byte count is present in the captured data. furthest forward in the packet, not the item before it. (This also lets us eliminate the check for the "stable" argument being present in the captured data; rewrite the code to print that to make it a bit clearer.) Check that the entire ar_stat field is present in the capture. Note that parse_wcc_attr() is called after we've already checked whether the wcc_data is present. Check before fetching the "access" part of the NFSv3 ACCESS results. This fixes a buffer over-read discovered by Kamil Frankowicz. Include a test for the "check before fetching the "access" part..." fix, using the capture supplied by the reporter(s).
Diffstat (limited to 'tests/nfs-attr-oobr.pcap')
-rw-r--r--tests/nfs-attr-oobr.pcapbin0 -> 7308 bytes
1 files changed, 0 insertions, 0 deletions
diff --git a/tests/nfs-attr-oobr.pcap b/tests/nfs-attr-oobr.pcap
new file mode 100644
index 00000000..9c292ad2
--- /dev/null
+++ b/tests/nfs-attr-oobr.pcap
Binary files differ