https://github.com/torvalds/linux
Revision 864db232dc7036aa2de19749c3d5be0143b24f8f authored by Muhammad Usama Anjum on 08 April 2021, 22:01:29 UTC, committed by David S. Miller on 08 April 2021, 23:41:46 UTC
nlh is being checked for validtity two times when it is dereferenced in
this function. Check for validity again when updating the flags through
nlh pointer to make the dereferencing safe.

CC: <stable@vger.kernel.org>
Addresses-Coverity: ("NULL pointer dereference")
Signed-off-by: Muhammad Usama Anjum <musamaanjum@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 2d1b50a
History
Tip revision: 864db232dc7036aa2de19749c3d5be0143b24f8f authored by Muhammad Usama Anjum on 08 April 2021, 22:01:29 UTC
net: ipv6: check for validity before dereferencing cfg->fc_nlinfo.nlh
Tip revision: 864db23
File Mode Size
Documentation
LICENSES
arch
block
certs
crypto
drivers
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.clang-format -rw-r--r-- 16.4 KB
.cocciconfig -rw-r--r-- 59 bytes
.get_maintainer.ignore -rw-r--r-- 71 bytes
.gitattributes -rw-r--r-- 62 bytes
.gitignore -rw-r--r-- 1.9 KB
.mailmap -rw-r--r-- 18.7 KB
COPYING -rw-r--r-- 496 bytes
CREDITS -rw-r--r-- 98.3 KB
Kbuild -rw-r--r-- 1.3 KB
Kconfig -rw-r--r-- 555 bytes
MAINTAINERS -rw-r--r-- 577.3 KB
Makefile -rw-r--r-- 64.7 KB
README -rw-r--r-- 727 bytes

README

back to top