android_kernel_motorola_sm6375/net/nfc
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Defang Bo 68db21094e nfc: Ensure presence of NFC_ATTR_FIRMWARE_NAME attribute in nfc_genl_fw_download()
[ Upstream commit 280e3ebdafb863b3cb50d5842f056267e15bf40c ]

Check that the NFC_ATTR_FIRMWARE_NAME attributes 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.

Similar to commit a0323b979f ("nfc: Ensure presence of required attributes in the activate_target handler").

Fixes: 9674da8759 ("NFC: Add firmware upload netlink command")
Signed-off-by: Defang Bo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2020-10-29 09:57:26 +01:00
..
hci net: nfc: fix bounds checking bugs on "pipe" 2020-03-18 07:17:41 +01:00
nci net: nfc: nci: fix a possible sleep-in-atomic-context bug in nci_uart_tty_receive() 2019-12-31 16:41:23 +01:00
af_nfc.c
core.c
digital.h
digital_core.c
digital_dep.c
digital_technology.c
Kconfig
llcp.h
llcp_commands.c
llcp_core.c
llcp_sock.c net: use skb_queue_empty_lockless() in poll() handlers 2019-10-28 13:33:41 -07:00
Makefile
netlink.c nfc: Ensure presence of NFC_ATTR_FIRMWARE_NAME attribute in nfc_genl_fw_download() 2020-10-29 09:57:26 +01:00
nfc.h
rawsock.c net/nfc/rawsock.c: add CAP_NET_RAW check. 2020-08-19 08:16:22 +02:00