AZL-118136: CVE-2026-143119 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: hciqca: fix use-after-free in ibs debugfs files
qcadebugfsinit() creates an "ibs" directory under hdev->debugfs and stores pointers to fields of struct qcadata in the debugfs files. qcaclose() frees qcadata without removing that directory, while hdev->debugfs is only removed when the HCI device is released. The HCI device can outlive the driver data, for example when an HCI socket still references it, so reading or writing one of the ibs files then dereferences freed memory.
Store the directory dentry in struct qcadata and remove the directory with debugfsremoverecursive() before qcadata is freed. debugfsremove() waits for callers that are already inside the file operations, and any later access fails with -EIO instead of reaching the debugfs helpers. This covers the two writable files as well.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In hci_qca, store the "ibs" directory dentry in struct qca_data and call debugfs_remove_recursive() on that directory before freeing qca_data.
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Systems using the affected Qualcomm Bluetooth HCI driver (hci_qca) are exposed when its IBS debugfs files are present. Exploitation requires the HCI device to outlive the driver data, such as when an HCI socket still references the device after qca_close() frees qca_data.
What access does an attacker need?
An attacker needs access to read or write the IBS files in the Bluetooth device's debugfs directory after the driver data has been freed. The issue involves both readable and writable IBS debugfs files.
How can I tell whether a system may be affected?
Check whether the system uses the hci_qca Bluetooth driver and exposes an "ibs" directory beneath the HCI device's debugfs directory. A vulnerable state can occur if those files remain accessible after the associated driver data has been closed or freed while the HCI device remains referenced.
What is the mitigation if the fix cannot be deployed immediately?
Limit access to the affected Bluetooth IBS debugfs files and avoid reading or writing them after the Qualcomm Bluetooth driver has been closed. The resolved code removes the IBS debugfs directory before freeing qca_data, causing later accesses to fail with -EIO rather than dereference freed memory.