Merge CVE-2021-3760 bugfix patch, and the source of the patch

is as follows:
	1b1499a nfc: nci: fix the UAF of rf_conn_info object

Signed-off-by: Jianping Liu <frankjpliu@tencent.com>
This commit is contained in:
wangyong 2022-09-15 20:44:41 -07:00 committed by Jianping Liu
parent 6d6ee45625
commit 70f373423d
1 changed files with 2 additions and 0 deletions

View File

@ -277,6 +277,8 @@ static void nci_core_conn_close_rsp_packet(struct nci_dev *ndev,
ndev->cur_conn_id);
if (conn_info) {
list_del(&conn_info->list);
if (conn_info == ndev->rf_conn_info)
ndev->rf_conn_info = NULL;
devm_kfree(&ndev->nfc_dev->dev, conn_info);
}
}