CVE-2026-31511
Received Received - Intake
Use-After-Free Vulnerability in Linux Bluetooth MGMT Component

Publication date: 2026-04-22

Last updated on: 2026-04-28

Assigner: kernel.org

Description
In the Linux kernel, the following vulnerability has been resolved: Bluetooth: MGMT: Fix dangling pointer on mgmt_add_adv_patterns_monitor_complete This fixes the condition checking so mgmt_pending_valid is executed whenever status != -ECANCELED otherwise calling mgmt_pending_free(cmd) would kfree(cmd) without unlinking it from the list first, leaving a dangling pointer. Any subsequent list traversal (e.g., mgmt_pending_foreach during __mgmt_power_off, or another mgmt_pending_valid call) would dereference freed memory.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-04-22
Last Modified
2026-04-28
Generated
2026-05-07
AI Q&A
2026-04-22
EPSS Evaluated
2026-05-05
NVD
EUVD
Affected Vendors & Products
Showing 12 associated CPEs
Vendor Product Version / Range
linux linux_kernel From 6.16.10 (inc) to 6.17 (exc)
linux linux_kernel 6.17
linux linux_kernel 7.0
linux linux_kernel 7.0
linux linux_kernel 7.0
linux linux_kernel 7.0
linux linux_kernel 7.0
linux linux_kernel 7.0
linux linux_kernel 7.0
linux linux_kernel From 6.19 (inc) to 6.19.11 (exc)
linux linux_kernel From 6.17.1 (inc) to 6.18.21 (exc)
linux linux_kernel From 6.12.59 (inc) to 6.12.80 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-416 The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory "belongs" to the code that operates on the new pointer.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

This vulnerability exists in the Linux kernel's Bluetooth management code. Specifically, it involves a dangling pointer issue in the function mgmt_add_adv_patterns_monitor_complete. The problem occurs because the condition checking was incorrect, causing the function mgmt_pending_free(cmd) to free memory (kfree(cmd)) without first unlinking the command from a list. As a result, the list still contains a pointer to freed memory, which is a dangling pointer.

Subsequent operations that traverse this list, such as mgmt_pending_foreach during __mgmt_power_off or another mgmt_pending_valid call, would then dereference this freed memory, potentially leading to undefined behavior or crashes.


How can this vulnerability impact me? :

This vulnerability can lead to the Linux kernel dereferencing freed memory due to a dangling pointer. This can cause system instability, crashes, or potentially allow an attacker to exploit the kernel memory corruption for privilege escalation or denial of service.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart