Bluetooth: MGMT: Fix memory leak in set_ssp_complete
Published Feb 14, 2026
6.1
MEDIUMCVSS 3.1
EPSS 0.12%
Description
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().
Affected products
-
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints-
- Version StatusaffectedConstraints
- Version
-
- Version 6.12.59StatusaffectedConstraints<6.12.69
- Version 6.16.10StatusaffectedConstraints<6.17
- Version
-
- Version 6.17StatusaffectedConstraints-
- Version 0StatusunaffectedConstraints<6.17
- Version 6.12.69StatusunaffectedConstraints<=6.12.*
- Version 6.18.9StatusunaffectedConstraints<=6.18.*
- Version 6.19StatusunaffectedConstraints<=*
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Linux | Linux | unaffected |
| ||||||||||||||||||
| Linux | Linux | unaffected |
| ||||||||||||||||||
| Linux | Linux | affected |
|
- ≥ 6.12.59 · < 6.12.69
- ≥ 6.16.10 · < 6.17
- ≥ 6.17.1 · < 6.18.9
- 6.17
- 6.19
- 6.19
- 6.19
- 6.19
- 6.19
- 6.19
- 6.19
No data.
Red Hat Enterprise Linux 10
kernel
Fix deferred
Red Hat Enterprise Linux 6
kernel
Not affected
Red Hat Enterprise Linux 7
kernel
Not affected
Red Hat Enterprise Linux 7
kernel-rt
Not affected
Red Hat Enterprise Linux 8
kernel
Not affected
Red Hat Enterprise Linux 8
kernel-rt
Not affected
Red Hat Enterprise Linux 9
kernel
Fix deferred
Red Hat Enterprise Linux 9
kernel-rt
Fix deferred
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 10 | kernel | Fix deferred | n/a |
| Red Hat Enterprise Linux 6 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 7 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 7 | kernel-rt | Not affected | n/a |
| Red Hat Enterprise Linux 8 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 8 | kernel-rt | Not affected | n/a |
| Red Hat Enterprise Linux 9 | kernel | Fix deferred | n/a |
| Red Hat Enterprise Linux 9 | kernel-rt | Fix deferred | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
A memory leak in the Bluetooth MGMT command completion path occurs because mgmt_pending_cmd objects are removed from the pending list but are not freed in both the success and error paths of set_ssp_complete. This results in leaked pending command structures and their associated parameter buffers for each completed SSP command. The same pattern also affects set_advertising_complete. Over time, repeated management operations can cause unbounded kernel memory growth and lead to resource exhaustion or degraded system stability. For the CVSS the PR:L choice is appropriate because triggering these completions typically requires access to Bluetooth management interfaces, which is commonly restricted to privileged users or processes with elevated capabilities. The primary impact is availability through memory pressure.
References (10)
- https://access.redhat.com/security/cve/CVE-2026-23151 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2439926 Issue Tracking
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-5889 Advisory
- https://git.kernel.org/stable/c/1850a558d116d7e3e2ef36d06a56f59b640cc214 Patch
- https://git.kernel.org/stable/c/1b9c17fd0a7fdcbe69ec5d6fe8e50bc5ed7f01f2 Patch
- https://git.kernel.org/stable/c/3b6318505378828ee415d6ef678db6a74c077504 Patch
- https://git.kernel.org/stable/c/d7e42dc47beb48851bc0008c1e1b79126de9d975
- https://lore.kernel.org/linux-cve-announce/2026021414-CVE-2026-23151-74d4@gregkh/T
- https://nvd.nist.gov/vuln/detail/CVE-2026-23151
- https://www.cve.org/CVERecord?id=CVE-2026-23151
Change history (0)
No recorded changes yet.