AZL-118139: CVE-2026-143120 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: btusb: fix use-after-free in forcepollsync
The forcepollsync debugfs file uses the driver's struct btusbdata as its private data. The file is created under hdev->debugfs and is removed only when the HCI device is released, while btusbdisconnect() frees btusbdata unconditionally. The HCI device can outlive the driver data, for example when an HCI socket still references it, so reading or writing the already opened file then dereferences freed memory:
BUG: KASAN: slab-use-after-free in forcepollsyncread+0x129/0x140 Read of size 1 at addr ffff88800cfb7038 ... Freed by task ...: kfree btusbdisconnect
Remove the debugfs file before the private data is freed. debugfsremove() waits for callers that are already inside the file operations, and any later access fails with -EIO instead of reaching the driver, so the forcepollsync file can no longer dereference btusbdata after it is gone.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
Remove the force_poll_sync debugfs file before freeing the btusb driver's private data, so debugfs_remove() waits for active file operations to finish.
Event History
Frequently Asked Questions
What conditions are required to trigger this issue?
The system must use the btusb Bluetooth driver and have the force_poll_sync debugfs file available. The vulnerable sequence requires btusb_data to be freed during device disconnect while the HCI device remains alive, such as when an HCI socket still references it, followed by access to the debugfs file.
Who is realistically exposed?
Systems using USB Bluetooth hardware through the btusb driver are the relevant population. Exposure is tied to access to the driver's force_poll_sync debugfs entry; the provided data does not establish that this file is available or accessible in every configuration.
How does the fix prevent use-after-free access?
The fix removes the force_poll_sync debugfs file before btusb_disconnect() frees the driver's btusb_data structure. debugfs_remove() waits for active file operations, and later accesses fail with -EIO rather than reaching freed driver memory.