aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/display/dc/basics/custom_float.c
diff options
context:
space:
mode:
authorHyunwoo Kim <v4bel@theori.io>2023-12-09 05:55:18 -0500
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2023-12-15 11:54:18 -0500
commit2e07e8348ea454615e268222ae3fc240421be768 (patch)
tree2f11a56621670d5286765251725e03531e5fce08 /drivers/gpu/drm/amd/display/dc/basics/custom_float.c
parent04a342cc49a8522e99c9b3346371c329d841dcd2 (diff)
Bluetooth: af_bluetooth: Fix Use-After-Free in bt_sock_recvmsg
This can cause a race with bt_sock_ioctl() because bt_sock_recvmsg() gets the skb from sk->sk_receive_queue and then frees it without holding lock_sock. A use-after-free for a skb occurs with the following flow. ``` bt_sock_recvmsg() -> skb_recv_datagram() -> skb_free_datagram() bt_sock_ioctl() -> skb_peek() ``` Add lock_sock to bt_sock_recvmsg() to fix this issue. Cc: stable@vger.kernel.org Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Signed-off-by: Hyunwoo Kim <v4bel@theori.io> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/basics/custom_float.c')
0 files changed, 0 insertions, 0 deletions