]> Git Repo - qemu.git/commit
net: tulip: check frame size and r/w data length
authorPrasad J Pandit <[email protected]>
Tue, 24 Mar 2020 17:27:22 +0000 (22:57 +0530)
committerJason Wang <[email protected]>
Tue, 31 Mar 2020 13:14:35 +0000 (21:14 +0800)
commit8ffb7265af64ec81748335ec8f20e7ab542c3850
treee33cdd16816ecaca46c9793c02a357cd71110d81
parentcca35ac4d16c0633a7d3bd28448e4ef52f0d46b0
net: tulip: check frame size and r/w data length

Tulip network driver while copying tx/rx buffers does not check
frame size against r/w data length. This may lead to OOB buffer
access. Add check to avoid it.

Limit iterations over descriptors to avoid potential infinite
loop issue in tulip_xmit_list_update.

Reported-by: Li Qiang <[email protected]>
Reported-by: Ziming Zhang <[email protected]>
Reported-by: Jason Wang <[email protected]>
Tested-by: Li Qiang <[email protected]>
Reviewed-by: Li Qiang <[email protected]>
Signed-off-by: Prasad J Pandit <[email protected]>
Signed-off-by: Jason Wang <[email protected]>
hw/net/tulip.c
This page took 0.020039 seconds and 4 git commands to generate.