nfc: nci: fix the UAF of rf_conn_info object

The nci_core_conn_close_rsp_packet() function will release the conn_info
with given conn_id. However, it needs to set the rf_conn_info to NULL to
prevent other routines like nci_rf_intf_activated_ntf_packet() to trigger
the UAF.

Reviewed-by: Krzysztof Kozlowski <>
Signed-off-by: Lin Ma <>
Signed-off-by: Krzysztof Kozlowski <>
Signed-off-by: David S. Miller <>
1 file changed