public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/2] net: usb: cdc_ncm: add ndpoffset to NDP nframes bounds check
@ 2026-03-14  5:46 tobgaertner
  2026-03-14  5:46 ` [PATCH v3 1/2] net: usb: cdc_ncm: add ndpoffset to NDP16 " tobgaertner
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: tobgaertner @ 2026-03-14  5:46 UTC (permalink / raw)
  To: netdev, linux-usb; +Cc: kuba, gregkh, oneukum, bjorn, tobgaertner

The nframes bounds check in cdc_ncm_rx_verify_ndp16() and
cdc_ncm_rx_verify_ndp32() does not account for ndpoffset,
allowing out-of-bounds reads when the NDP is placed near the
end of the NTB.

Changes since v2:
- Save struct_size_t() result to a temp variable to avoid
  awkward line wrapping (Jakub)
- Fix From/Signed-off-by mismatch
- Move "Compile-tested only" out of the Signed-off-by line
  into the commit message body

Tobi Gaertner (2):
  net: usb: cdc_ncm: add ndpoffset to NDP16 nframes bounds check
  net: usb: cdc_ncm: add ndpoffset to NDP32 nframes bounds check

 drivers/net/usb/cdc_ncm.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

-- 
2.43.0


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

end of thread, other threads:[~2026-03-17  4:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-14  5:46 [PATCH v3 0/2] net: usb: cdc_ncm: add ndpoffset to NDP nframes bounds check tobgaertner
2026-03-14  5:46 ` [PATCH v3 1/2] net: usb: cdc_ncm: add ndpoffset to NDP16 " tobgaertner
2026-03-14  5:46 ` [PATCH v3 2/2] net: usb: cdc_ncm: add ndpoffset to NDP32 " tobgaertner
2026-03-17  4:00 ` [PATCH v3 0/2] net: usb: cdc_ncm: add ndpoffset to NDP " patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox