Description
In the Linux kernel, the following vulnerability has been resolved: Bluetooth: btusb: fix use-after-free in force_poll_sync The force_poll_sync debugfs file uses the driver's struct btusb_data as its private data. The file is created under hdev->debugfs and is removed only when the HCI device is released, while btusb_disconnect() frees btusb_data 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 force_poll_sync_read+0x129/0x140 Read of size 1 at addr ffff88800cfb7038 ... Freed by task ...: kfree btusb_disconnect Remove the debugfs file before the private data is freed. debugfs_remove() waits for callers that are already inside the file operations, and any later access fails with -EIO instead of reaching the driver, so the force_poll_sync file can no longer dereference btusb_data after it is gone.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
800fe5ec302e1ebbf5e3f891f886deecd49c7132 to < 1c8374b58ecb1482b39b7ad05bc142a9ab9f80b6affected800fe5ec302e1ebbf5e3f891f886deecd49c7132 to < 868c886f45f7c10dc888b94c6993352702a84d04affected
Linux Linux
Default version status: affected
5.17affected0 to < 5.17unaffected7.3.7 to ≤ 7.3.*unaffected7.4-rc3 to ≤ *unaffected