summaryrefslogtreecommitdiff
path: root/drivers/usb/input/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorHyunwoo Kim <imv4bel@gmail.com>2026-03-13 05:26:16 +0900
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2026-03-19 14:42:35 -0400
commit598dbba9919c5e36c54fe1709b557d64120cb94b (patch)
tree2e739ce1b226211858532ab5f7ebccbc8aaf8b4d /drivers/usb/input/git@git.tavy.me:linux.git
parentc65bd945d1c08c3db756821b6bf9f1c4a77b29c6 (diff)
Bluetooth: SCO: Fix use-after-free in sco_recv_frame() due to missing sock_hold
sco_recv_frame() reads conn->sk under sco_conn_lock() but immediately releases the lock without holding a reference to the socket. A concurrent close() can free the socket between the lock release and the subsequent sk->sk_state access, resulting in a use-after-free. Other functions in the same file (sco_sock_timeout(), sco_conn_del()) correctly use sco_sock_hold() to safely hold a reference under the lock. Fix by using sco_sock_hold() to take a reference before releasing the lock, and adding sock_put() on all exit paths. Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Signed-off-by: Hyunwoo Kim <imv4bel@gmail.com> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'drivers/usb/input/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions