# CVE-2026-98107: Bluetooth: L2CAP: fix out-of-bounds write in l2cap\_ecred\_connect

> 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, NVD) `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.18% (percentile 4, 2026-11-26)
- **CWE:** CWE-787
- **Published:** 2026-09-25T10:35:56.340Z
- **Modified:** 2026-11-12T18:28:34.740Z

## Who should check

- Anyone running Linux \>= da49b602f7f75ccc91386e1274b3ef71676cd092, \< fabc5e04f123225daf980d03f2c5a05e7f0f0a7f; \>= da49b602f7f75ccc91386e1274b3ef71676cd092, \< ce0927eb3ee2939fab5ce3f9334bfd2fafb38481; \>= da49b602f7f75ccc91386e1274b3ef71676cd092, \< 6da5c0331fc3ef0c7b8df8269523fc3b2cce1e65; \>= da49b602f7f75ccc91386e1274b3ef71676cd092, \< df8c3af6132640da4788e96a02d653e642059803; \>= da49b602f7f75ccc91386e1274b3ef71676cd092, \< 56c2b5831d39dc84aad2573dc3e197af1a872a05
- Anyone running Linux 5.7

## Description

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

Bluetooth: L2CAP: fix out-of-bounds write in l2cap\_ecred\_connect

l2cap\_chan\_connect() tries to ensure there are no more than
L2CAP\_ECRED\_CONN\_SCID\_MAX pending ECRED channels, so they fit in the
same L2CAP\_ECRED\_CONN\_REQ that l2cap\_ecred\_connect() constructs.

However, the check only counts deferred channels.  If 6 L2CAP sockets
are connected at the same time in order DDDDND (D=deferred,
N=non-deferred), the last can bump the total to max+1.  It results to
one \_\_le16 written out of bounds of the scid array, and an invalid
ECRED\_CONN\_REQ being sent.

Fix by leaving room for the non-deferred pending ECRED channels in the
counting in l2cap\_chan\_connect(), so the limit can't be exceeded.

Move counting under same critical section where the channel is added.
Although race conditions involving this appear unreachable, it's easier
to see.

Also add WARN\_ON\_ONCE check in l2cap\_ecred\_defer\_connect() to make this
less brittle.

## Affected and fixed versions

- Linux: \>= da49b602f7f75ccc91386e1274b3ef71676cd092, \< fabc5e04f123225daf980d03f2c5a05e7f0f0a7f; \>= da49b602f7f75ccc91386e1274b3ef71676cd092, \< ce0927eb3ee2939fab5ce3f9334bfd2fafb38481; \>= da49b602f7f75ccc91386e1274b3ef71676cd092, \< 6da5c0331fc3ef0c7b8df8269523fc3b2cce1e65; \>= da49b602f7f75ccc91386e1274b3ef71676cd092, \< df8c3af6132640da4788e96a02d653e642059803; \>= da49b602f7f75ccc91386e1274b3ef71676cd092, \< 56c2b5831d39dc84aad2573dc3e197af1a872a05 (cvelist)
- Linux: 5.7 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2026-98107.md
Affected: Linux >= da49b602f7f75ccc91386e1274b3ef71676cd092, < fabc5e04f123225daf980d03f2c5a05e7f0f0a7f; >= da49b602f7f75ccc91386e1274b3ef71676cd092, < ce0927eb3ee2939fab5ce3f9334bfd2fafb38481; >= da49b602f7f75ccc91386e1274b3ef71676cd092, < 6da5c0331fc3ef0c7b8df8269523fc3b2cce1e65; >= da49b602f7f75ccc91386e1…
Fixed in: Linux 6da5c0331fc3ef0c7b8df8269523fc3b2cce1e65, Linux 56c2b5831d39dc84aad2573dc3e197af1a872a05

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

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

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

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

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

Linux \>= da49b602f7f75ccc91386e1274b3ef71676cd092, \< fabc5e04f123225daf980d03f2c5a05e7f0f0a7f; \>= da49b602f7f75ccc91386e1274b3ef71676cd092, \< ce0927eb3ee2939fab5ce3f9334bfd2fafb38481; \>= da49b602f7f75ccc91386e1274b3ef71676cd092, \< 6da5c0331fc3ef0c7b8df8269523fc3b2cce1e65; \>= da49b602f7f75ccc91386e1274b3ef71676cd092, \< df8c3af6132640da4788e96a02d653e642059803; \>= da49b602f7f75ccc91386e1274b3ef71676cd092, \< 56c2b5831d39dc84aad2573dc3e197af1a872a05; Linux 5.7.

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

Yes. Fixed in Linux 6da5c0331fc3ef0c7b8df8269523fc3b2cce1e65, Linux 56c2b5831d39dc84aad2573dc3e197af1a872a05. Upgrade Linux to 56c2b5831d39dc84aad2573dc3e197af1a872a05 or later.

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

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/fabc5e04f123225daf980d03f2c5a05e7f0f0a7f>
- patch: <https://git.kernel.org/stable/c/ce0927eb3ee2939fab5ce3f9334bfd2fafb38481>
- patch: <https://git.kernel.org/stable/c/6da5c0331fc3ef0c7b8df8269523fc3b2cce1e65>
- patch: <https://git.kernel.org/stable/c/df8c3af6132640da4788e96a02d653e642059803>
- patch: <https://git.kernel.org/stable/c/56c2b5831d39dc84aad2573dc3e197af1a872a05>

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

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