On Mon, 9 Nov 2026 at 05:31, Akihiko Odaki <[email protected]> wrote: > > We already have some L4/L5 header bound checks. Add the missing > coverage for IPv6. > > The IPv6 header parser incorrectly derives L4 offsets greater than > actual values. Adding a bound check without fixing it would reject > valid packets while fixing it without adding a bound check can result > in an out-of-bounds access, so fix it along with the bound check > addition.
> + > + /* > + * Detect a subsequent fragment per RFC 8200. > + * > + * A subsequenet fragment contains no extension headers while the typo: "subsequent" > + * Next Header value identifies the first header after the > + * Per-Fragment headers of the original packet. > + * > + * The subsequent fragment is detected by checking if the > Fragment > + * Offset is nonzero. > + */ > + subsequent = extract16(be16_to_cpu(buf), 3, 13); > + break; otherwise Reviewed-by: Peter Maydell <[email protected]> thanks -- PMM
