Skip to content
Commit aa81700c authored by Davide Caratti's avatar Davide Caratti Committed by David S. Miller
Browse files

macsec: fix NULL dereference in macsec_upd_offload()



macsec_upd_offload() gets the value of MACSEC_OFFLOAD_ATTR_TYPE
without checking its presence in the request message, and this causes
a NULL dereference. Fix it rejecting any configuration that does not
include this attribute.

Reported-and-tested-by: default avatar <syzbot+7022ab7c383875c17eff@syzkaller.appspotmail.com>
Fixes: dcb780fb ("net: macsec: add nla support for changing the offloading selection")
Signed-off-by: default avatarDavide Caratti <dcaratti@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent db1f00fb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment