Hyunwoo Kim
598dbba991
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: 1da177e4c3 ("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 >
2026-03-19 14:42:35 -04:00
..
2025-07-10 15:27:32 -07:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-03-14 08:05:47 -07:00
2026-02-21 17:09:51 -08:00
2026-03-18 17:41:00 -07:00
2026-03-19 14:42:35 -04:00
2026-02-21 17:09:51 -08:00
2026-03-12 18:33:52 -07:00
2026-02-21 17:09:51 -08:00
2026-03-02 10:24:40 +01:00
2026-02-21 20:03:00 -08:00
2026-03-11 19:04:55 -07:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2025-11-04 12:36:51 +01:00
2026-02-21 17:09:51 -08:00
2026-03-16 19:29:45 -07:00
2026-02-21 20:03:00 -08:00
2026-02-21 01:02:28 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-03-19 09:27:36 -07:00
2026-03-18 17:23:43 -07:00
2026-02-21 17:09:51 -08:00
2026-02-23 17:26:55 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2025-04-15 17:54:56 -07:00
2026-02-21 01:02:28 -08:00
2026-02-21 01:02:28 -08:00
2026-03-18 09:09:58 +01:00
2026-03-16 19:29:45 -07:00
2026-03-10 11:38:36 +01:00
2026-03-12 19:25:59 -07:00
2026-03-19 09:37:48 -07:00
2026-03-06 17:34:48 -08:00
2026-03-19 10:27:07 +01:00
2026-02-21 17:09:51 -08:00
2026-02-21 20:03:00 -08:00
2026-02-21 17:09:51 -08:00
2026-03-04 18:18:57 -08:00
2026-02-21 20:03:00 -08:00
2026-02-21 20:03:00 -08:00
2026-03-16 19:29:45 -07:00
2026-02-21 01:02:28 -08:00
2026-02-26 08:00:13 -08:00
2026-02-21 17:09:51 -08:00
2026-03-03 12:57:06 +01:00
2026-02-21 17:09:51 -08:00
2026-03-12 19:23:59 -07:00
2026-03-06 17:49:52 -08:00
2026-03-17 12:09:16 +01:00
2026-02-21 17:09:51 -08:00
2026-03-19 13:47:15 +01:00
2026-03-16 19:31:28 -07:00
2025-11-13 12:35:38 -08:00
2026-02-21 20:03:00 -08:00
2026-02-21 01:02:28 -08:00
2026-03-11 18:56:28 -07:00
2026-02-26 08:00:13 -08:00
2026-03-12 13:37:18 -07:00
2026-02-26 08:00:13 -08:00
2026-03-06 12:41:59 +01:00
2026-02-21 01:02:28 -08:00
2026-02-28 08:55:11 -08:00
2026-02-26 08:00:13 -08:00
2025-11-26 13:45:23 -07:00
2025-10-17 16:29:26 -07:00
2025-09-18 12:32:06 +02:00
2026-02-24 11:27:29 +01:00