[PATCH v5] examples/l3fwd: fix RFC 1812 checks
Morten Brørup
mb at smartsharesystems.com
Fri Nov 13 21:28:09 CET 2026
Thank you for reviewing.
> 3 comments from AI:
>
> - The software checksum reads the header before validating its length.
> A truncated packet with an oversized IHL causes an out-of-bounds
> read.
Fixed in v6.
>
> - CKSUM_NONE packets are accepted without rebuilding their checksum,
> so forwarding leaves it invalid.
Fixed in v6.
>
> - Pre-existing: the EM path still calls send_single_packet()
> after validation frees the packet and returns BAD_PORT,
> causing an out-of-bounds array access.
That bug is not directly related to the RFC 1812 check bugs fixed in this series.
I'm not extending this series to fix more bugs like that one.
More information about the dev
mailing list