{"id":"CVE-2026-31408","summary":"Bluetooth: SCO: Fix use-after-free in sco_recv_frame() due to missing sock_hold","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: SCO: Fix use-after-free in sco_recv_frame() due to missing sock_hold\n\nsco_recv_frame() reads conn-\u003esk under sco_conn_lock() but immediately\nreleases the lock without holding a reference to the socket. A concurrent\nclose() can free the socket between the lock release and the subsequent\nsk-\u003esk_state access, resulting in a use-after-free.\n\nOther functions in the same file (sco_sock_timeout(), sco_conn_del())\ncorrectly use sco_sock_hold() to safely hold a reference under the lock.\n\nFix by using sco_sock_hold() to take a reference before releasing the\nlock, and adding sock_put() on all exit paths.","modified":"2026-04-14T03:47:38.699623Z","published":"2026-04-06T07:38:20.533Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31408.json","cna_assigner":"Linux"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/108b81514d8f2535eb16651495cefb2250528db3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/45aaca995e4a7a05b272a58e7ab2fff4f611b8f1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/598dbba9919c5e36c54fe1709b557d64120cb94b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7197462e90b8ce15caa1ae15d4bc2bb8cd21b11e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b0a7da0e3f7442545f071499beb36374714bb9de"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e76e8f0581ef555eacc11dbb095e602fb30a5361"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31408.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31408"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2"},{"fixed":"b0a7da0e3f7442545f071499beb36374714bb9de"},{"fixed":"45aaca995e4a7a05b272a58e7ab2fff4f611b8f1"},{"fixed":"108b81514d8f2535eb16651495cefb2250528db3"},{"fixed":"7197462e90b8ce15caa1ae15d4bc2bb8cd21b11e"},{"fixed":"e76e8f0581ef555eacc11dbb095e602fb30a5361"},{"fixed":"598dbba9919c5e36c54fe1709b557d64120cb94b"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-31408.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.6.12"},{"fixed":"6.1.168"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.131"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.80"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.21"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"6.19.11"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-31408.json"}}],"schema_version":"1.7.5"}