summaryrefslogtreecommitdiffstats
path: root/net/tap-bsd.c
diff options
context:
space:
mode:
authorJason Wang2021-02-24 06:45:28 +0100
committerJason Wang2021-03-15 09:41:22 +0100
commit3de46e6fc489c52c9431a8a832ad8170a7569bd8 (patch)
tree9b35439beacc4ffb61753a02a6a83ef1c62d046c /net/tap-bsd.c
parentnet: validate that ids are well formed (diff)
downloadqemu-3de46e6fc489c52c9431a8a832ad8170a7569bd8.tar.gz
qemu-3de46e6fc489c52c9431a8a832ad8170a7569bd8.tar.xz
qemu-3de46e6fc489c52c9431a8a832ad8170a7569bd8.zip
e1000: fail early for evil descriptor
During procss_tx_desc(), driver can try to chain data descriptor with legacy descriptor, when will lead underflow for the following calculation in process_tx_desc() for bytes: if (tp->size + bytes > msh) bytes = msh - tp->size; This will lead a infinite loop. So check and fail early if tp->size if greater or equal to msh. Reported-by: Alexander Bulekov <alxndr@bu.edu> Reported-by: Cheolwoo Myung <cwmyung@snu.ac.kr> Reported-by: Ruhr-University Bochum <bugs-syssec@rub.de> Cc: Prasad J Pandit <ppandit@redhat.com> Cc: qemu-stable@nongnu.org Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'net/tap-bsd.c')
0 files changed, 0 insertions, 0 deletions