Re: [PATCH net 0/2] ipv4: harden against ihl < 5 IP_HDRINCL packets
From: Herbert Xu
Date: Fri May 15 2026 - 00:23:09 EST
On Wed, May 13, 2026 at 12:34:50AM +0200, Pablo Neira Ayuso wrote:
>
> There are possibly more ways to mangle ihl in the kernel in 2026, not
> only NFQUEUE and nft_payload.
If a packet will be processed further by our stack, we should not
allow it to be modified in such a way that it becomes a threat
to our network stack's consistency.
This is especially the case in containers where unprivileged users
may be able to create these mangling rules.
So any time after a packet has been mangled by nftables where it
may result in a bogus packet, it needs to be checked for consistency
before it is reinjected into our IP stack.
Thanks,
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt