android_kernel_samsung_a7y1.../net
Andrey Konovalov 00674dd247 NFC: fix attrs checks in netlink interface
commit 18917d51472fe3b126a3a8f756c6b18085eb8130 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>
2020-04-07 08:07:28 +02:00
..
6lowpan
9p 9p/virtio: Add cleanup path in p9_virtio_init 2020-04-06 20:04:29 +02:00
802
8021q
appletalk appletalk: enforce CAP_NET_RAW for raw sockets 2020-04-07 07:37:30 +02:00
atm
ax25 ax25: enforce CAP_NET_RAW for raw sockets 2020-04-07 07:37:32 +02:00
batman-adv batman-adv: fix for leaked TVLV handler. 2020-04-06 19:54:11 +02:00
bluetooth Revert "Bluetooth: validate BLE connection interval updates" 2020-04-07 07:35:58 +02:00
bridge bridge/mdb: remove wrong use of NLM_F_MULTI 2020-04-06 21:35:09 +02:00
caif
can
ceph
core net: Fix null de-reference of device refcount 2020-04-06 21:35:17 +02:00
dcb
dccp
decnet
dns_resolver
dsa
ethernet
hsr
ieee802154 ieee802154: enforce CAP_NET_RAW for raw sockets 2020-04-07 07:37:35 +02:00
ipv4 net: ipv4: avoid mixed n_redirects and rate_tokens usage 2020-04-07 08:07:08 +02:00
ipv6 ipv6: drop incoming packets having a v4mapped source address 2020-04-07 08:07:05 +02:00
ipx
irda
iucv
key xfrm: clean up xfrm protocol checks 2020-04-06 21:34:53 +02:00
l2tp compat_ioctl: pppoe: fix PPPOEIOCSFWD handling 2020-04-06 20:28:29 +02:00
l3mdev
lapb
llc
mac80211 mac80211: handle deauthentication/disassociation from TDLS peer 2020-04-07 07:36:45 +02:00
mac802154
mpls
mptcp
ncm
netfilter netfilter: nf_conntrack_ftp: Fix debug output 2020-04-06 21:36:46 +02:00
netlabel
netlink
netrom netrom: hold sock when setting skb->destructor 2020-04-06 20:05:22 +02:00
nfc NFC: fix attrs checks in netlink interface 2020-04-07 08:07:28 +02:00
openvswitch openvswitch: change type of UPCALL_PID attribute to NLA_UNSPEC 2020-04-07 07:37:13 +02:00
packet af_packet: tone down the Tx-ring unsupported spew. 2020-04-06 21:35:03 +02:00
phonet
rds net/rds: Fix error handling in rds_ib_add_one() 2020-04-07 08:07:20 +02:00
rfkill
rose
rxrpc
sched sch_cbq: validate TCA_CBQ_WRROPT to avoid crash 2020-04-07 08:07:22 +02:00
sctp sctp: use transport pf_retrans in sctp_do_8_2_transport_strike 2020-04-06 21:35:23 +02:00
sunrpc
switchdev
tipc tipc: add NULL pointer check before calling kfree_rcu 2020-04-06 21:35:27 +02:00
unix
vmw_vsock
wimax
wireless cfg80211: Purge frame registrations on iftype change 2020-04-07 07:40:43 +02:00
x25
xfrm xfrm: clean up xfrm protocol checks 2020-04-06 21:34:53 +02:00
compat.c
Kconfig
Makefile
socket.c
sysctl_net.c