summary refs log tree commit diff stats
path: root/hw/core/qdev-properties-system.c
diff options
context:
space:
mode:
authorAkihiko Odaki <akihiko.odaki@daynix.com>2024-11-22 14:03:08 +0900
committerJason Wang <jasowang@redhat.com>2024-11-25 14:00:04 +0800
commita8575f7fb2f213e6690b23160b04271d47fdfaa8 (patch)
treeac185cec3832abb352de466e34670ca43069a212 /hw/core/qdev-properties-system.c
parent5930e5ccf38158b090f38554994dab604f01f017 (diff)
downloadfocaccia-qemu-a8575f7fb2f213e6690b23160b04271d47fdfaa8.tar.gz
focaccia-qemu-a8575f7fb2f213e6690b23160b04271d47fdfaa8.zip
virtio-net: Fix size check in dhclient workaround
work_around_broken_dhclient() accesses IP and UDP headers to detect
relevant packets and to calculate checksums, but it didn't check if
the packet has size sufficient to accommodate them, causing out-of-bound
access hazards. Fix this by correcting the size requirement.

Fixes: 1d41b0c1ec66 ("Work around dhclient brokenness")
Cc: qemu-stable@nongnu.org
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'hw/core/qdev-properties-system.c')
0 files changed, 0 insertions, 0 deletions