Skip to content
Heist/ feed
Back to feed
HighFix available

Bluetooth: L2CAP: Fix user-after-free

Type: advisorySources: OSV

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

Products
Kernel
Affected versions
Not specified
Fixed versions
4.14.296, 4.19.262, 4.9.331, 5.10.150, 5.15.75, 5.19.17, 5.4.220, 6.0.3
CVEs
CVE-2022-50386
Confirmed fixed CVEs
Not specified
Updated in this feed
5 Nov 2026, 03:15 UTC · Revision 1

Source evidence

Bluetooth: L2CAP: Fix user-after-free

core-osv · Original source

Published 18 Sept 2025, 13:33 UTC

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

osv:CVE-2022-50386

Kernel

Fixed versions: 4.9.331, 4.14.296, 4.19.262, 5.4.220, 5.10.150, 5.15.75, 5.19.17, 6.0.3

Complete source record
{
  "id": "feb612af35d86705defc356c544a310ef482834871d254932cae6545bbdc4d17",
  "url": "https://osv.dev/vulnerability/CVE-2022-50386",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Bluetooth: L2CAP: Fix user-after-free",
    "summary": "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",
    "evidence": "osv:CVE-2022-50386",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "4.9.331",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "4.14.296",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "4.19.262",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.4.220",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.10.150",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.75",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.19.17",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.0.3",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "CVE-2022-50386",
      "aliases": [
        "CVE-2022-50386"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "3df91ea20e744344100b10ae69a17211fcf5b207"
                },
                {
                  "fixed": "11e40d6c0823f699d8ad501e48d1c3ae4be386cd"
                },
                {
                  "fixed": "843fc4e386dd84b806a7f07fb062d8c3a44e5364"
                },
                {
                  "fixed": "d91fc2836562f299f34e361e089e9fe154da4f73"
                },
                {
                  "fixed": "7d6f9cb24d2b2f6b6370eac074e2e6b1bafdad45"
                },
                {
                  "fixed": "0c108cf3ad386e0084277093b55a351c49e0be27"
                },
                {
                  "fixed": "d1e894f950ad48897d1a7cb05909ea29d8c3810e"
                },
                {
                  "fixed": "6ffde6e03085874ae22263ff4cef4869f797e84f"
                },
                {
                  "fixed": "15fc21695eb606bdc5d483b92118ee42610a952d"
                },
                {
                  "fixed": "35fcbc4243aad7e7d020b7c1dfb14bb888b20a4f"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50386.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "3.4.0"
                },
                {
                  "fixed": "4.9.331"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.10.0"
                },
                {
                  "fixed": "4.14.296"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.15.0"
                },
                {
                  "fixed": "4.19.262"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.20.0"
                },
                {
                  "fixed": "5.4.220"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.5.0"
                },
                {
                  "fixed": "5.10.150"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.75"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "5.19.17"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.20.0"
                },
                {
                  "fixed": "6.0.3"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50386.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:42.364955531Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/0c108cf3ad386e0084277093b55a351c49e0be27",
        "https://git.kernel.org/stable/c/11e40d6c0823f699d8ad501e48d1c3ae4be386cd",
        "https://git.kernel.org/stable/c/15fc21695eb606bdc5d483b92118ee42610a952d",
        "https://git.kernel.org/stable/c/35fcbc4243aad7e7d020b7c1dfb14bb888b20a4f",
        "https://git.kernel.org/stable/c/6ffde6e03085874ae22263ff4cef4869f797e84f",
        "https://git.kernel.org/stable/c/7d6f9cb24d2b2f6b6370eac074e2e6b1bafdad45",
        "https://git.kernel.org/stable/c/843fc4e386dd84b806a7f07fb062d8c3a44e5364",
        "https://git.kernel.org/stable/c/d1e894f950ad48897d1a7cb05909ea29d8c3810e",
        "https://git.kernel.org/stable/c/d91fc2836562f299f34e361e089e9fe154da4f73",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50386.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-50386",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50386.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-50386",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 509752,
  "published_at": "2025-09-18T13:33:07.191+00:00"
}