]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: ieee802154: nl-mac: fix check on panid
authorAlexander Aring <aahringo@redhat.com>
Sun, 28 Feb 2021 15:18:03 +0000 (10:18 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Apr 2021 06:47:25 +0000 (08:47 +0200)
commitbaf5e98edb8bfb07b8d9fa8fd45f6813e77f58c9
treec09bf94597da833a9cdb5ef21876a6d36792decd
parent743c9072afafd1919b41ae319044513ed014a58f
net: ieee802154: nl-mac: fix check on panid

commit 6f7f657f24405f426212c09260bf7fe8a52cef33 upstream.

This patch fixes a null pointer derefence for panid handle by move the
check for the netlink variable directly before accessing them.

Reported-by: syzbot+d4c07de0144f6f63be3a@syzkaller.appspotmail.com
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Link: https://lore.kernel.org/r/20210228151817.95700-4-aahringo@redhat.com
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ieee802154/nl-mac.c