CVE-2022-50386 Bluetooth: L2CAP: Fix user-after-free
A use-after-free vulnerability in the Linux kernel Bluetooth L2CAP subsystem allows attackers to execute arbitrary code or escalate privileges.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-50386?
CVE-2022-50386 is a high-severity use after free vulnerability in Linux kernel, published on 18 Sep 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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
Weakness: CWE-416
Which versions are affected by CVE-2022-50386?
It affects 1 product.
Linux distribution packages (1)
kgraft-patch-SLE12-SP5_Update_72 SUSE:Linux Enterprise Live Patching 12 SP5 | All versions | 2-2.1 |
Products include Linux kernel.
How do I fix CVE-2022-50386?
Apply the vendor's patch.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2022-50386 being exploited?
There is no known exploitation of CVE-2022-50386 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as DEBIAN-CVE-2022-50386, GHSA-q9hj-m4q6-fcrh, SUSE-SU-2025:3684-1, UBUNTU-CVE-2022-50386.