In the Linux kernel, the following vulnerability has been resolved: netfilter: nf_conntrack: avoid truncating IPv6 nexthdr offset find_prev_fhdr() returns the offset of the Next Header field before an IPv6 Fragment header through an int pointer, but stores the offset in a u8 local. An extension header chain can put this field beyond byte 255, causing the offset to wrap before it is saved in the fragment queue. Reassembly later uses the wrapped value to update the preceding Next Header field. This overwrites another byte in the IPv6 header chain and can make conntrack parse a different transport tuple from the one used by IPv6 local delivery. A two-fragment packet can, for example, be recorded as UDP destination port 53 while its payload is delivered to UDP port 9999. Use int for the working offset, matching the output argument and the other offset variables in this path.
https://git.kernel.org/stable/c/c6168a32eb25ec8f35e894c3851b87a013fd5b42
https://git.kernel.org/stable/c/c540c1de02e9bc08a9880cee39a4757ef23365c9
https://git.kernel.org/stable/c/6448b59ff3c83d9f4edc73c082eab7989ebe8e57
https://git.kernel.org/stable/c/55cd1d227de0caa8ab5e0440c2701d3b438d3fb6
https://git.kernel.org/stable/c/48d522b65fb0ce2bd54f8f5838d77b48afcf1f3e
https://git.kernel.org/stable/c/3468d5cb0cbfdc4b1bfa3d5e7ed8ed50c7ac9f5a
https://git.kernel.org/stable/c/2004d38294264f89495e09337cba1b1f5bd1db43
https://git.kernel.org/stable/c/150100520016209a46a0419edc41d1c94ebc7f66