All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net v3 0/4] virtio_net: fix out-of-bounds accesses and a heap info leak via the device stats reply
@ 2026-11-16  9:24 Lianjie Wang
  2026-11-16  9:24 ` [PATCH net v3 1/4] virtio_net: reject stats replies for queues outside the request Lianjie Wang
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Lianjie Wang @ 2026-11-16  9:24 UTC (permalink / raw)
  To: Michael S. Tsirkin, Jason Wang, Eugenio Pérez, Andrew Lunn,
	David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni
  Cc: Lianjie Wang, Xuan Zhuo, netdev, virtualization, linux-kernel,
	Michael Bommarito, Takahiro Shinagawa

With the statistics reply, a device can make the driver write past the
ethtool -S output array (patch 1), leak stale heap or loop forever
(patch 2), and read past the reply buffer (patch 3). Patch 4 returns an
error when the statistics command fails.

Claude Opus 5.5 was used to audit the driver and draft the patches.

v3:
- Rebase onto v7.4-rc3.
- Add patches 2 to 4 for the issues raised in the review [1].

[1] https://lore.kernel.org/all/20261110001659.1654289-2-kuba@kernel.org/
v2: https://lore.kernel.org/all/20261102205550.4148064-1-lian@is.s.u-tokyo.ac.jp/
v1: https://lore.kernel.org/all/20261022182710.2055771-1-karin0.zst@gmail.com/

Lianjie Wang (4):
  virtio_net: reject stats replies for queues outside the request
  virtio_net: zero the stats reply buffer
  virtio_net: keep reads of stats records within the reply buffer
  virtio_net: report a failed stats command as an error

 drivers/net/virtio_net.c | 33 ++++++++++++++++++++++++---------
 1 file changed, 24 insertions(+), 9 deletions(-)


base-commit: aebb7274476403040d582c61478df8f4a7bf9cd3
-- 
2.56.1


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2026-11-16  9:42 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-16  9:24 [PATCH net v3 0/4] virtio_net: fix out-of-bounds accesses and a heap info leak via the device stats reply Lianjie Wang
2026-11-16  9:24 ` [PATCH net v3 1/4] virtio_net: reject stats replies for queues outside the request Lianjie Wang
2026-11-16  9:42   ` sashiko-bot
2026-11-16  9:24 ` [PATCH net v3 2/4] virtio_net: zero the stats reply buffer Lianjie Wang
2026-11-16  9:42   ` sashiko-bot
2026-11-16  9:24 ` [PATCH net v3 3/4] virtio_net: keep reads of stats records within the " Lianjie Wang
2026-11-16  9:42   ` sashiko-bot
2026-11-16  9:24 ` [PATCH net v3 4/4] virtio_net: report a failed stats command as an error Lianjie Wang
2026-11-16  9:42   ` sashiko-bot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.