Skip to content
Heist/ feed
Back to feed
UnratedFix available

Bluetooth: MGMT: Fix memory leak in set_ssp_complete

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: Bluetooth: MGMT: Fix memory leak in set_ssp_complete Fix memory leak in set_ssp_complete() where mgmt_pending_cmd structures are not freed after being removed from the pending list. Commit 302a1f674c00 ("Bluetooth: MGMT: Fix possible UAFs") replaced mgmt_pending_foreach() calls with individual command handling but missed adding mgmt_pending_free() calls in both error and success paths of set_ssp_complete(). Other completion functions like set_le_complete() were fixed correctly in the same commit. This causes a memory leak of the mgmt_pending_cmd structure and its associated parameter data for each SSP command that completes. Add the missing mgmt_pending_free(cmd) calls in both code paths to fix the memory leak. Also fix the same issue in set_advertising_complete().

Products
Kernel
Affected versions
Not specified
Fixed versions
6.12.69, 6.18.9
CVEs
CVE-2026-23151
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 05:04 UTC · Revision 1

Source evidence

Bluetooth: MGMT: Fix memory leak in set_ssp_complete

core-osv · Original source

Published 14 Feb 2026, 16:01 UTC

In the Linux kernel, the following vulnerability has been resolved: Bluetooth: MGMT: Fix memory leak in set_ssp_complete Fix memory leak in set_ssp_complete() where mgmt_pending_cmd structures are not freed after being removed from the pending list. Commit 302a1f674c00 ("Bluetooth: MGMT: Fix possible UAFs") replaced mgmt_pending_foreach() calls with individual command handling but missed adding mgmt_pending_free() calls in both error and success paths of set_ssp_complete(). Other completion functions like set_le_complete() were fixed correctly in the same commit. This causes a memory leak of the mgmt_pending_cmd structure and its associated parameter data for each SSP command that completes. Add the missing mgmt_pending_free(cmd) calls in both code paths to fix the memory leak. Also fix the same issue in set_advertising_complete().

osv:CVE-2026-23151

Kernel

Fixed versions: 6.12.69, 6.18.9

Complete source record
{
  "id": "340602f4ddef489d1cbcc7ccbd6c8e0212e846bd72edf77af94e2620052e49c0",
  "url": "https://osv.dev/vulnerability/CVE-2026-23151",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Bluetooth: MGMT: Fix memory leak in set_ssp_complete",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: Bluetooth: MGMT: Fix memory leak in set_ssp_complete Fix memory leak in set_ssp_complete() where mgmt_pending_cmd structures are not freed after being removed from the pending list. Commit 302a1f674c00 (\"Bluetooth: MGMT: Fix possible UAFs\") replaced mgmt_pending_foreach() calls with individual command handling but missed adding mgmt_pending_free() calls in both error and success paths of set_ssp_complete(). Other completion functions like set_le_complete() were fixed correctly in the same commit. This causes a memory leak of the mgmt_pending_cmd structure and its associated parameter data for each SSP command that completes. Add the missing mgmt_pending_free(cmd) calls in both code paths to fix the memory leak. Also fix the same issue in set_advertising_complete().",
    "evidence": "osv:CVE-2026-23151",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.12.69",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.18.9",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2026-23151",
      "aliases": [
        "CVE-2026-23151"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0b60eb04b8524e1b4b3f07fea0d16fda9a677d9a"
                },
                {
                  "fixed": "d7e42dc47beb48851bc0008c1e1b79126de9d975"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "d71b98f253b079cbadc83266383f26fe7e9e103b"
                },
                {
                  "fixed": "1850a558d116d7e3e2ef36d06a56f59b640cc214"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "302a1f674c00dd5581ab8e493ef44767c5101aab"
                },
                {
                  "fixed": "3b6318505378828ee415d6ef678db6a74c077504"
                },
                {
                  "fixed": "1b9c17fd0a7fdcbe69ec5d6fe8e50bc5ed7f01f2"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "6.12.59"
                },
                {
                  "fixed": "6.12.69"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "6.16.10"
                },
                {
                  "fixed": "6.17"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "87a1f16f07c6c43771754075e08f45b41d237421"
                }
              ]
            }
          ],
          "versions": [
            "v6.12.68",
            "v6.12.67",
            "v6.12.66",
            "v6.12.65",
            "v6.12.64",
            "v6.12.63",
            "v6.12.62",
            "v6.12.61",
            "v6.12.60",
            "v6.12.59",
            "v6.16.12",
            "v6.16.11",
            "v6.16.10"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-23151.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "6.12.69"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "6.18.9"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-23151.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:33.220291268Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/1850a558d116d7e3e2ef36d06a56f59b640cc214",
        "https://git.kernel.org/stable/c/1b9c17fd0a7fdcbe69ec5d6fe8e50bc5ed7f01f2",
        "https://git.kernel.org/stable/c/3b6318505378828ee415d6ef678db6a74c077504",
        "https://git.kernel.org/stable/c/d7e42dc47beb48851bc0008c1e1b79126de9d975",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/23xxx/CVE-2026-23151.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-23151",
        "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/2026/23xxx/CVE-2026-23151.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-23151",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 500304,
  "published_at": "2026-02-14T16:01:19.663+00:00"
}