Skip to content

usb: check RNDIS offsets & length

P J P qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2usb: check RNDIS message lengthhw/usb/core.c+9 -90 replies
2/2usb: check RNDIS buffer offsets & lengthhw/usb/dev-network.c+6 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/2] usb: check RNDIS offsets & length

From: Prasad J Pandit <[email protected]>

Hello,

When processing remote NDIS control message packets, the USB Net device emulator uses a fixed length(4096) data buffer. The incoming packet length could exceed that OR informationBufferOffset & Length combination could overflow and cross that range. These two patches add checks to avoid such overflows.

Thank you.
---
Prasad J Pandit (2):
usb: check RNDIS message length
usb: check RNDIS buffer offsets & length

 hw/usb/core.c        | 18 +++++++++---------
 hw/usb/dev-network.c |  9 ++++++---
 2 files changed, 15 insertions(+), 12 deletions(-)
Signature · 1 line
2.5.0