# CVE-2024-27398: Bluetooth: Fix use-after-free bugs caused by sco\_sock\_timeout

> 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:** 1.03% (percentile 63, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2024-05-13T10:22:26.624Z
- **Modified:** 2026-08-05T11:29:32.448Z

## Who should check

- Anyone running Linux \>= 48669c81a65628ef234cbdd91b9395952c7c27fe, \< 1b33d55fb7355e27f8c82cd4ecd560f162469249; \>= 37d7ae2b0578f2373674a755402ee722e96edc08, \< 3212afd00e3cda790fd0583cb3eaef8f9575a014; \>= a1073aad497d0d071a71f61b721966a176d50c08, \< 33a6e92161a78c1073d90e27abe28d746feb0a53; \>= ba316be1b6a00db7126ed9a39f9bee434a508043, \< 6a18eeb1b3bbc67c20d9609c31dca6a69b4bcde5; \>= ba316be1b6a00db7126ed9a39f9bee434a508043, \< bfab2c1f7940a232cd519e82fff137e308abfd93; \>= ba316be1b6a00db7126ed9a39f9bee434a508043, \< 012363cb1bec5f33a7b94629ab2c1086f30280f2; \>= ba316be1b6a00db7126ed9a39f9bee434a508043, \< 50c2037fc28df870ef29d9728c770c8955d32178; \>= ba316be1b6a00db7126ed9a39f9bee434a508043, \< 483bc08181827fc475643272ffb69c533007e546; fea63ccd928c01573306983346588b26cffb5572; ec1f74319bb35c1c90c25014ec0f6ea6c3ca2134; …
- Anyone running Linux 5.15

## Description

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\]  \<TASK\>
\[   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\]  \</TASK\>
\[   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/0x360
\[   95.890755\]  sk\_prot\_alloc+0xe1/0x1a0
\[   95.890755\]  sk\_alloc+0x31/0x4e0
\[   95.890755\]  bt\_sock\_alloc+0x2b/0x2a0
\[   95.890755\]  sco\_sock\_create+0xad/0x320
\[   95.890755\]  bt\_sock\_create+0x145/0x320
\[   95.890755\]  \_\_sock\_create+0x2e1/0x650
\[   95.890755\]  \_\_sys\_socket+0xd0/0x280
\[   95.890755\]  \_\_x64\_sys\_socket+0x75/0x80
\[   95.890755\]  do\_syscall\_64+0xc4/0x1b0
\[   95.890755\]  entry\_SYSCALL\_64\_after\_hwframe+0x67/0x6f
\[   95.890755\]
\[   95.890755\] Freed by task 506:
\[   95.890755\]  kasan\_save\_track+0x3f/0x70
\[   95.890755\]  kasan\_save\_free\_info+0x40/0x50
\[   95.890755\]  poison\_slab\_object+0x118/0x180
\[   95.890755\]  \_\_kasan\_slab\_free+0x12/0x30
\[   95.890755\]  kfree+0xb2/0x240
\[   95.890755\]  \_\_sk\_destruct+0x317/0x410
\[   95.890755\]  sco\_sock\_release+0x232/0x280
\[   95.890755\]  sock\_close+0xb2/0x210
\[   95.890755\]  \_\_fput+0x37f/0x770
\[   95.890755\]  task\_work\_run+0x1ae/0x210
\[   95.890755\]  get\_signal+0xe17/0xf70
\[   95.890755\]  arch\_do\_signal\_or\_restart+0x3f/0x520
\[   95.890755\]  syscall\_exit\_to\_user\_mode+0x55/0x120
\[   95.890755\]  do\_syscall\_64+0xd1/0x1b0
\[   95.890755\]  entry\_SYSCALL\_64\_after\_hwframe+0x67/0x6f
\[   95.890755\]
\[   95.890755\] The buggy address belongs to the object at ffff88800c388000
\[   95.890755\]  which belongs to the cache kmalloc-1k of size 1024
\[   95.890755\] The buggy address is located 128 bytes inside of
\[   95.890755\]  freed 1024-byte region \[ffff88800c388000, ffff88800c388400)
\[   95.890755\]
\[   95.890755\] The buggy address belongs to the physical page:
\[   95.890755\] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88800c38a800 pfn:0xc388
\[   95.890755\] head: order:3 entire\_mapcount:0 nr\_pages\_mapped:0 pincount:0
\[   95.890755\] ano
---truncated---

## Affected and fixed versions

- Linux: \>= 48669c81a65628ef234cbdd91b9395952c7c27fe, \< 1b33d55fb7355e27f8c82cd4ecd560f162469249; \>= 37d7ae2b0578f2373674a755402ee722e96edc08, \< 3212afd00e3cda790fd0583cb3eaef8f9575a014; \>= a1073aad497d0d071a71f61b721966a176d50c08, \< 33a6e92161a78c1073d90e27abe28d746feb0a53; \>= ba316be1b6a00db7126ed9a39f9bee434a508043, \< 6a18eeb1b3bbc67c20d9609c31dca6a69b4bcde5; \>= ba316be1b6a00db7126ed9a39f9bee434a508043, \< bfab2c1f7940a232cd519e82fff137e308abfd93; \>= ba316be1b6a00db7126ed9a39f9bee434a508043, \< 012363cb1bec5f33a7b94629ab2c1086f30280f2; \>= ba316be1b6a00db7126ed9a39f9bee434a508043, \< 50c2037fc28df870ef29d9728c770c8955d32178; \>= ba316be1b6a00db7126ed9a39f9bee434a508043, \< 483bc08181827fc475643272ffb69c533007e546; fea63ccd928c01573306983346588b26cffb5572; ec1f74319bb35c1c90c25014ec0f6ea6c3ca2134; … (cvelist)
- Linux: 5.15 (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-2024-27398. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-27398.md
Affected: Linux >= 48669c81a65628ef234cbdd91b9395952c7c27fe, < 1b33d55fb7355e27f8c82cd4ecd560f162469249; >= 37d7ae2b0578f2373674a755402ee722e96edc08, < 3212afd00e3cda790fd0583cb3eaef8f9575a014; >= a1073aad497d0d071a71f61b721966a176d50c08, < 33a6e92161a78c1073d90e27abe28d746feb0a53; >= ba316be1b6a00db7126ed9a…
Fixed in: Linux 1b33d55fb7355e27f8c82cd4ecd560f162469249, Linux 3212afd00e3cda790fd0583cb3eaef8f9575a014, Linux 33a6e92161a78c1073d90e27abe28d746feb0a53, Linux 6a18eeb1b3bbc67c20d9609c31dca6a69b4bcde5, Linux 012363cb1bec5f33a7b94629ab2c1086f30280f2, Linux 50c2037fc28df870ef29d9728c770c8955d32178, Linux 483bc…

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-2024-27398 being exploited?

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

### How serious is CVE-2024-27398?

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

### Which versions are affected by CVE-2024-27398?

Linux \>= 48669c81a65628ef234cbdd91b9395952c7c27fe, \< 1b33d55fb7355e27f8c82cd4ecd560f162469249; \>= 37d7ae2b0578f2373674a755402ee722e96edc08, \< 3212afd00e3cda790fd0583cb3eaef8f9575a014; \>= a1073aad497d0d071a71f61b721966a176d50c08, \< 33a6e92161a78c1073d90e27abe28d746feb0a53; \>= ba316be1b6a00db7126ed9a39f9bee434a508043, \< 6a18eeb1b3bbc67c20d9609c31dca6a69b4bcde5; \>= ba316be1b6a00db7126ed9a39f9bee434a508043, \< bfab2c1f7940a232cd519e82fff137e308abfd93; \>= ba316be1b6a00db7126ed9a39f9bee434a508043, \< 012363cb1bec5f33a7b94629ab2c1086f30280f2; \>= ba316be1b6a00db7126ed9a39f9bee434a508043, \< 50c2037fc28df870ef29d9728c770c8955d32178; \>= ba316be1b6a00db7126ed9a39f9bee434a508043, \< 483bc08181827fc475643272ffb69c533007e546; fea63ccd928c01573306983346588b26cffb5572; ec1f74319bb35c1c90c25014ec0f6ea6c3ca2134; …; Linux 5.15.

### Is there a fix for CVE-2024-27398?

Yes. Fixed in Linux 1b33d55fb7355e27f8c82cd4ecd560f162469249, Linux 3212afd00e3cda790fd0583cb3eaef8f9575a014, Linux 33a6e92161a78c1073d90e27abe28d746feb0a53, Linux 6a18eeb1b3bbc67c20d9609c31dca6a69b4bcde5, Linux 012363cb1bec5f33a7b94629ab2c1086f30280f2, Linux 50c2037fc28df870ef29d9728c770c8955d32178, Linux 483bc08181827fc475643272ffb69c533007e546. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2024-27398?

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

- patch: <https://git.kernel.org/stable/c/1b33d55fb7355e27f8c82cd4ecd560f162469249>
- patch: <https://git.kernel.org/stable/c/3212afd00e3cda790fd0583cb3eaef8f9575a014>
- patch: <https://git.kernel.org/stable/c/33a6e92161a78c1073d90e27abe28d746feb0a53>
- patch: <https://git.kernel.org/stable/c/6a18eeb1b3bbc67c20d9609c31dca6a69b4bcde5>
- patch: <https://git.kernel.org/stable/c/bfab2c1f7940a232cd519e82fff137e308abfd93>
- patch: <https://git.kernel.org/stable/c/012363cb1bec5f33a7b94629ab2c1086f30280f2>
- patch: <https://git.kernel.org/stable/c/50c2037fc28df870ef29d9728c770c8955d32178>
- patch: <https://git.kernel.org/stable/c/483bc08181827fc475643272ffb69c533007e546>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/OTB4HWU2PTVW5NEYHHLOCXDKG3PYA534/>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DW2MIOIMOFUSNLHLRYX23AFR36BMKD65/>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00019.html>
- other: <https://security.netapp.com/advisory/ntap-20240912-0012/>
- other: <http://www.openwall.com/lists/oss-security/2024/11/29/1>
- other: <http://www.openwall.com/lists/oss-security/2024/11/30/1>
- other: <http://www.openwall.com/lists/oss-security/2024/11/30/2>

## 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-2024-27398>

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