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.
[
{
"target": {
"file": "drivers/bluetooth/hci_vhci.c"
},
"digest": {
"line_hashes": [
"337017869479544725591896912897710713495",
"250709777616368109364927731366584644850",
"159046690768806212120392454230219180911",
"179453261661544361949430564859309371758",
"123879112168514101979266504195099823621",
"237888052837933005139526559048260146755",
"184041324830377279064738766284542595679",
"77889929587199887379126354717451984824",
"318505707318608295354376101421717416938",
"111261245345249329621858932945725741367",
"221479739490144698170959277479275441516",
"304010858699350232945476889467605054086",
"98043591822853198206567491863187952165",
"154611365968205248223505198014745243050",
"287920919645497003724366624763782473615",
"79732038729685339805975995151473841159",
"332193469962416461557645506596038969192",
"225152139430304842972215139945058518009",
"283672643874248288459510042023796560775",
"179697819132022505997107697154571459932",
"334950151667745482765502106013890754421",
"101970277128736823071448337955572285238",
"59882833749102183659460075589793928982",
"149796852114843278507267711929567582017",
"22544430602925896043251174463402370500"
],
"threshold": 0.9
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@28010791193a4503f054e8d69a950ef815deb539",
"deprecated": false,
"id": "CVE-2025-39861-09967891",
"signature_type": "Line"
},
{
"target": {
"function": "__vhci_create_device",
"file": "drivers/bluetooth/hci_vhci.c"
},
"digest": {
"length": 1821.0,
"function_hash": "103239599317040294131632795153628518715"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@28010791193a4503f054e8d69a950ef815deb539",
"deprecated": false,
"id": "CVE-2025-39861-3d9bad1b",
"signature_type": "Function"
},
{
"target": {
"file": "drivers/bluetooth/hci_vhci.c"
},
"digest": {
"line_hashes": [
"337017869479544725591896912897710713495",
"250709777616368109364927731366584644850",
"159046690768806212120392454230219180911",
"179453261661544361949430564859309371758",
"123879112168514101979266504195099823621",
"237888052837933005139526559048260146755",
"184041324830377279064738766284542595679",
"77889929587199887379126354717451984824",
"318505707318608295354376101421717416938",
"111261245345249329621858932945725741367",
"221479739490144698170959277479275441516",
"304010858699350232945476889467605054086",
"98043591822853198206567491863187952165",
"154611365968205248223505198014745243050",
"287920919645497003724366624763782473615",
"79732038729685339805975995151473841159",
"332193469962416461557645506596038969192",
"225152139430304842972215139945058518009",
"287482821057425443259726097889937588609",
"179697819132022505997107697154571459932",
"334950151667745482765502106013890754421",
"101970277128736823071448337955572285238",
"59882833749102183659460075589793928982",
"149796852114843278507267711929567582017",
"22544430602925896043251174463402370500"
],
"threshold": 0.9
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1503756fffe76d5aea2371a4b8dee20c3577bcfd",
"deprecated": false,
"id": "CVE-2025-39861-4119b615",
"signature_type": "Line"
},
{
"target": {
"function": "__vhci_create_device",
"file": "drivers/bluetooth/hci_vhci.c"
},
"digest": {
"length": 1803.0,
"function_hash": "224097428942704312578487991361246307133"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1503756fffe76d5aea2371a4b8dee20c3577bcfd",
"deprecated": false,
"id": "CVE-2025-39861-491ea543",
"signature_type": "Function"
},
{
"target": {
"function": "__vhci_create_device",
"file": "drivers/bluetooth/hci_vhci.c"
},
"digest": {
"length": 1862.0,
"function_hash": "207063882931041288459246949197400643009"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@bd75eba88e88d7b896b0c737b02a74a12afc235f",
"deprecated": false,
"id": "CVE-2025-39861-64ce8d02",
"signature_type": "Function"
},
{
"target": {
"function": "vhci_release",
"file": "drivers/bluetooth/hci_vhci.c"
},
"digest": {
"length": 348.0,
"function_hash": "244226211545505590444313616493901259997"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@bd75eba88e88d7b896b0c737b02a74a12afc235f",
"deprecated": false,
"id": "CVE-2025-39861-6bd14f1d",
"signature_type": "Function"
},
{
"target": {
"function": "vhci_release",
"file": "drivers/bluetooth/hci_vhci.c"
},
"digest": {
"length": 348.0,
"function_hash": "244226211545505590444313616493901259997"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1503756fffe76d5aea2371a4b8dee20c3577bcfd",
"deprecated": false,
"id": "CVE-2025-39861-97ec9abc",
"signature_type": "Function"
},
{
"target": {
"file": "drivers/bluetooth/hci_vhci.c"
},
"digest": {
"line_hashes": [
"337017869479544725591896912897710713495",
"250709777616368109364927731366584644850",
"159046690768806212120392454230219180911",
"179453261661544361949430564859309371758",
"123879112168514101979266504195099823621",
"237888052837933005139526559048260146755",
"184041324830377279064738766284542595679",
"77889929587199887379126354717451984824",
"318505707318608295354376101421717416938",
"111261245345249329621858932945725741367",
"221479739490144698170959277479275441516",
"304010858699350232945476889467605054086",
"98043591822853198206567491863187952165",
"154611365968205248223505198014745243050",
"287920919645497003724366624763782473615",
"79732038729685339805975995151473841159",
"332193469962416461557645506596038969192",
"225152139430304842972215139945058518009",
"287482821057425443259726097889937588609",
"179697819132022505997107697154571459932",
"334950151667745482765502106013890754421",
"101970277128736823071448337955572285238",
"59882833749102183659460075589793928982",
"149796852114843278507267711929567582017",
"22544430602925896043251174463402370500"
],
"threshold": 0.9
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@bd75eba88e88d7b896b0c737b02a74a12afc235f",
"deprecated": false,
"id": "CVE-2025-39861-9c3f86a1",
"signature_type": "Line"
},
{
"target": {
"function": "vhci_release",
"file": "drivers/bluetooth/hci_vhci.c"
},
"digest": {
"length": 348.0,
"function_hash": "244226211545505590444313616493901259997"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@28010791193a4503f054e8d69a950ef815deb539",
"deprecated": false,
"id": "CVE-2025-39861-c98e5fc4",
"signature_type": "Function"
}
]