Files
linux/net
Mateusz Jurczyk ecb7abed0b nfc: Ensure presence of required attributes in the activate_target handler
commit a0323b979f upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-07-27 15:06:03 -07:00
..
2017-05-02 21:19:55 -07:00
2015-03-02 16:43:41 -05:00
2015-11-23 14:56:15 -05:00
2015-11-02 22:47:14 -05:00
2015-10-07 04:27:43 -07:00
2015-10-21 00:49:24 +02:00