Netdev Archive on lore.kernel.org
help / color / mirror / Atom feed
* [BUG] ipv6: possible null-pointer dereference in ip6_xmit()
@ 2021-08-10 13:46 Tuo Li
  0 siblings, 0 replies; only message in thread
From: Tuo Li @ 2021-08-10 13:46 UTC (permalink / raw)
  To: john.fastabend, kpsingh; +Cc: netdev, linux-kernel, bpf, baijiaju1990

Hello,

Our static analysis tool finds a possible null-pointer dereference in 
ip6_output.c in Linux 5.14.0-rc3:

The variable n is checked in:
314:    if (np)

This indicates that it can be NULL. If so, a null-pointer dereference 
will occur
in the called function ip6_autoflowlabel() at Line 320:
252:    if (!np->autoflowlabel_set)

I am not quite sure whether this possible null-pointer dereference is 
real and how to fix it if it is real.
Any feedback would be appreciated, thanks!

Reported-by: TOTE Robot <oslab@tsinghua.edu.cn>

Best wishes,
Tuo Li

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-10 13:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-10 13:46 [BUG] ipv6: possible null-pointer dereference in ip6_xmit() Tuo Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).