Bluetooth: vhci: Prevent use-after-free by removing debugfs files early
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 "force_suspend", "force_wakeup", and others were created under hdev->debugfs but not removed in vhci_release(). Since vhci_release() 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 hci_release_dev(), user can access files after vhci_data is freed but before hdev->debugfs is released.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.12.46, 6.16.6, 6.6.105
- CVEs
- CVE-2025-39861
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 14:37 UTC · Revision 1
Source evidence
Bluetooth: vhci: Prevent use-after-free by removing debugfs files early
core-osv · Original sourcePublished 19 Sept 2025, 15:26 UTC
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 "force_suspend", "force_wakeup", and others were created under hdev->debugfs but not removed in vhci_release(). Since vhci_release() 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 hci_release_dev(), user can access files after vhci_data is freed but before hdev->debugfs is released.
osv:CVE-2025-39861
Kernel
Fixed versions: 6.6.105, 6.12.46, 6.16.6
Complete source record
{
"id": "81c3d111b0e64aa21fa70539d13b69e9d6e12dd2afdea1dffea925576be5a163",
"url": "https://osv.dev/vulnerability/CVE-2025-39861",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Bluetooth: vhci: Prevent use-after-free by removing debugfs files early",
"summary": "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 \"force_suspend\", \"force_wakeup\", and others were created under hdev->debugfs but not removed in vhci_release(). Since vhci_release() 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 hci_release_dev(), user can access files after vhci_data is freed but before hdev->debugfs is released.",
"evidence": "osv:CVE-2025-39861",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.6.105",
"evidence": "/affected/1/ranges"
},
{
"value": "6.12.46",
"evidence": "/affected/1/ranges"
},
{
"value": "6.16.6",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "CVE-2025-39861",
"aliases": [
"CVE-2025-39861"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "ab4e4380d4e158486e595013a2635190e07e28ce"
},
{
"fixed": "bd75eba88e88d7b896b0c737b02a74a12afc235f"
},
{
"fixed": "1503756fffe76d5aea2371a4b8dee20c3577bcfd"
},
{
"fixed": "7cc08f2f127b9a66f46ea918e34353811a7cb378"
},
{
"fixed": "28010791193a4503f054e8d69a950ef815deb539"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-39861.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.4.0"
},
{
"fixed": "6.6.105"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.12.46"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.13.0"
},
{
"fixed": "6.16.6"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-39861.json"
}
}
],
"modified": "2026-10-28T02:30:29.558044997Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/1503756fffe76d5aea2371a4b8dee20c3577bcfd",
"https://git.kernel.org/stable/c/28010791193a4503f054e8d69a950ef815deb539",
"https://git.kernel.org/stable/c/7cc08f2f127b9a66f46ea918e34353811a7cb378",
"https://git.kernel.org/stable/c/bd75eba88e88d7b896b0c737b02a74a12afc235f",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39861.json",
"https://nvd.nist.gov/vuln/detail/CVE-2025-39861",
"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/2025/39xxx/CVE-2025-39861.json"
}
},
"related_cves": [
{
"value": "CVE-2025-39861",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 496437,
"published_at": "2025-09-19T15:26:31.519+00:00"
}