# CVE-2024-26890: Bluetooth: btrtl: fix out of bounds memory access

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; 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.86% (percentile 56, 2026-11-26)
- **CWE:** CWE-125
- **Published:** 2024-04-17T10:27:43.438Z
- **Modified:** 2026-11-23T08:17:11.593Z

## Who should check

- Anyone running Linux \>= 5b355944b19011011dd3fd4187444c5ff1d76ad2, \< dd163fa34c483f1674aa2510accce11a224f649e; \>= 5b355944b19011011dd3fd4187444c5ff1d76ad2, \< 2f232bc389a4f5943c40733582f9edf77b89e499; \>= 5b355944b19011011dd3fd4187444c5ff1d76ad2, \< 0c657e641df1e77d6087688190f632cad9c0439b; \>= 5b355944b19011011dd3fd4187444c5ff1d76ad2, \< de4e88ec58c4202efd1f02eebb4939bbf6945358; 001eb9d42411a65dcc26c391dbe2a40dc7f6ed31; \>= 6.1.193, \< 6.2
- Anyone running Linux 6.2

## Description

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

Bluetooth: btrtl: fix out of bounds memory access

The problem is detected by KASAN.
btrtl driver uses private hci data to store 'struct btrealtek\_data'.
If btrtl driver is used with btusb, then memory for private hci data
is allocated in btusb. But no private data is allocated after hci\_dev,
when btrtl is used with hci\_h5.

This commit adds memory allocation for hci\_h5 case.

 ==================================================================
 BUG: KASAN: slab-out-of-bounds in btrtl\_initialize+0x6cc/0x958 \[btrtl\]
 Write of size 8 at addr ffff00000f5a5748 by task kworker/u9:0/76

 Hardware name: Pine64 PinePhone (1.2) (DT)
 Workqueue: hci0 hci\_power\_on \[bluetooth\]
 Call trace:
  dump\_backtrace+0x9c/0x128
  show\_stack+0x20/0x38
  dump\_stack\_lvl+0x48/0x60
  print\_report+0xf8/0x5d8
  kasan\_report+0x90/0xd0
  \_\_asan\_store8+0x9c/0xc0
  	 \[btrtl\]
  h5\_btrtl\_setup+0xd0/0x2f8 \[hci\_uart\]
  h5\_setup+0x50/0x80 \[hci\_uart\]
  hci\_uart\_setup+0xd4/0x260 \[hci\_uart\]
  hci\_dev\_open\_sync+0x1cc/0xf68 \[bluetooth\]
  hci\_dev\_do\_open+0x34/0x90 \[bluetooth\]
  hci\_power\_on+0xc4/0x3c8 \[bluetooth\]
  process\_one\_work+0x328/0x6f0
  worker\_thread+0x410/0x778
  kthread+0x168/0x178
  ret\_from\_fork+0x10/0x20

 Allocated by task 53:
  kasan\_save\_stack+0x3c/0x68
  kasan\_save\_track+0x20/0x40
  kasan\_save\_alloc\_info+0x68/0x78
  \_\_kasan\_kmalloc+0xd4/0xd8
  \_\_kmalloc+0x1b4/0x3b0
  hci\_alloc\_dev\_priv+0x28/0xa58 \[bluetooth\]
  hci\_uart\_register\_device+0x118/0x4f8 \[hci\_uart\]
  h5\_serdev\_probe+0xf4/0x178 \[hci\_uart\]
  serdev\_drv\_probe+0x54/0xa0
  really\_probe+0x254/0x588
  \_\_driver\_probe\_device+0xc4/0x210
  driver\_probe\_device+0x64/0x160
  \_\_driver\_attach\_async\_helper+0x88/0x158
  async\_run\_entry\_fn+0xd0/0x388
  process\_one\_work+0x328/0x6f0
  worker\_thread+0x410/0x778
  kthread+0x168/0x178
  ret\_from\_fork+0x10/0x20

 Last potentially related work creation:
  kasan\_save\_stack+0x3c/0x68
  \_\_kasan\_record\_aux\_stack+0xb0/0x150
  kasan\_record\_aux\_stack\_noalloc+0x14/0x20
  \_\_queue\_work+0x33c/0x960
  queue\_work\_on+0x98/0xc0
  hci\_recv\_frame+0xc8/0x1e8 \[bluetooth\]
  h5\_complete\_rx\_pkt+0x2c8/0x800 \[hci\_uart\]
  h5\_rx\_payload+0x98/0xb8 \[hci\_uart\]
  h5\_recv+0x158/0x3d8 \[hci\_uart\]
  hci\_uart\_receive\_buf+0xa0/0xe8 \[hci\_uart\]
  ttyport\_receive\_buf+0xac/0x178
  flush\_to\_ldisc+0x130/0x2c8
  process\_one\_work+0x328/0x6f0
  worker\_thread+0x410/0x778
  kthread+0x168/0x178
  ret\_from\_fork+0x10/0x20

 Second to last potentially related work creation:
  kasan\_save\_stack+0x3c/0x68
  \_\_kasan\_record\_aux\_stack+0xb0/0x150
  kasan\_record\_aux\_stack\_noalloc+0x14/0x20
  \_\_queue\_work+0x788/0x960
  queue\_work\_on+0x98/0xc0
  \_\_hci\_cmd\_sync\_sk+0x23c/0x7a0 \[bluetooth\]
  \_\_hci\_cmd\_sync+0x24/0x38 \[bluetooth\]
  btrtl\_initialize+0x760/0x958 \[btrtl\]
  h5\_btrtl\_setup+0xd0/0x2f8 \[hci\_uart\]
  h5\_setup+0x50/0x80 \[hci\_uart\]
  hci\_uart\_setup+0xd4/0x260 \[hci\_uart\]
  hci\_dev\_open\_sync+0x1cc/0xf68 \[bluetooth\]
  hci\_dev\_do\_open+0x34/0x90 \[bluetooth\]
  hci\_power\_on+0xc4/0x3c8 \[bluetooth\]
  process\_one\_work+0x328/0x6f0
  worker\_thread+0x410/0x778
  kthread+0x168/0x178
  ret\_from\_fork+0x10/0x20
 ==================================================================

## Affected and fixed versions

- Linux: \>= 5b355944b19011011dd3fd4187444c5ff1d76ad2, \< dd163fa34c483f1674aa2510accce11a224f649e; \>= 5b355944b19011011dd3fd4187444c5ff1d76ad2, \< 2f232bc389a4f5943c40733582f9edf77b89e499; \>= 5b355944b19011011dd3fd4187444c5ff1d76ad2, \< 0c657e641df1e77d6087688190f632cad9c0439b; \>= 5b355944b19011011dd3fd4187444c5ff1d76ad2, \< de4e88ec58c4202efd1f02eebb4939bbf6945358; 001eb9d42411a65dcc26c391dbe2a40dc7f6ed31; \>= 6.1.193, \< 6.2 (cvelist)
- Linux: 6.2 (cvelist)

## Mitigation

- Upgrade Linux to 6.2 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-26890.md
Affected: Linux >= 5b355944b19011011dd3fd4187444c5ff1d76ad2, < dd163fa34c483f1674aa2510accce11a224f649e; >= 5b355944b19011011dd3fd4187444c5ff1d76ad2, < 2f232bc389a4f5943c40733582f9edf77b89e499; >= 5b355944b19011011dd3fd4187444c5ff1d76ad2, < 0c657e641df1e77d6087688190f632cad9c0439b; >= 5b355944b19011011dd3fd4…
Fixed in: Linux 2f232bc389a4f5943c40733582f9edf77b89e499, Linux 0c657e641df1e77d6087688190f632cad9c0439b, Linux 6.2

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-26890 being exploited?

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

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

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

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

Linux \>= 5b355944b19011011dd3fd4187444c5ff1d76ad2, \< dd163fa34c483f1674aa2510accce11a224f649e; \>= 5b355944b19011011dd3fd4187444c5ff1d76ad2, \< 2f232bc389a4f5943c40733582f9edf77b89e499; \>= 5b355944b19011011dd3fd4187444c5ff1d76ad2, \< 0c657e641df1e77d6087688190f632cad9c0439b; \>= 5b355944b19011011dd3fd4187444c5ff1d76ad2, \< de4e88ec58c4202efd1f02eebb4939bbf6945358; 001eb9d42411a65dcc26c391dbe2a40dc7f6ed31; \>= 6.1.193, \< 6.2; Linux 6.2.

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

Yes. Fixed in Linux 2f232bc389a4f5943c40733582f9edf77b89e499, Linux 0c657e641df1e77d6087688190f632cad9c0439b, Linux 6.2. Upgrade Linux to 6.2 or later.

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

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/dd163fa34c483f1674aa2510accce11a224f649e>
- patch: <https://git.kernel.org/stable/c/2f232bc389a4f5943c40733582f9edf77b89e499>
- patch: <https://git.kernel.org/stable/c/0c657e641df1e77d6087688190f632cad9c0439b>
- patch: <https://git.kernel.org/stable/c/de4e88ec58c4202efd1f02eebb4939bbf6945358>

## 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-26890>

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