# CVE-2026-64127: Bluetooth: L2CAP: ecred\_reconfigure: send packed pdu, not stack pointer

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.16% (percentile 3, 2026-11-26)
- **Published:** 2026-07-19T15:40:23.960Z
- **Modified:** 2026-11-06T17:18:36.953Z

## Who should check

- Anyone running Linux \>= 1c08108f3014881ad5f4c35a2abaf9c65475035d, \< ed5fcd2a26f0c16fc289c8cd6b03328a0582a687; \>= 1c08108f3014881ad5f4c35a2abaf9c65475035d, \< 051922ab709c0a6917eae765c22481dfc68379e5; \>= 1c08108f3014881ad5f4c35a2abaf9c65475035d, \< 356c9d1a1cbacd2a1640fff3c050e1c3472e924f; \>= 1c08108f3014881ad5f4c35a2abaf9c65475035d, \< 3374ef8cf99368a40f7efd51a2a375a4c5dc6f0d
- Anyone running Linux 6.10

## Description

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

Bluetooth: L2CAP: ecred\_reconfigure: send packed pdu, not stack pointer

Commit 1c08108f3014 ("Bluetooth: L2CAP: Avoid -Wflex-array-member-not-at-end
warnings") converted the on-stack request PDU in l2cap\_ecred\_reconfigure()
from an explicit packed struct to DEFINE\_RAW\_FLEX(), but did not adjust the
size and source-pointer arguments to l2cap\_send\_cmd():

  -    struct {
  -            struct l2cap\_ecred\_reconf\_req req;
  -            \_\_le16 scid;
  -    } pdu;
  +    DEFINE\_RAW\_FLEX(struct l2cap\_ecred\_reconf\_req, pdu, scid, 1);
       ...
       l2cap\_send\_cmd(conn, chan-\>ident, L2CAP\_ECRED\_RECONF\_REQ,
                      sizeof(pdu), &pdu);

After the conversion, DEFINE\_RAW\_FLEX() expands to declare an anonymous
union pdu\_u plus a local pointer "pdu" pointing at it. Therefore:

  - sizeof(pdu) is now sizeof(struct l2cap\_ecred\_reconf\_req \*) = 8 on
    64-bit (4 on 32-bit), not the 6 bytes of (mtu, mps, scid\[1\]).
  - &pdu is the address of the local pointer's stack storage, not the
    address of the request payload.

l2cap\_send\_cmd() forwards (data, count) to l2cap\_build\_cmd(), which calls
skb\_put\_data(skb, data, count). The L2CAP\_ECRED\_RECONFIGURE\_REQ packet
body therefore contains 8 bytes copied from the kernel stack starting at
&pdu -- the 8 bytes overlap the pdu pointer's value, leaking a kernel
stack address to the paired Bluetooth peer. The intended (mtu, mps, scid)
fields are not transmitted at all, so the peer rejects the request as
malformed and the L2CAP\_ECRED\_RECONFIGURE feature itself has been broken
for the local-side initiator since the introducing commit landed.

The sibling site l2cap\_ecred\_conn\_req() in the same commit was converted
correctly (sizeof(\*pdu) + len, pdu); only this site was missed.

Restore the original semantics: pass the full flex-struct size via
struct\_size(pdu, scid, 1) and the pdu pointer (the struct address) as
the source.

Validated on a stock 7.0-based host kernel via the real call path:
setsockopt(SOL\_BLUETOOTH, BT\_RCVMTU, ...) on a BT\_CONNECTED
L2CAP\_MODE\_EXT\_FLOWCTL socket emits an L2CAP\_ECRED\_RECONFIGURE\_REQ
whose body is 8 bytes (the on-stack pdu local's value) rather than
the expected 6. Three captures from fresh socket / fresh hciemu peer
on the same host -- low bytes vary per call, high 0xffff confirms a
kernel virtual address (KASLR-randomised stack slot, not a fixed
string):

  RECONF\_REQ body (ident=0x02 len=8): 42 fb 54 af 0e ca ff ff
  RECONF\_REQ body (ident=0x02 len=8): 52 3d 2e af 0e ca ff ff
  RECONF\_REQ body (ident=0x02 len=8): b2 fc 5b af 0e ca ff ff

After this patch the body is 6 bytes carrying the expected
little-endian (mtu, mps, scid).

## Affected and fixed versions

- Linux: \>= 1c08108f3014881ad5f4c35a2abaf9c65475035d, \< ed5fcd2a26f0c16fc289c8cd6b03328a0582a687; \>= 1c08108f3014881ad5f4c35a2abaf9c65475035d, \< 051922ab709c0a6917eae765c22481dfc68379e5; \>= 1c08108f3014881ad5f4c35a2abaf9c65475035d, \< 356c9d1a1cbacd2a1640fff3c050e1c3472e924f; \>= 1c08108f3014881ad5f4c35a2abaf9c65475035d, \< 3374ef8cf99368a40f7efd51a2a375a4c5dc6f0d (cvelist)
- Linux: 6.10 (cvelist)

## Mitigation

- Upgrade Linux to 3374ef8cf99368a40f7efd51a2a375a4c5dc6f0d 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-64127. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-64127.md
Affected: Linux >= 1c08108f3014881ad5f4c35a2abaf9c65475035d, < ed5fcd2a26f0c16fc289c8cd6b03328a0582a687; >= 1c08108f3014881ad5f4c35a2abaf9c65475035d, < 051922ab709c0a6917eae765c22481dfc68379e5; >= 1c08108f3014881ad5f4c35a2abaf9c65475035d, < 356c9d1a1cbacd2a1640fff3c050e1c3472e924f; >= 1c08108f3014881ad5f4c35…
Fixed in: Linux 051922ab709c0a6917eae765c22481dfc68379e5, Linux 356c9d1a1cbacd2a1640fff3c050e1c3472e924f, Linux 3374ef8cf99368a40f7efd51a2a375a4c5dc6f0d

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

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

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

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= 1c08108f3014881ad5f4c35a2abaf9c65475035d, \< ed5fcd2a26f0c16fc289c8cd6b03328a0582a687; \>= 1c08108f3014881ad5f4c35a2abaf9c65475035d, \< 051922ab709c0a6917eae765c22481dfc68379e5; \>= 1c08108f3014881ad5f4c35a2abaf9c65475035d, \< 356c9d1a1cbacd2a1640fff3c050e1c3472e924f; \>= 1c08108f3014881ad5f4c35a2abaf9c65475035d, \< 3374ef8cf99368a40f7efd51a2a375a4c5dc6f0d; Linux 6.10.

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

Yes. Fixed in Linux 051922ab709c0a6917eae765c22481dfc68379e5, Linux 356c9d1a1cbacd2a1640fff3c050e1c3472e924f, Linux 3374ef8cf99368a40f7efd51a2a375a4c5dc6f0d. Upgrade Linux to 3374ef8cf99368a40f7efd51a2a375a4c5dc6f0d or later.

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

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/ed5fcd2a26f0c16fc289c8cd6b03328a0582a687>
- patch: <https://git.kernel.org/stable/c/051922ab709c0a6917eae765c22481dfc68379e5>
- patch: <https://git.kernel.org/stable/c/356c9d1a1cbacd2a1640fff3c050e1c3472e924f>
- patch: <https://git.kernel.org/stable/c/3374ef8cf99368a40f7efd51a2a375a4c5dc6f0d>

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

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