diff options
author | Miquel Raynal <miquel.raynal@bootlin.com> | 2023-03-01 18:44:50 +0300 |
---|---|---|
committer | Stefan Schmidt <stefan@datenfreihafen.org> | 2023-03-02 16:39:48 +0300 |
commit | 02f18662f6c671382345fcb696e808d78f4c194a (patch) | |
tree | 3758ec8613ed2cbed5788b9a2fde6455470d23fb /Documentation | |
parent | 6c993779ea1d0cccdb3a5d7d45446dd229e610a3 (diff) | |
download | linux-02f18662f6c671382345fcb696e808d78f4c194a.tar.xz |
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 <sanan.hasanov@Knights.ucf.edu>
Suggested-by: Eric Dumazet <edumazet@google.com>
Fixes: a0b6106672b5 ("ieee802154: Convert scan error messages to extack")
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/r/20230301154450.547716-1-miquel.raynal@bootlin.com
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions