aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorMiquel Raynal <[email protected]>2023-03-01 15:44:50 +0000
committerStefan Schmidt <[email protected]>2023-03-02 13:39:48 +0000
commit02f18662f6c671382345fcb696e808d78f4c194a (patch)
tree3758ec8613ed2cbed5788b9a2fde6455470d23fb /net/unix/af_unix.c
parentca8210: fix mac_len negative array access (diff)
downloadkernel-02f18662f6c671382345fcb696e808d78f4c194a.tar.gz
kernel-02f18662f6c671382345fcb696e808d78f4c194a.zip
ieee802154: Prevent user from crashing the host
Avoid crashing the machine by checking info->attrs[NL802154_ATTR_SCAN_TYPE] presence before de-referencing it, which was the primary intend of the blamed patch. Reported-by: Sanan Hasanov <[email protected]> Suggested-by: Eric Dumazet <[email protected]> Fixes: a0b6106672b5 ("ieee802154: Convert scan error messages to extack") Signed-off-by: Miquel Raynal <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stefan Schmidt <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions