summaryrefslogtreecommitdiffstats
path: root/drivers/acpi
diff options
context:
space:
mode:
authorXiaoming Ni <nixiaoming@huawei.com>2021-03-25 11:51:10 +0800
committerDavid S. Miller <davem@davemloft.net>2021-03-25 17:02:01 -0700
commitc33b1cc62ac05c1dbb1cdafe2eb66da01c76ca8d (patch)
tree763ad4e04bee68f42c9402f163ddddffac129d8c /drivers/acpi
parentd75135082698140a26a56defe1bbc1b06f26a41f (diff)
downloadlinux-stable-c33b1cc62ac05c1dbb1cdafe2eb66da01c76ca8d.tar.gz
linux-stable-c33b1cc62ac05c1dbb1cdafe2eb66da01c76ca8d.tar.bz2
linux-stable-c33b1cc62ac05c1dbb1cdafe2eb66da01c76ca8d.zip
nfc: fix refcount leak in llcp_sock_bind()
nfc_llcp_local_get() is invoked in llcp_sock_bind(), 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-25670 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/acpi')
0 files changed, 0 insertions, 0 deletions