]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
net: ieee802154: fix nl802154 del llsec key
authorAlexander Aring <aahringo@redhat.com>
Sun, 21 Feb 2021 17:43:18 +0000 (12:43 -0500)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 7 May 2021 07:53:47 +0000 (09:53 +0200)
commit9b4a0fe7a3f382a85eb886f3854b43cf6ed205bf
tree6db194297dcf0820c1517aa6f60b063238bf011a
parentc5159ee1bc73682198bbf75f3c5674fb8dbca19d
net: ieee802154: fix nl802154 del llsec key

BugLink: https://bugs.launchpad.net/bugs/1926368
commit 37feaaf5ceb2245e474369312bb7b922ce7bce69 upstream.

This patch fixes a nullpointer dereference if NL802154_ATTR_SEC_KEY is
not set by the user. If this is the case nl802154 will return -EINVAL.

Reported-by: syzbot+ac5c11d2959a8b3c4806@syzkaller.appspotmail.com
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Link: https://lore.kernel.org/r/20210221174321.14210-1-aahringo@redhat.com
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
net/ieee802154/nl802154.c