CVE-2022-50386

Bluetooth: L2CAP: Fix user-after-free

8.8 high EPSS 0.38%

Published 18 Sep 2025 Updated 5 Aug 2026 CNA: Linux

Check your servers for CVE-2022-50386

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-50386 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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

Severity (CVSS)

8.8 high CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
adjacent: the attacker has to be on the same local network or link
Attack complexity
low: an attack works without special conditions
Privileges required
none: the attacker does not need an account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
8.0 high CVSS 3.1 from CISA (ADP)
CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
adjacent: the attacker has to be on the same local network or link
Attack complexity
low: an attack works without special conditions
Privileges required
low: the attacker needs an ordinary user account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.38%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 34.5% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 14 Jan 2026):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
total: full control of the component or of its data

Weakness

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 3df91ea20e744344100b10ae69a17211fcf5b207, before 11e40d6c0823f699d8ad501e48d1c3ae4be386cd
affected from 3df91ea20e744344100b10ae69a17211fcf5b207, before 843fc4e386dd84b806a7f07fb062d8c3a44e5364
affected from 3df91ea20e744344100b10ae69a17211fcf5b207, before d91fc2836562f299f34e361e089e9fe154da4f73
affected from 3df91ea20e744344100b10ae69a17211fcf5b207, before 7d6f9cb24d2b2f6b6370eac074e2e6b1bafdad45
affected from 3df91ea20e744344100b10ae69a17211fcf5b207, before 0c108cf3ad386e0084277093b55a351c49e0be27
affected from 3df91ea20e744344100b10ae69a17211fcf5b207, before d1e894f950ad48897d1a7cb05909ea29d8c3810e
affected from 3df91ea20e744344100b10ae69a17211fcf5b207, before 6ffde6e03085874ae22263ff4cef4869f797e84f
affected from 3df91ea20e744344100b10ae69a17211fcf5b207, before 15fc21695eb606bdc5d483b92118ee42610a952d
affected from 3df91ea20e744344100b10ae69a17211fcf5b207, before 35fcbc4243aad7e7d020b7c1dfb14bb888b20a4f
Other versions: unaffected
Linux
affected 3.4
unaffected before 3.4
unaffected from 4.9.331 up to and including 4.9.*
unaffected from 4.14.296 up to and including 4.14.*
unaffected from 4.19.262 up to and including 4.19.*
unaffected from 5.4.220 up to and including 5.4.*
unaffected from 5.10.150 up to and including 5.10.*
unaffected from 5.15.75 up to and including 5.15.*
unaffected from 5.19.17 up to and including 5.19.*
unaffected from 6.0.3 up to and including 6.0.*
unaffected 6.1 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-50386 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-50386

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2022-50386
trivy image --scanners vuln IMAGE | grep CVE-2022-50386

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2022-50386 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.