pcnet: switch to use qemu_receive_packet() for loopback
authorAlexander Bulekov <alxndr@bu.edu>
Mon, 1 Mar 2021 15:33:34 +0000 (10:33 -0500)
committerSoonKyu Park <sk7.park@samsung.com>
Tue, 23 Nov 2021 04:45:37 +0000 (13:45 +0900)
commit6841fa4d10654628414dfccf98d80aa217d3a57e
tree697560952664882bf962217d3c97e569803b287a
parent627b5486c2796aa76e8bce12ecef893b15735d29
pcnet: switch to use qemu_receive_packet() for loopback

Git-commit: 99ccfaa1edafd79f7a3a0ff7b58ae4da7c514928

This patch switches to use qemu_receive_packet() which can detect
reentrancy and return early.

This is intended to address CVE-2021-3416.

Cc: Prasad J Pandit <ppandit@redhat.com>
Cc: qemu-stable@nongnu.org
Buglink: https://bugs.launchpad.net/qemu/+bug/1917085
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com
Signed-off-by: Alexander Bulekov <alxndr@bu.edu>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Bruce Rogers <brogers@suse.com>
hw/net/pcnet.c