kernel_samsung_a53x/net/atm
Hyunwoo Kim 55a5cc2765 atm: Fix Use-After-Free in do_vcc_ioctl
[ Upstream commit 24e90b9e34f9e039f56b5f25f6e6eb92cdd8f4b3 ]

Because do_vcc_ioctl() accesses sk->sk_receive_queue
without holding a sk->sk_receive_queue.lock, it can
cause a race with vcc_recvmsg().
A use-after-free for skb occurs with the following flow.
```
do_vcc_ioctl() -> skb_peek()
vcc_recvmsg() -> skb_recv_datagram() -> skb_free_datagram()
```
Add sk->sk_receive_queue.lock to do_vcc_ioctl() to fix this issue.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Hyunwoo Kim <v4bel@theori.io>
Link: https://lore.kernel.org/r/20231209094210.GA403126@v4bel-B760M-AORUS-ELITE-AX
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-18 12:11:49 +01:00
..
addr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
addr.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
atm_misc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
atm_sysfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
br2684.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
clip.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
common.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
common.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ioctl.c atm: Fix Use-After-Free in do_vcc_ioctl 2024-11-18 12:11:49 +01:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lec.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lec.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lec_arpc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mpc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mpc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mpoa_caches.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mpoa_caches.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mpoa_proc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pppoatm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
proc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
protocols.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pvc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
raw.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
resources.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
resources.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
signaling.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
signaling.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
svc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00