[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug 1904954] Re: lan9118 bug peeked received message size not equal to
From: |
Peter Maydell |
Subject: |
[Bug 1904954] Re: lan9118 bug peeked received message size not equal to actual received message size |
Date: |
Fri, 08 Jan 2021 19:06:29 -0000 |
** Changed in: qemu
Status: New => In Progress
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1904954
Title:
lan9118 bug peeked received message size not equal to actual received
message size
Status in QEMU:
In Progress
Bug description:
peeked message size is not equal to read message size
Bug in the code at line:
https://github.com/qemu/qemu/blob/master/hw/net/lan9118.c#L1209
s->tx_status_fifo_head should be s->rx_status_fifo_head
Could also be a security bug, as the user could allocate a buffer of
size peeked data smaller than the actual packet received, which could
cause a buffer overflow.
Thanks,
Alfred
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1904954/+subscriptions