CVE-2022-50386

Bluetooth: L2CAP: Fix user-after-free

State
Published
Severity
8.8 High
Published
Sep 18, 2025
Updated
Aug 5, 2026
Reserved
Sep 17, 2025

Read the record on cve.org

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

Scores

CVSSScoreVectorSource
3.18.8 HighCVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HLinux
3.18.0 HighCVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HCISA-ADP

Weaknesses

Affected Products

ProductVersions
LinuxLinux
  • 3df91ea20e744344100b10ae69a17211fcf5b207 to before 11e40d6c0823f699d8ad501e48d1c3ae4be386cdAffected
  • 3df91ea20e744344100b10ae69a17211fcf5b207 to before 843fc4e386dd84b806a7f07fb062d8c3a44e5364Affected
  • 3df91ea20e744344100b10ae69a17211fcf5b207 to before d91fc2836562f299f34e361e089e9fe154da4f73Affected
  • 3df91ea20e744344100b10ae69a17211fcf5b207 to before 7d6f9cb24d2b2f6b6370eac074e2e6b1bafdad45Affected
  • 3df91ea20e744344100b10ae69a17211fcf5b207 to before 0c108cf3ad386e0084277093b55a351c49e0be27Affected
  • 3df91ea20e744344100b10ae69a17211fcf5b207 to before d1e894f950ad48897d1a7cb05909ea29d8c3810eAffected
  • 3df91ea20e744344100b10ae69a17211fcf5b207 to before 6ffde6e03085874ae22263ff4cef4869f797e84fAffected
  • 3df91ea20e744344100b10ae69a17211fcf5b207 to before 15fc21695eb606bdc5d483b92118ee42610a952dAffected
  • 3df91ea20e744344100b10ae69a17211fcf5b207 to before 35fcbc4243aad7e7d020b7c1dfb14bb888b20a4fAffected
LinuxLinux
  • 3.4Affected
  • before 3.4Not affected
  • 4.9.331 through 4.9.*Not affected
  • 4.14.296 through 4.14.*Not affected
  • 4.19.262 through 4.19.*Not affected
  • 5.4.220 through 5.4.*Not affected
  • 5.10.150 through 5.10.*Not affected
  • 5.15.75 through 5.15.*Not affected
  • 5.19.17 through 5.19.*Not affected
  • 6.0.3 through 6.0.*Not affected
  • 6.1 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.