linux-wpan.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] net: ieee802154: fix logic errors
@ 2021-04-23  4:02 Dan Robertson
  2021-04-23  4:02 ` [PATCH 1/2] net: ieee802154: fix null deref in parse dev addr Dan Robertson
  2021-04-23  4:02 ` [PATCH 2/2] net: ieee802154: fix null deref in parse key id Dan Robertson
  0 siblings, 2 replies; 8+ messages in thread
From: Dan Robertson @ 2021-04-23  4:02 UTC (permalink / raw)
  To: Alexander Aring, Stefan Schmidt, David S . Miller, linux-wpan, netdev
  Cc: Dan Robertson

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(-)

-- 
2.31.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-04-23 15:11 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-23  4:02 [PATCH 0/2] net: ieee802154: fix logic errors Dan Robertson
2021-04-23  4:02 ` [PATCH 1/2] net: ieee802154: fix null deref in parse dev addr Dan Robertson
2021-04-23 13:25   ` Alexander Aring
2021-04-23 15:10     ` Stefan Schmidt
2021-04-23  4:02 ` [PATCH 2/2] net: ieee802154: fix null deref in parse key id Dan Robertson
2021-04-23 13:28   ` Alexander Aring
2021-04-23 14:35     ` Dan Robertson
2021-04-23 14:59       ` Stefan Schmidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).