# CVE-2025-40309: Bluetooth: SCO: Fix UAF on sco\_conn\_free

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.0
- **CVSS:** 8.0 (v3.1, CNA) `CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Adjacent network; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.41% (percentile 27, 2026-11-26)
- **Published:** 2025-12-08T00:46:34.785Z
- **Modified:** 2026-10-15T22:19:07.700Z

## Who should check

- Anyone running Linux \>= e6720779ae612a14ac4ba7fe4fd5b27d900d932c, \< 391f83547b7b2c63e4b572ab838e10a06cfa4425; \>= e6720779ae612a14ac4ba7fe4fd5b27d900d932c, \< ecb9a843be4d6fd710d7026e359f21015a062572
- Anyone running Linux 6.13

## Description

In the Linux kernel, the following vulnerability has been resolved:

Bluetooth: SCO: Fix UAF on sco\_conn\_free

BUG: KASAN: slab-use-after-free in sco\_conn\_free net/bluetooth/sco.c:87 \[inline\]
BUG: KASAN: slab-use-after-free in kref\_put include/linux/kref.h:65 \[inline\]
BUG: KASAN: slab-use-after-free in sco\_conn\_put+0xdd/0x410
net/bluetooth/sco.c:107
Write of size 8 at addr ffff88811cb96b50 by task kworker/u17:4/352

CPU: 1 UID: 0 PID: 352 Comm: kworker/u17:4 Not tainted
6.17.0-rc5-g717368f83676 \#4 PREEMPT(voluntary)
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.15.0-1 04/01/2014
Workqueue: hci13 hci\_cmd\_sync\_work
Call Trace:
 \<TASK\>
 \_\_dump\_stack lib/dump\_stack.c:94 \[inline\]
 dump\_stack\_lvl+0x10b/0x170 lib/dump\_stack.c:120
 print\_address\_description mm/kasan/report.c:378 \[inline\]
 print\_report+0x191/0x550 mm/kasan/report.c:482
 kasan\_report+0xc4/0x100 mm/kasan/report.c:595
 sco\_conn\_free net/bluetooth/sco.c:87 \[inline\]
 kref\_put include/linux/kref.h:65 \[inline\]
 sco\_conn\_put+0xdd/0x410 net/bluetooth/sco.c:107
 sco\_connect\_cfm+0xb4/0xae0 net/bluetooth/sco.c:1441
 hci\_connect\_cfm include/net/bluetooth/hci\_core.h:2082 \[inline\]
 hci\_conn\_failed+0x20a/0x2e0 net/bluetooth/hci\_conn.c:1313
 hci\_conn\_unlink+0x55f/0x810 net/bluetooth/hci\_conn.c:1121
 hci\_conn\_del+0xb6/0x1110 net/bluetooth/hci\_conn.c:1147
 hci\_abort\_conn\_sync+0x8c5/0xbb0 net/bluetooth/hci\_sync.c:5689
 hci\_cmd\_sync\_work+0x281/0x380 net/bluetooth/hci\_sync.c:332
 process\_one\_work kernel/workqueue.c:3236 \[inline\]
 process\_scheduled\_works+0x77e/0x1040 kernel/workqueue.c:3319
 worker\_thread+0xbee/0x1200 kernel/workqueue.c:3400
 kthread+0x3c7/0x870 kernel/kthread.c:463
 ret\_from\_fork+0x13a/0x1e0 arch/x86/kernel/process.c:148
 ret\_from\_fork\_asm+0x1a/0x30 arch/x86/entry/entry\_64.S:245
 \</TASK\>

Allocated by task 31370:
 kasan\_save\_stack mm/kasan/common.c:47 \[inline\]
 kasan\_save\_track+0x30/0x70 mm/kasan/common.c:68
 poison\_kmalloc\_redzone mm/kasan/common.c:388 \[inline\]
 \_\_kasan\_kmalloc+0x82/0x90 mm/kasan/common.c:405
 kasan\_kmalloc include/linux/kasan.h:260 \[inline\]
 \_\_do\_kmalloc\_node mm/slub.c:4382 \[inline\]
 \_\_kmalloc\_noprof+0x22f/0x390 mm/slub.c:4394
 kmalloc\_noprof include/linux/slab.h:909 \[inline\]
 sk\_prot\_alloc+0xae/0x220 net/core/sock.c:2239
 sk\_alloc+0x34/0x5a0 net/core/sock.c:2295
 bt\_sock\_alloc+0x3c/0x330 net/bluetooth/af\_bluetooth.c:151
 sco\_sock\_alloc net/bluetooth/sco.c:562 \[inline\]
 sco\_sock\_create+0xc0/0x350 net/bluetooth/sco.c:593
 bt\_sock\_create+0x161/0x3b0 net/bluetooth/af\_bluetooth.c:135
 \_\_sock\_create+0x3ad/0x780 net/socket.c:1589
 sock\_create net/socket.c:1647 \[inline\]
 \_\_sys\_socket\_create net/socket.c:1684 \[inline\]
 \_\_sys\_socket+0xd5/0x330 net/socket.c:1731
 \_\_do\_sys\_socket net/socket.c:1745 \[inline\]
 \_\_se\_sys\_socket net/socket.c:1743 \[inline\]
 \_\_x64\_sys\_socket+0x7a/0x90 net/socket.c:1743
 do\_syscall\_x64 arch/x86/entry/syscall\_64.c:63 \[inline\]
 do\_syscall\_64+0xc7/0x240 arch/x86/entry/syscall\_64.c:94
 entry\_SYSCALL\_64\_after\_hwframe+0x77/0x7f

Freed by task 31374:
 kasan\_save\_stack mm/kasan/common.c:47 \[inline\]
 kasan\_save\_track+0x30/0x70 mm/kasan/common.c:68
 kasan\_save\_free\_info+0x40/0x50 mm/kasan/generic.c:576
 poison\_slab\_object mm/kasan/common.c:243 \[inline\]
 \_\_kasan\_slab\_free+0x3d/0x50 mm/kasan/common.c:275
 kasan\_slab\_free include/linux/kasan.h:233 \[inline\]
 slab\_free\_hook mm/slub.c:2428 \[inline\]
 slab\_free mm/slub.c:4701 \[inline\]
 kfree+0x199/0x3b0 mm/slub.c:4900
 sk\_prot\_free net/core/sock.c:2278 \[inline\]
 \_\_sk\_destruct+0x4aa/0x630 net/core/sock.c:2373
 sco\_sock\_release+0x2ad/0x300 net/bluetooth/sco.c:1333
 \_\_sock\_release net/socket.c:649 \[inline\]
 sock\_close+0xb8/0x230 net/socket.c:1439
 \_\_fput+0x3d1/0x9e0 fs/file\_table.c:468
 task\_work\_run+0x206/0x2a0 kernel/task\_work.c:227
 get\_signal+0x1201/0x1410 kernel/signal.c:2807
 arch\_do\_signal\_or\_restart+0x34/0x740 arch/x86/kernel/signal.c:337
 exit\_to\_user\_mode\_loop+0x68/0xc0 kernel/entry/common.c:40
 exit\_to\_user\_mode\_prepare include/linux/irq-entry-common.h:225 \[inline\]
 s
---truncated---

## Affected and fixed versions

- Linux: \>= e6720779ae612a14ac4ba7fe4fd5b27d900d932c, \< 391f83547b7b2c63e4b572ab838e10a06cfa4425; \>= e6720779ae612a14ac4ba7fe4fd5b27d900d932c, \< ecb9a843be4d6fd710d7026e359f21015a062572 (cvelist)
- Linux: 6.13 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-40309. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-40309.md
Affected: Linux >= e6720779ae612a14ac4ba7fe4fd5b27d900d932c, < 391f83547b7b2c63e4b572ab838e10a06cfa4425; >= e6720779ae612a14ac4ba7fe4fd5b27d900d932c, < ecb9a843be4d6fd710d7026e359f21015a062572; Linux 6.13
Fixed in: Linux 391f83547b7b2c63e4b572ab838e10a06cfa4425

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-40309 being exploited?

There is no confirmed exploitation: CVE-2025-40309 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.41% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-40309?

High: CVSS 8.0 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-40309?

Linux \>= e6720779ae612a14ac4ba7fe4fd5b27d900d932c, \< 391f83547b7b2c63e4b572ab838e10a06cfa4425; \>= e6720779ae612a14ac4ba7fe4fd5b27d900d932c, \< ecb9a843be4d6fd710d7026e359f21015a062572; Linux 6.13.

### Is there a fix for CVE-2025-40309?

Yes. Fixed in Linux 391f83547b7b2c63e4b572ab838e10a06cfa4425. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-40309?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/391f83547b7b2c63e4b572ab838e10a06cfa4425>
- other: <https://git.kernel.org/stable/c/ecb9a843be4d6fd710d7026e359f21015a062572>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-40309>

HTML: <https://flawdb.com/CVE-2025-40309> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-40309>
