mbox series

[0/2] net: ieee802154: fix logic errors

Message ID 20210423040214.15438-1-dan@dlrobertson.com (mailing list archive)
Headers show
Series net: ieee802154: fix logic errors | expand

Message

Dan Robertson April 23, 2021, 4:02 a.m. UTC
I hit two null derefs due to logic errors.

 - ieee802154_llsec_parse_key_id null deref if PAN ID is null.
 - ieee802154_llsec_parse_dev_addr null deref if the given mode
   does not match the given address.

New to ieee802154, so feedback would definitely be appreciated.

Dan Robertson (2):
  net: ieee802154: fix null deref in parse dev addr
  net: ieee802154: fix null deref in parse key id

 net/ieee802154/nl-mac.c   | 2 +-
 net/ieee802154/nl802154.c | 9 +++++----
 2 files changed, 6 insertions(+), 5 deletions(-)