[BUG] ipv6: possible null-pointer dereference in ip6_xmit()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx>

Best wishes,
Tuo Li



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux