kernel_samsung_a53x/net/nfc
Krzysztof Kozlowski c13e92f57a nfc: nci: fix possible NULL pointer dereference in send_acknowledge()
commit 7937609cd387246aed994e81aa4fa951358fba41 upstream.

Handle memory allocation failure from nci_skb_alloc() (calling
alloc_skb()) to avoid possible NULL pointer dereference.

Reported-by: 黄思聪 <huangsicong@iie.ac.cn>
Fixes: 391d8a2da787 ("NFC: Add NCI over SPI receive")
Cc: <stable@vger.kernel.org>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20231013184129.18738-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-08 11:26:08 +01:00
..
hci Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nci nfc: nci: fix possible NULL pointer dereference in send_acknowledge() 2024-11-08 11:26:08 +01:00
af_nfc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
digital.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
digital_core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
digital_dep.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
digital_technology.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
llcp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
llcp_commands.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
llcp_core.c net: nfc: fix races in nfc_llcp_sock_get() and nfc_llcp_sock_get_sn() 2024-11-08 11:25:46 +01:00
llcp_sock.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
netlink.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nfc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rawsock.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00