# CVE-2022-50386: Bluetooth: L2CAP: Fix user-after-free

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

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v3.1, CNA) `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Adjacent network; Attack complexity: Low; Privileges required: None; 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.55% (percentile 40, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2025-09-18T13:33:07.191Z
- **Modified:** 2026-08-05T08:58:30.414Z

## Who should check

- Anyone running Linux \>= 3df91ea20e744344100b10ae69a17211fcf5b207, \< 11e40d6c0823f699d8ad501e48d1c3ae4be386cd; \>= 3df91ea20e744344100b10ae69a17211fcf5b207, \< 843fc4e386dd84b806a7f07fb062d8c3a44e5364; \>= 3df91ea20e744344100b10ae69a17211fcf5b207, \< d91fc2836562f299f34e361e089e9fe154da4f73; \>= 3df91ea20e744344100b10ae69a17211fcf5b207, \< 7d6f9cb24d2b2f6b6370eac074e2e6b1bafdad45; \>= 3df91ea20e744344100b10ae69a17211fcf5b207, \< 0c108cf3ad386e0084277093b55a351c49e0be27; \>= 3df91ea20e744344100b10ae69a17211fcf5b207, \< d1e894f950ad48897d1a7cb05909ea29d8c3810e; \>= 3df91ea20e744344100b10ae69a17211fcf5b207, \< 6ffde6e03085874ae22263ff4cef4869f797e84f; \>= 3df91ea20e744344100b10ae69a17211fcf5b207, \< 15fc21695eb606bdc5d483b92118ee42610a952d; \>= 3df91ea20e744344100b10ae69a17211fcf5b207, \< 35fcbc4243aad7e7d020b7c1dfb14bb888b20a4f
- Anyone running Linux 3.4

## Description

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

Bluetooth: L2CAP: Fix user-after-free

This uses l2cap\_chan\_hold\_unless\_zero() after calling
\_\_l2cap\_get\_chan\_blah() to prevent the following trace:

Bluetooth: l2cap\_core.c:static void l2cap\_chan\_destroy(struct kref
\*kref)
Bluetooth: chan 0000000023c4974d
Bluetooth: parent 00000000ae861c08
==================================================================
BUG: KASAN: use-after-free in \_\_mutex\_waiter\_is\_first
kernel/locking/mutex.c:191 \[inline\]
BUG: KASAN: use-after-free in \_\_mutex\_lock\_common
kernel/locking/mutex.c:671 \[inline\]
BUG: KASAN: use-after-free in \_\_mutex\_lock+0x278/0x400
kernel/locking/mutex.c:729
Read of size 8 at addr ffff888006a49b08 by task kworker/u3:2/389

## Affected and fixed versions

- Linux: \>= 3df91ea20e744344100b10ae69a17211fcf5b207, \< 11e40d6c0823f699d8ad501e48d1c3ae4be386cd; \>= 3df91ea20e744344100b10ae69a17211fcf5b207, \< 843fc4e386dd84b806a7f07fb062d8c3a44e5364; \>= 3df91ea20e744344100b10ae69a17211fcf5b207, \< d91fc2836562f299f34e361e089e9fe154da4f73; \>= 3df91ea20e744344100b10ae69a17211fcf5b207, \< 7d6f9cb24d2b2f6b6370eac074e2e6b1bafdad45; \>= 3df91ea20e744344100b10ae69a17211fcf5b207, \< 0c108cf3ad386e0084277093b55a351c49e0be27; \>= 3df91ea20e744344100b10ae69a17211fcf5b207, \< d1e894f950ad48897d1a7cb05909ea29d8c3810e; \>= 3df91ea20e744344100b10ae69a17211fcf5b207, \< 6ffde6e03085874ae22263ff4cef4869f797e84f; \>= 3df91ea20e744344100b10ae69a17211fcf5b207, \< 15fc21695eb606bdc5d483b92118ee42610a952d; \>= 3df91ea20e744344100b10ae69a17211fcf5b207, \< 35fcbc4243aad7e7d020b7c1dfb14bb888b20a4f (cvelist)
- Linux: 3.4 (cvelist)

## Mitigation

- Upgrade Linux to 35fcbc4243aad7e7d020b7c1dfb14bb888b20a4f or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2022-50386.md
Affected: Linux >= 3df91ea20e744344100b10ae69a17211fcf5b207, < 11e40d6c0823f699d8ad501e48d1c3ae4be386cd; >= 3df91ea20e744344100b10ae69a17211fcf5b207, < 843fc4e386dd84b806a7f07fb062d8c3a44e5364; >= 3df91ea20e744344100b10ae69a17211fcf5b207, < d91fc2836562f299f34e361e089e9fe154da4f73; >= 3df91ea20e744344100b10a…
Fixed in: Linux 11e40d6c0823f699d8ad501e48d1c3ae4be386cd, Linux 843fc4e386dd84b806a7f07fb062d8c3a44e5364, Linux 7d6f9cb24d2b2f6b6370eac074e2e6b1bafdad45, Linux 0c108cf3ad386e0084277093b55a351c49e0be27, Linux 6ffde6e03085874ae22263ff4cef4869f797e84f, Linux 15fc21695eb606bdc5d483b92118ee42610a952d, Linux 35fcb…

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-2022-50386 being exploited?

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

### How serious is CVE-2022-50386?

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

### Which versions are affected by CVE-2022-50386?

Linux \>= 3df91ea20e744344100b10ae69a17211fcf5b207, \< 11e40d6c0823f699d8ad501e48d1c3ae4be386cd; \>= 3df91ea20e744344100b10ae69a17211fcf5b207, \< 843fc4e386dd84b806a7f07fb062d8c3a44e5364; \>= 3df91ea20e744344100b10ae69a17211fcf5b207, \< d91fc2836562f299f34e361e089e9fe154da4f73; \>= 3df91ea20e744344100b10ae69a17211fcf5b207, \< 7d6f9cb24d2b2f6b6370eac074e2e6b1bafdad45; \>= 3df91ea20e744344100b10ae69a17211fcf5b207, \< 0c108cf3ad386e0084277093b55a351c49e0be27; \>= 3df91ea20e744344100b10ae69a17211fcf5b207, \< d1e894f950ad48897d1a7cb05909ea29d8c3810e; \>= 3df91ea20e744344100b10ae69a17211fcf5b207, \< 6ffde6e03085874ae22263ff4cef4869f797e84f; \>= 3df91ea20e744344100b10ae69a17211fcf5b207, \< 15fc21695eb606bdc5d483b92118ee42610a952d; \>= 3df91ea20e744344100b10ae69a17211fcf5b207, \< 35fcbc4243aad7e7d020b7c1dfb14bb888b20a4f; Linux 3.4.

### Is there a fix for CVE-2022-50386?

Yes. Fixed in Linux 11e40d6c0823f699d8ad501e48d1c3ae4be386cd, Linux 843fc4e386dd84b806a7f07fb062d8c3a44e5364, Linux 7d6f9cb24d2b2f6b6370eac074e2e6b1bafdad45, Linux 0c108cf3ad386e0084277093b55a351c49e0be27, Linux 6ffde6e03085874ae22263ff4cef4869f797e84f, Linux 15fc21695eb606bdc5d483b92118ee42610a952d, Linux 35fcbc4243aad7e7d020b7c1dfb14bb888b20a4f. Upgrade Linux to 35fcbc4243aad7e7d020b7c1dfb14bb888b20a4f or later.

### How do I check if I'm affected by CVE-2022-50386?

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/11e40d6c0823f699d8ad501e48d1c3ae4be386cd>
- patch: <https://git.kernel.org/stable/c/843fc4e386dd84b806a7f07fb062d8c3a44e5364>
- patch: <https://git.kernel.org/stable/c/d91fc2836562f299f34e361e089e9fe154da4f73>
- patch: <https://git.kernel.org/stable/c/7d6f9cb24d2b2f6b6370eac074e2e6b1bafdad45>
- patch: <https://git.kernel.org/stable/c/0c108cf3ad386e0084277093b55a351c49e0be27>
- patch: <https://git.kernel.org/stable/c/d1e894f950ad48897d1a7cb05909ea29d8c3810e>
- patch: <https://git.kernel.org/stable/c/6ffde6e03085874ae22263ff4cef4869f797e84f>
- patch: <https://git.kernel.org/stable/c/15fc21695eb606bdc5d483b92118ee42610a952d>
- patch: <https://git.kernel.org/stable/c/35fcbc4243aad7e7d020b7c1dfb14bb888b20a4f>

## 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-2022-50386>

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