cbcvebase.
CVE-2024-27398
published 2024-05-14

CVE-2024-27398: In the Linux kernel, the following vulnerability has been resolved: Bluetooth: Fix use-after-free bugs caused by sco_sock_timeout When the sco connection is…

PriorityP341high7.8CVSS 3.1
AVLACLPRLUINSUCHIHAH
EPSS
0.76%
51.6th percentile
In the Linux kernel, the following vulnerability has been resolved: Bluetooth: Fix use-after-free bugs caused by sco_sock_timeout When the sco connection is established and then, the sco socket is releasing, timeout_work will be scheduled to judge whether the sco disconnection is timeout. The sock will be deallocated later, but it is dereferenced again in sco_sock_timeout. As a result, the use-after-free bugs will happen. The root cause is shown below: Cleanup Thread | Worker Thread sco_sock_release | sco_sock_close | __sco_sock_close | sco_sock_set_timer | schedule_delayed_work | sco_sock_kill | (wait a time) sock_put(sk) //FREE | sco_sock_timeout | sock_hold(sk) //USE The KASAN report triggered by POC is shown below: [ 95.890016] ================================================================== [ 95.890496] BUG: KASAN: slab-use-after-free in sco_sock_timeout+0x5e/0x1c0 [ 95.890755] Write of size 4 at addr ffff88800c388080 by task kworker/0:0/7 ... [ 95.890755] Workqueue: events sco_sock_timeout [ 95.890755] Call Trace: [ 95.890755] [ 95.890755] dump_stack_lvl+0x45/0x110 [ 95.890755] print_address_description+0x78/0x390 [ 95.890755] print_report+0x11b/0x250 [ 95.890755] ? __virt_addr_valid+0xbe/0xf0 [ 95.890755] ? sco_sock_timeout+0x5e/0x1c0 [ 95.890755] kasan_report+0x139/0x170 [ 95.890755] ? update_load_avg+0xe5/0x9f0 [ 95.890755] ? sco_sock_timeout+0x5e/0x1c0 [ 95.890755] kasan_check_range+0x2c3/0x2e0 [ 95.890755] sco_sock_timeout+0x5e/0x1c0 [ 95.890755] process_one_work+0x561/0xc50 [ 95.890755] worker_thread+0xab2/0x13c0 [ 95.890755] ? pr_cont_work+0x490/0x490 [ 95.890755] kthread+0x279/0x300 [ 95.890755] ? pr_cont_work+0x490/0x490 [ 95.890755] ? kthread_blkcg+0xa0/0xa0 [ 95.890755] ret_from_fork+0x34/0x60 [ 95.890755] ? kthread_blkcg+0xa0/0xa0 [ 95.890755] ret_from_fork_asm+0x11/0x20 [ 95.890755] [ 95.890755] [ 95.890755] Allocated by task 506: [ 95.890755] kasan_save_track+0x3f/0x70 [ 95.890755] __kasan_kmalloc+0x86/0x90 [ 95.890755] __kmalloc+0x17f/0x3

Affected

48 ranges· showing 25
VendorProductVersion rangeFixed in
debiandebian_linux
debianlinux< linux 6.1.94-1 (bookworm)linux 6.1.94-1 (bookworm)
fedoraprojectfedora
fedoraprojectfedora
linuxlinux
linuxlinux
linuxlinux
linuxlinux
linuxlinux>= 37d7ae2b0578f2373674a755402ee722e96edc08 < 3212afd00e3cda790fd0583cb3eaef8f9575a0143212afd00e3cda790fd0583cb3eaef8f9575a014
linuxlinux>= 4.14.263 < 4.154.15
linuxlinux>= 4.19.207 < 4.19.3144.19.314
linuxlinux>= 48669c81a65628ef234cbdd91b9395952c7c27fe < 1b33d55fb7355e27f8c82cd4ecd560f1624692491b33d55fb7355e27f8c82cd4ecd560f162469249
linuxlinux>= 5.10.67 < 5.10.2175.10.217
linuxlinux>= 5.13.19 < 5.145.14
linuxlinux>= 5.14.6 < 5.155.15
linuxlinux>= 5.4.148 < 5.4.2765.4.276
linuxlinux>= a1073aad497d0d071a71f61b721966a176d50c08 < 33a6e92161a78c1073d90e27abe28d746feb0a5333a6e92161a78c1073d90e27abe28d746feb0a53
linuxlinux>= ba316be1b6a00db7126ed9a39f9bee434a508043 < 6a18eeb1b3bbc67c20d9609c31dca6a69b4bcde56a18eeb1b3bbc67c20d9609c31dca6a69b4bcde5
linuxlinux>= ba316be1b6a00db7126ed9a39f9bee434a508043 < bfab2c1f7940a232cd519e82fff137e308abfd93bfab2c1f7940a232cd519e82fff137e308abfd93
linuxlinux>= ba316be1b6a00db7126ed9a39f9bee434a508043 < 012363cb1bec5f33a7b94629ab2c1086f30280f2012363cb1bec5f33a7b94629ab2c1086f30280f2
linuxlinux>= ba316be1b6a00db7126ed9a39f9bee434a508043 < 50c2037fc28df870ef29d9728c770c8955d3217850c2037fc28df870ef29d9728c770c8955d32178
linuxlinux>= ba316be1b6a00db7126ed9a39f9bee434a508043 < 483bc08181827fc475643272ffb69c533007e546483bc08181827fc475643272ffb69c533007e546
linuxlinux_kernel
linuxlinux_kernel>= 0 < 5.10.218-15.10.218-1
linuxlinux_kernel>= 0 < 6.1.94-16.1.94-1

CVSS provenance

nvdv3.17.8HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
osv7.8HIGH
vendor_debian7.8HIGH
vendor_redhat7.8HIGH
vendor_ubuntu7.8HIGH
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.