CVE-2025-39981: Use-after-free in Linux kernel Bluetooth MGMT pending command handling
- Vendor
- Linux
CVE-2025-39981 is a use-after-free vulnerability in the Linux kernel Bluetooth management subsystem. A struct mgmt_pending object can be freed while asynchronous command processing still references it. Pending commands left on the management command list can also remain accessible to concurrent cleanup, creating use-after-free or double-free conditions. A demonstrated failure involves mgmt_add_adv_patterns_monitor_sync executing through hci_cmd_sync_work while Bluetooth controller shutdown frees the pending object through __mgmt_power_off. The issue was introduced upstream in Linux 5.17 and fixed in Linux 6.16.10 and 6.17; distribution kernels may have different affected versions because of backports. Exploitation can cause kernel memory corruption, potentially resulting in denial of service or privilege escalation.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
A local attacker able to interact with the affected Bluetooth management subsystem can trigger kernel memory corruption. Consequences include kernel crashes and system-wide denial of service, with potential privilege escalation. A slab-use-after-free has been demonstrated; reliable privilege escalation is not established.
Mitigation
If you can’t patch tonight, do this now.
Disable Bluetooth management interfaces if they are unused. Where Bluetooth is required, harden management interfaces and restrict access to trusted users and processes until a fixed kernel can be deployed. These measures reduce exposure but do not correct the pending-command lifetime flaw.
Remediation
Patch, then assume compromise.
Upgrade to a supported kernel release containing the fix. Upstream fixes are included in Linux 6.16.10 and 6.17; use the latest supported stable release rather than cherry-picking individual commits. The fix introduces mgmt_pending_valid checks and atomically validates and removes pending commands while holding mgmt_pending_lock, preventing concurrent access and freeing. For distribution kernels, install the vendor-provided security update rather than relying solely on upstream version comparisons. Fixed Red Hat builds include 4.18.0-553.126.1.el8_10 for RHEL 8, 5.14.0-284.166.1.el9_2 for applicable RHEL 9.2 channels, 5.14.0-427.121.1.el9_4 for applicable RHEL 9.4 channels, 5.14.0-570.77.1.el9_6 for applicable RHEL 9.6 channels, and 6.12.0-55.52.1.el10_0 for RHEL 10.0 Extended Update Support. Reboot into the updated kernel.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2025-39981 exploited in the wild?
- As of Oct 25, 2026, Mallory has no reports of CVE-2025-39981 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2025-39981?
- As of Oct 25, 2026, Mallory has found no public exploit for CVE-2025-39981.
- Is there a patch for CVE-2025-39981?
- Upgrade to a supported kernel release containing the fix. Upstream fixes are included in Linux 6.16.10 and 6.17; use the latest supported stable release rather than cherry-picking individual commits.
- What products are affected by CVE-2025-39981?
- Linux Kernel.
- How severe is CVE-2025-39981?
- CVE-2025-39981 has a CVSS v3.1 score of 7.8 (High) and an EPSS score of 0.23% (8th percentile) as of Oct 25, 2026.
Recent activity
24 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.