android_kernel_motorola_sm6375/net/nfc
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Lv Yunlong 24c54e0a97 net:nfc:digital: Fix a double free in digital_tg_recv_dep_req
[ Upstream commit 75258586793efc521e5dd52a5bf6c7a4cf7002be ]

In digital_tg_recv_dep_req, it calls nfc_tm_data_received(..,resp).
If nfc_tm_data_received() failed, the callee will free the resp via
kfree_skb() and return error. But in the exit branch, the resp
will be freed again.

My patch sets resp to NULL if nfc_tm_data_received() failed, to
avoid the double free.

Fixes: 1c7a4c24fb ("NFC Digital: Add target NFC-DEP support")
Signed-off-by: Lv Yunlong <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
2021-05-14 09:44:32 +02:00
..
hci
nci
af_nfc.c
core.c
digital.h
digital_core.c
digital_dep.c net:nfc:digital: Fix a double free in digital_tg_recv_dep_req 2021-05-14 09:44:32 +02:00
digital_technology.c
Kconfig
llcp.h
llcp_commands.c
llcp_core.c
llcp_sock.c net/nfc: fix use-after-free llcp_sock_bind/connect 2021-05-14 09:44:10 +02:00
Makefile
netlink.c NFC: fix possible resource leak 2021-02-03 23:26:01 +01:00
nfc.h
rawsock.c NFC: fix resource leak when target index is invalid 2021-02-03 23:26:01 +01:00