[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CANn89iKzcsKRngJTTxdA96MbVSx4Y9f17ju9+Otf5axas_esjQ@mail.gmail.com>
Date: Mon, 4 Nov 2024 11:25:05 +0100
From: Eric Dumazet <edumazet@...gle.com>
To: Yi Zou <03zouyi09.25@...il.com>
Cc: davem@...emloft.net, 21210240012@...udan.edu.cn,
21302010073@...udan.edu.cn, dsahern@...nel.org, pabeni@...hat.com,
Markus.Elfring@....de, kuba@...nel.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] ipv6: ip6_fib: fix null-pointer dereference in ipv6_route_native_seq_show()
On Sat, Nov 2, 2024 at 9:08 PM Yi Zou <03zouyi09.25@...il.com> wrote:
>
> Check if fib6_nh is non-NULL before accessing fib6_nh->fib_nh_gw_family
> in ipv6_route_native_seq_show() to prevent a null-pointer dereference.
> Assign dev as dev = fib6_nh ? fib6_nh->fib_nh_dev : NULL to ensure safe
> handling when nexthop_fib6_nh(rt->nh) returns NULL.
>
> Fixes: 0379e8e6a9ef ("ipv6: ip6_fib: avoid NPD in ipv6_route_native_seq_show()")
I could not find this commit in upstream trees.
Please make sure to sort out the details before sending a patch.
Powered by blists - more mailing lists