CVE-2026-99481: Bluetooth: hci_vhci: Pin module for debugfs file operations
In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: hcivhci: Pin module for debugfs file operations
An open debugfs file retains its fileoperations pointer in the debugfs proxy state. However, forcesuspendfops, forcewakeupfops, aospcapablefops, and forcedevcoredumpfops have no .owner set to THISMODULE. As a result, fullproxyopenregular() calls fopsget() which succeeds without taking a reference to the hcivhci module.
When userspace opens any of these debugfs files and later closes the /dev/vhci file descriptor (triggering vhcirelease() and debugfs file removal), the open debugfs file descriptor remains valid in userspace. Because the module refcount was not incremented, the hcivhci module can be unloaded via deletemodule (rmmod hcivhci).
When the userspace process subsequently closes the debugfs file descriptor, fullproxyrelease() accesses the already unmapped fileoperations structure, resulting in a kernel page fault / oops:
BUG: unable to handle page fault for address: fffffbfff846f18b #PF: supervisor read access in kernel mode #PF: errorcode(0x0000) - not-present page Oops: Oops: 0000 [#1] SMP KASAN NOPTI RIP: 0010:fullproxyrelease+0x8e/0x140 Call Trace: <TASK> fput+0x39f/0xa60 fputclosesync+0xff/0x200 x64sysclose+0x8c/0xf0 dosyscall64+0xc3/0x590 entrySYSCALL64afterhwframe+0x76/0x7e </TASK> Modules linked in: ... [last unloaded: hcivhci(E)]
The issue was discovered via manual code audit of drivers/bluetooth/hcivhci.c and verified on a Linux 7.3-rc6 test VM with CONFIGBTVHCI=m by keeping a debugfs file open across controller teardown and module unload.
Set .owner = THISMODULE on all four fileoperations structures so that debugfs pins the module until all file descriptors are closed.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.7 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.117 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.17 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.61 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.2 - Configuration
Set .owner = THIS_MODULE on all four file_operations structures: force_suspend_fops, force_wakeup_fops, aosp_capable_fops, and force_devcoredump_fops.
Bluetooth hci_vhci debugfs file_operations .owner = THIS_MODULE