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
Raw File
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
.get_maintainer.ignore
Christoph Hellwig <hch@lst.de>
Marc Gonzalez <marc.w.gonzalez@free.fr>
back to top