Message ID | 20240925013857.98685-2-koichiro.den@canonical.com |
---|---|
State | New |
Headers | show |
Series | CVE-2024-44987 | expand |
diff --git a/net/ipv6/ip6_output.c b/net/ipv6/ip6_output.c index 9e8f56177c84..3429093004fa 100644 --- a/net/ipv6/ip6_output.c +++ b/net/ipv6/ip6_output.c @@ -1955,6 +1955,7 @@ int ip6_send_skb(struct sk_buff *skb) struct rt6_info *rt = dst_rt6_info(skb_dst(skb)); int err; + rcu_read_lock(); err = ip6_local_out(net, skb->sk, skb); if (err) { if (err > 0) @@ -1964,6 +1965,7 @@ int ip6_send_skb(struct sk_buff *skb) IPSTATS_MIB_OUTDISCARDS); } + rcu_read_unlock(); return err; }