Thread (7 messages) 7 messages, 4 authors, 12d ago

Re: [PATCH net] ipv6: ndisc: fix NULL deref in accept_untracked_na()

From: Weiming Shi <hidden>
Date: 2026-06-17 13:38:52
Also in: lkml

On Wed Jun 17, 2026 at 4:32 PM CST, Jiayuan Chen wrote:
On 6/17/26 2:55 PM, Weiming Shi wrote:
quoted
accept_untracked_na() re-fetches the inet6_dev with __in6_dev_get(dev)
and dereferences idev->cnf.accept_untracked_na without a NULL check,

Does ipv6_rpl_srh_rcv have same problem?
Hi,

Yes, ipv6_rpl_srh_rcv() has the same missing check. It reads
idev->cnf.rpl_seg_enabled right after __in6_dev_get(skb->dev) with no
NULL check, while seg6 and ioam6 in the same file both check it.

But I tried to trigger it and couldn't. With a guard added as an instrument,
idev never came back NULL over tens of millions of RPL packets while
flapping the MTU, so I can't say it's actually reachable.

Still, it's the only one of the three without the check. Want me to send
a patch adding it there too, for consistency?

Thanks,
Weiming Shi
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help