CVE-2025-39861

Source
https://cve.org/CVERecord?id=CVE-2025-39861
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-39861.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-39861
Downstream
Related
Published
2025-09-19T15:26:31.519Z
Modified
2026-03-12T02:16:18.108012Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Bluetooth: vhci: Prevent use-after-free by removing debugfs files early
Details

In the Linux kernel, the following vulnerability has been resolved:

Bluetooth: vhci: Prevent use-after-free by removing debugfs files early

Move the creation of debugfs files into a dedicated function, and ensure they are explicitly removed during vhci_release(), before associated data structures are freed.

Previously, debugfs files such as "forcesuspend", "forcewakeup", and others were created under hdev->debugfs but not removed in vhcirelease(). Since vhcirelease() frees the backing vhci_data structure, any access to these files after release would result in use-after-free errors.

Although hdev->debugfs is later freed in hcireleasedev(), user can access files after vhci_data is freed but before hdev->debugfs is released.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39861.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
ab4e4380d4e158486e595013a2635190e07e28ce
Fixed
bd75eba88e88d7b896b0c737b02a74a12afc235f
Fixed
1503756fffe76d5aea2371a4b8dee20c3577bcfd
Fixed
7cc08f2f127b9a66f46ea918e34353811a7cb378
Fixed
28010791193a4503f054e8d69a950ef815deb539

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-39861.json"