Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ipv6: raw: Deduct extension header length in rawv6_push_pending_frames
The total cork length created by ip6_append_data includes extension headers, so we must exclude them when comparing them against the IPV6_CHECKSUM offset which does not include extension headers. Reported-by: Kyle Zeng <zengyhkyle@gmail.com> Fixes: 357b40a ("[IPV6]: IPV6_CHECKSUM socket option can corrupt kernel memory") Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net> (cherry picked from commit cb3e986) CVE-2023-0394 Signed-off-by: Yuxuan Luo <yuxuan.luo@canonical.com> Signed-off-by: Timo Aaltonen <timo.aaltonen@canonical.com>
- Loading branch information