diff options
author | Akihiko Odaki <akihiko.odaki@daynix.com> | 2024-11-22 14:03:08 +0900 |
---|---|---|
committer | Jason Wang <jasowang@redhat.com> | 2024-11-25 14:00:04 +0800 |
commit | a8575f7fb2f213e6690b23160b04271d47fdfaa8 (patch) | |
tree | ac185cec3832abb352de466e34670ca43069a212 /rust/qemu-api | |
parent | 5930e5ccf38158b090f38554994dab604f01f017 (diff) | |
download | qemu-a8575f7fb2f213e6690b23160b04271d47fdfaa8.zip qemu-a8575f7fb2f213e6690b23160b04271d47fdfaa8.tar.gz qemu-a8575f7fb2f213e6690b23160b04271d47fdfaa8.tar.bz2 |
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 'rust/qemu-api')
0 files changed, 0 insertions, 0 deletions