mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 0/3] net: dhcp: fix buffer overflows
@ 2026-04-02  6:56 Sascha Hauer
  2026-04-02  6:56 ` [PATCH 1/3] net: dhcp: add bounds checking to DHCP option parsing Sascha Hauer
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Sascha Hauer @ 2026-04-02  6:56 UTC (permalink / raw)
  To: BAREBOX; +Cc: Claude Opus 4.6 (1M context)

Fix buffer overflows on malicious incoming network packets or user data
in the dhcp code.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
Sascha Hauer (3):
      net: dhcp: add bounds checking to DHCP option parsing
      net: dhcp: use strnlen/xstrndup for bp_file to prevent read past field
      net: dhcp: cap DHCP option string length to 255 bytes

 net/dhcp.c | 36 +++++++++++++++++++++++++-----------
 1 file changed, 25 insertions(+), 11 deletions(-)
---
base-commit: 0933e8f2ebf0d91dfcf177a4e4292b02921a53f1
change-id: 20260402-net-dhcp-buffer-overflows-94a0e80363c1

Best regards,
-- 
Sascha Hauer <s.hauer@pengutronix.de>




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

end of thread, other threads:[~2026-04-02  6:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-04-02  6:56 [PATCH 0/3] net: dhcp: fix buffer overflows Sascha Hauer
2026-04-02  6:56 ` [PATCH 1/3] net: dhcp: add bounds checking to DHCP option parsing Sascha Hauer
2026-04-02  6:56 ` [PATCH 2/3] net: dhcp: use strnlen/xstrndup for bp_file to prevent read past field Sascha Hauer
2026-04-02  6:56 ` [PATCH 3/3] net: dhcp: cap DHCP option string length to 255 bytes Sascha Hauer

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