Mateusz Jurczyk a0323b979f nfc: Ensure presence of required attributes in the activate_target handler
Check that the NFC_ATTR_TARGET_INDEX and NFC_ATTR_PROTOCOLS attributes (in
addition to NFC_ATTR_DEVICE_INDEX) are provided by the netlink client
prior to accessing them. This prevents potential unhandled NULL pointer
dereference exceptions which can be triggered by malicious user-mode
programs, if they omit one or both of these attributes.

Signed-off-by: Mateusz Jurczyk <mjurczyk@google.com>
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
2017-06-23 00:28:39 +02:00
..
2017-04-12 22:02:40 +02:00
2017-05-19 15:06:48 -07:00
2017-06-17 22:54:01 -04:00
2017-06-17 22:54:01 -04:00
2017-06-17 22:59:45 -04:00
2017-06-12 15:21:20 -04:00
2017-06-17 22:54:01 -04:00
2017-06-17 22:54:01 -04:00
2017-06-17 22:56:46 -04:00
2017-06-17 22:54:01 -04:00
2017-06-15 12:12:40 -04:00
2017-06-15 12:12:40 -04:00