Files
linux/net
Andrey Konovalov c8a65ec060 NFC: fix attrs checks in netlink interface
commit 18917d5147 upstream.

nfc_genl_deactivate_target() relies on the NFC_ATTR_TARGET_INDEX
attribute being present, but doesn't check whether it is actually
provided by the user. Same goes for nfc_genl_fw_download() and
NFC_ATTR_FIRMWARE_NAME.

This patch adds appropriate checks.

Found with syzkaller.

Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-10-07 18:57:28 +02:00
..
2019-10-07 18:57:24 +02:00
2019-10-07 18:57:24 +02:00
2019-06-22 08:15:13 +02:00
2019-03-23 20:09:51 +01:00
2019-08-29 08:28:59 +02:00
2019-09-06 10:22:06 +02:00
2018-07-24 14:10:42 -07:00
2019-03-19 13:12:40 +01:00
2019-01-09 17:38:33 +01:00
2018-07-24 14:10:43 -07:00