{"id":"CVE-2025-39861","state":"PUBLISHED","title":"Bluetooth: vhci: Prevent use-after-free by removing debugfs files early","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: vhci: Prevent use-after-free by removing debugfs files early\n\nMove the creation of debugfs files into a dedicated function, and ensure\nthey are explicitly removed during vhci_release(), before associated\ndata structures are freed.\n\nPreviously, debugfs files such as \"force_suspend\", \"force_wakeup\", and\nothers were created under hdev->debugfs but not removed in\nvhci_release(). Since vhci_release() frees the backing vhci_data\nstructure, any access to these files after release would result in\nuse-after-free errors.\n\nAlthough hdev->debugfs is later freed in hci_release_dev(), user can\naccess files after vhci_data is freed but before hdev->debugfs is\nreleased.","publishedAt":"2025-09-19T15:26:31.519Z","updatedAt":"2026-05-11T21:37:51.680Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"CISA-ADP"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ab4e4380d4e158486e595013a2635190e07e28ce","status":"affected","lessThan":"bd75eba88e88d7b896b0c737b02a74a12afc235f","versionType":"git"},{"version":"ab4e4380d4e158486e595013a2635190e07e28ce","status":"affected","lessThan":"1503756fffe76d5aea2371a4b8dee20c3577bcfd","versionType":"git"},{"version":"ab4e4380d4e158486e595013a2635190e07e28ce","status":"affected","lessThan":"7cc08f2f127b9a66f46ea918e34353811a7cb378","versionType":"git"},{"version":"ab4e4380d4e158486e595013a2635190e07e28ce","status":"affected","lessThan":"28010791193a4503f054e8d69a950ef815deb539","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/bluetooth/hci_vhci.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.4","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.4","versionType":"semver"},{"version":"6.6.105","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.46","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.16.6","status":"unaffected","lessThanOrEqual":"6.16.*","versionType":"semver"},{"version":"6.17","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/bluetooth/hci_vhci.c"]}],"references":["https://git.kernel.org/stable/c/bd75eba88e88d7b896b0c737b02a74a12afc235f","https://git.kernel.org/stable/c/1503756fffe76d5aea2371a4b8dee20c3577bcfd","https://git.kernel.org/stable/c/7cc08f2f127b9a66f46ea918e34353811a7cb378","https://git.kernel.org/stable/c/28010791193a4503f054e8d69a950ef815deb539"],"weaknesses":["CWE-416"],"ingestedAt":"2026-10-29T20:09:09.358Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/39xxx/CVE-2025-39861.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-39861","state":"PUBLISHED","datePublished":"2025-09-19T15:26:31.519Z","dateUpdated":"2026-05-11T21:37:51.680Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-04-16T07:20:57.143Z"},"containers":{"cna":{"title":"Bluetooth: vhci: Prevent use-after-free by removing debugfs files early","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: vhci: Prevent use-after-free by removing debugfs files early\n\nMove the creation of debugfs files into a dedicated function, and ensure\nthey are explicitly removed during vhci_release(), before associated\ndata structures are freed.\n\nPreviously, debugfs files such as \"force_suspend\", \"force_wakeup\", and\nothers were created under hdev->debugfs but not removed in\nvhci_release(). Since vhci_release() frees the backing vhci_data\nstructure, any access to these files after release would result in\nuse-after-free errors.\n\nAlthough hdev->debugfs is later freed in hci_release_dev(), user can\naccess files after vhci_data is freed but before hdev->debugfs is\nreleased."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ab4e4380d4e158486e595013a2635190e07e28ce","status":"affected","lessThan":"bd75eba88e88d7b896b0c737b02a74a12afc235f","versionType":"git"},{"version":"ab4e4380d4e158486e595013a2635190e07e28ce","status":"affected","lessThan":"1503756fffe76d5aea2371a4b8dee20c3577bcfd","versionType":"git"},{"version":"ab4e4380d4e158486e595013a2635190e07e28ce","status":"affected","lessThan":"7cc08f2f127b9a66f46ea918e34353811a7cb378","versionType":"git"},{"version":"ab4e4380d4e158486e595013a2635190e07e28ce","status":"affected","lessThan":"28010791193a4503f054e8d69a950ef815deb539","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/bluetooth/hci_vhci.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.4","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.4","versionType":"semver"},{"version":"6.6.105","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.46","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.16.6","status":"unaffected","lessThanOrEqual":"6.16.*","versionType":"semver"},{"version":"6.17","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/bluetooth/hci_vhci.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/bd75eba88e88d7b896b0c737b02a74a12afc235f"},{"url":"https://git.kernel.org/stable/c/1503756fffe76d5aea2371a4b8dee20c3577bcfd"},{"url":"https://git.kernel.org/stable/c/7cc08f2f127b9a66f46ea918e34353811a7cb378"},{"url":"https://git.kernel.org/stable/c/28010791193a4503f054e8d69a950ef815deb539"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T21:37:51.680Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.4","versionEndExcluding":"6.6.105"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.4","versionEndExcluding":"6.12.46"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.4","versionEndExcluding":"6.16.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.4","versionEndExcluding":"6.17"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":7.8,"attackVector":"LOCAL","baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","integrityImpact":"HIGH","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"LOW","confidentialityImpact":"HIGH"}},{"other":{"type":"ssvc","content":{"id":"CVE-2025-39861","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2026-01-14T19:23:17.100703Z"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-416","lang":"en","type":"CWE","description":"CWE-416 Use After Free"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-01-14T19:33:11.242Z"}}]}}}