Files
Shigeru Yoshida 40e5444a3a ipv6: Fix potential uninit-value access in __ip6_make_skb()
commit 4e13d3a9c2 upstream.

As it was done in commit fc1092f515 ("ipv4: Fix uninit-value access in
__ip_make_skb()") for IPv4, check FLOWI_FLAG_KNOWN_NH on fl6->flowi6_flags
instead of testing HDRINCL on the socket to avoid a race condition which
causes uninit-value access.

Fixes: ea30388bae ("ipv6: Fix an uninit variable access bug in __ip6_make_skb()")
Signed-off-by: Shigeru Yoshida <syoshida@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
[ Referred stable v6.1.y version of the patch to generate this one
 v6.1 link: a05c1ede50 ]
Signed-off-by: Shubham Kulkarni <skulkarni@mvista.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2026-01-19 13:10:12 +01:00
..
2023-06-14 11:13:02 +02:00
2026-01-19 13:09:56 +01:00
2025-12-07 06:09:22 +09:00
2025-12-07 06:09:22 +09:00