diff options
author | Xiaoming Ni <nixiaoming@huawei.com> | 2021-03-25 11:51:11 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-03-25 17:02:01 -0700 |
commit | 8a4cd82d62b5ec7e5482333a72b58a4eea4979f0 (patch) | |
tree | a2aceb4a5f1e39498f692eeaaf45521a2f24dcaf /drivers/iommu | |
parent | c33b1cc62ac05c1dbb1cdafe2eb66da01c76ca8d (diff) | |
download | linux-8a4cd82d62b5ec7e5482333a72b58a4eea4979f0.tar.bz2 |
nfc: fix refcount leak in llcp_sock_connect()
nfc_llcp_local_get() is invoked in llcp_sock_connect(),
but nfc_llcp_local_put() is not invoked in subsequent failure branches.
As a result, refcount leakage occurs.
To fix it, add calling nfc_llcp_local_put().
fix CVE-2020-25671
Fixes: c7aa12252f51 ("NFC: Take a reference on the LLCP local pointer when creating a socket")
Reported-by: "kiyin(尹亮)" <kiyin@tencent.com>
Link: https://www.openwall.com/lists/oss-security/2020/11/01/1
Cc: <stable@vger.kernel.org> #v3.6
Signed-off-by: Xiaoming Ni <nixiaoming@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/iommu')
0 files changed, 0 insertions, 0 deletions