# CVE-2026-64539: Bluetooth: eir: Fix stack OOB write when prepending the Flags AD

> 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.13% (percentile 3, 2026-12-01)
- **CWE:** CWE-121
- **Published:** 2026-07-27T20:10:33.363Z
- **Modified:** 2026-11-13T18:27:23.893Z

## Who should check

- Anyone running Linux \>= b44133ff03be30b55f23036e62f403a3f7784fce, \< 0f0b6232af56441d0a2dcb173cc4f8d8aab39014; \>= b44133ff03be30b55f23036e62f403a3f7784fce, \< 9174992ee1045c9c96e53eecda64f49dd7e8fbba; \>= b44133ff03be30b55f23036e62f403a3f7784fce, \< 09301f1fdf2aef8cce34d0c4650c30e7edb1ced9; \>= b44133ff03be30b55f23036e62f403a3f7784fce, \< f1b4df9c260c51726da2e86e19322825fddeefd0; \>= b44133ff03be30b55f23036e62f403a3f7784fce, \< 57077eeb586c42f124bc09e018449362223067b3; \>= b44133ff03be30b55f23036e62f403a3f7784fce, \< 6f5fb689fdf80bdd143f22a502f9eb1f3c85e286
- Anyone running Linux 4.1

## Description

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

Bluetooth: eir: Fix stack OOB write when prepending the Flags AD

eir\_create\_adv\_data() builds the advertising data into a fixed-size
buffer ("size", 31 for the legacy path). It may prepend a 3-byte "Flags"
AD structure (LE\_AD\_NO\_BREDR on an LE-only controller) and then copies
the per-instance data without checking that it still fits:

	memcpy(ptr, adv-\>adv\_data, adv-\>adv\_data\_len);

tlv\_data\_max\_len() only reserves those 3 bytes when the user-supplied
flags carry a managed-flags bit, so an instance added with flags == 0 is
accepted with adv\_data\_len up to the full buffer. At advertise time the
flags are still prepended, and the memcpy() writes 3 + adv\_data\_len
bytes into the size-byte buffer:

  BUG: KASAN: stack-out-of-bounds in eir\_create\_adv\_data (net/bluetooth/eir.c:301)
  Write of size 31 at addr ffff88800a547bdc by task kworker/u9:0/65
  Workqueue: hci0 hci\_cmd\_sync\_work
   \_\_asan\_memcpy (mm/kasan/shadow.c:106)
   eir\_create\_adv\_data (net/bluetooth/eir.c:301)
   hci\_update\_adv\_data\_sync (net/bluetooth/hci\_sync.c:1310)
   hci\_schedule\_adv\_instance\_sync (net/bluetooth/hci\_sync.c:1817)
   hci\_cmd\_sync\_work (net/bluetooth/hci\_sync.c:332)
  This frame has 1 object:
   \[32, 64) 'cp'

The "Flags" structure is added by the kernel, not requested by
userspace, so only prepend it when it fits together with the instance
advertising data; when there is no room for both, drop the flags rather
than the user-provided data.

Reachable by a local user with CAP\_NET\_ADMIN owning an LE-only
controller on the legacy advertising path.

## Affected and fixed versions

- Linux: \>= b44133ff03be30b55f23036e62f403a3f7784fce, \< 0f0b6232af56441d0a2dcb173cc4f8d8aab39014; \>= b44133ff03be30b55f23036e62f403a3f7784fce, \< 9174992ee1045c9c96e53eecda64f49dd7e8fbba; \>= b44133ff03be30b55f23036e62f403a3f7784fce, \< 09301f1fdf2aef8cce34d0c4650c30e7edb1ced9; \>= b44133ff03be30b55f23036e62f403a3f7784fce, \< f1b4df9c260c51726da2e86e19322825fddeefd0; \>= b44133ff03be30b55f23036e62f403a3f7784fce, \< 57077eeb586c42f124bc09e018449362223067b3; \>= b44133ff03be30b55f23036e62f403a3f7784fce, \< 6f5fb689fdf80bdd143f22a502f9eb1f3c85e286 (cvelist)
- Linux: 4.1 (cvelist)

## Mitigation

- Upgrade Linux to 6f5fb689fdf80bdd143f22a502f9eb1f3c85e286 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-64539.md
Affected: Linux >= b44133ff03be30b55f23036e62f403a3f7784fce, < 0f0b6232af56441d0a2dcb173cc4f8d8aab39014; >= b44133ff03be30b55f23036e62f403a3f7784fce, < 9174992ee1045c9c96e53eecda64f49dd7e8fbba; >= b44133ff03be30b55f23036e62f403a3f7784fce, < 09301f1fdf2aef8cce34d0c4650c30e7edb1ced9; >= b44133ff03be30b55f23036…
Fixed in: Linux 0f0b6232af56441d0a2dcb173cc4f8d8aab39014, Linux 9174992ee1045c9c96e53eecda64f49dd7e8fbba, Linux 09301f1fdf2aef8cce34d0c4650c30e7edb1ced9, Linux 57077eeb586c42f124bc09e018449362223067b3, Linux 6f5fb689fdf80bdd143f22a502f9eb1f3c85e286

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-2026-64539 being exploited?

There is no confirmed exploitation: CVE-2026-64539 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.13% chance of exploitation in the next 30 days (as of 2026-12-01).

### How serious is CVE-2026-64539?

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

### Which versions are affected by CVE-2026-64539?

Linux \>= b44133ff03be30b55f23036e62f403a3f7784fce, \< 0f0b6232af56441d0a2dcb173cc4f8d8aab39014; \>= b44133ff03be30b55f23036e62f403a3f7784fce, \< 9174992ee1045c9c96e53eecda64f49dd7e8fbba; \>= b44133ff03be30b55f23036e62f403a3f7784fce, \< 09301f1fdf2aef8cce34d0c4650c30e7edb1ced9; \>= b44133ff03be30b55f23036e62f403a3f7784fce, \< f1b4df9c260c51726da2e86e19322825fddeefd0; \>= b44133ff03be30b55f23036e62f403a3f7784fce, \< 57077eeb586c42f124bc09e018449362223067b3; \>= b44133ff03be30b55f23036e62f403a3f7784fce, \< 6f5fb689fdf80bdd143f22a502f9eb1f3c85e286; Linux 4.1.

### Is there a fix for CVE-2026-64539?

Yes. Fixed in Linux 0f0b6232af56441d0a2dcb173cc4f8d8aab39014, Linux 9174992ee1045c9c96e53eecda64f49dd7e8fbba, Linux 09301f1fdf2aef8cce34d0c4650c30e7edb1ced9, Linux 57077eeb586c42f124bc09e018449362223067b3, Linux 6f5fb689fdf80bdd143f22a502f9eb1f3c85e286. Upgrade Linux to 6f5fb689fdf80bdd143f22a502f9eb1f3c85e286 or later.

### How do I check if I'm affected by CVE-2026-64539?

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/0f0b6232af56441d0a2dcb173cc4f8d8aab39014>
- patch: <https://git.kernel.org/stable/c/9174992ee1045c9c96e53eecda64f49dd7e8fbba>
- patch: <https://git.kernel.org/stable/c/09301f1fdf2aef8cce34d0c4650c30e7edb1ced9>
- patch: <https://git.kernel.org/stable/c/f1b4df9c260c51726da2e86e19322825fddeefd0>
- patch: <https://git.kernel.org/stable/c/57077eeb586c42f124bc09e018449362223067b3>
- patch: <https://git.kernel.org/stable/c/6f5fb689fdf80bdd143f22a502f9eb1f3c85e286>

## 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-2026-64539>

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