{"id":"CVE-2025-39861","summary":"Bluetooth: vhci: Prevent use-after-free by removing debugfs files early","details":"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-\u003edebugfs 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-\u003edebugfs is later freed in hci_release_dev(), user can\naccess files after vhci_data is freed but before hdev-\u003edebugfs is\nreleased.","modified":"2026-04-02T12:48:11.162303Z","published":"2025-09-19T15:26:31.519Z","related":["SUSE-SU-2025:03600-1","SUSE-SU-2025:03634-1","SUSE-SU-2025:20851-1","SUSE-SU-2025:20861-1","SUSE-SU-2025:20870-1","SUSE-SU-2025:20898-1","SUSE-SU-2025:21074-1","SUSE-SU-2025:21139-1","SUSE-SU-2025:21179-1","SUSE-SU-2025:3751-1","SUSE-SU-2025:4057-1","SUSE-SU-2025:4132-1","SUSE-SU-2025:4141-1","openSUSE-SU-2025:20081-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39861.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/1503756fffe76d5aea2371a4b8dee20c3577bcfd"},{"type":"WEB","url":"https://git.kernel.org/stable/c/28010791193a4503f054e8d69a950ef815deb539"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7cc08f2f127b9a66f46ea918e34353811a7cb378"},{"type":"WEB","url":"https://git.kernel.org/stable/c/bd75eba88e88d7b896b0c737b02a74a12afc235f"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39861.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-39861"},{"type":"PACKAGE","url":"https://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/cve-osv-conversion/osv-output/CVE-2025-39861.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}