[PATCH 00/10] net: prevent buffer overflows in UDP packets
Sascha Hauer
s.hauer at pengutronix.de
Fri Apr 17 03:40:21 PDT 2026
On Thu, 02 Apr 2026 08:36:39 +0200, Sascha Hauer wrote:
> Our UDP handlers all use a UDP packets length without checking if it
> fits into the incoming ethernet frame. Create a net_eth_to_udp() helper
> which does the bounds checking and use it throughout the code.
>
>
Applied, thanks!
[01/10] net: add net_eth_to_udp() helper for validated UDP extraction
https://git.pengutronix.de/cgit/barebox/commit/?id=a5c8c5b28678 (link may not be stable)
[02/10] fs: tftp: use net_eth_to_udp() for packet parsing
https://git.pengutronix.de/cgit/barebox/commit/?id=336a561b8276 (link may not be stable)
[03/10] net: dhcp: use net_eth_to_udp() for packet parsing
https://git.pengutronix.de/cgit/barebox/commit/?id=590413b42fe3 (link may not be stable)
[04/10] fs: nfs: use net_eth_to_udp() for packet parsing
https://git.pengutronix.de/cgit/barebox/commit/?id=3f3844baaae8 (link may not be stable)
[05/10] net: dns: use net_eth_to_udp() for packet parsing
https://git.pengutronix.de/cgit/barebox/commit/?id=7e445fc4f390 (link may not be stable)
[06/10] net: sntp: use net_eth_to_udp() for packet parsing
https://git.pengutronix.de/cgit/barebox/commit/?id=d650913f3a9f (link may not be stable)
[07/10] net: netconsole: use net_eth_to_udp() for packet parsing
https://git.pengutronix.de/cgit/barebox/commit/?id=895ee90de389 (link may not be stable)
[08/10] net: fastboot: use net_eth_to_udp() for packet parsing
https://git.pengutronix.de/cgit/barebox/commit/?id=cbe8a28183d0 (link may not be stable)
[09/10] net: fastboot: stop using net_eth_to_udp_payload() for PACKET_SIZE
https://git.pengutronix.de/cgit/barebox/commit/?id=2d89ebc47f26 (link may not be stable)
[10/10] net: remove unused net_eth_to_udp{hdr,_payload,len}() helpers
https://git.pengutronix.de/cgit/barebox/commit/?id=bd46061883c4 (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer at pengutronix.de>
More information about the barebox
mailing list