HID: sony: clean up device list on probe failure
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 4f967f6d73746f66514528cc1191025f0b5d69b3 · < 7c65699a3a311198a07659a614fe64d45924839e| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
HID: sony: clean up device list on probe failure
sony_input_configured() adds some controllers to sony_device_list before HID core registers their input devices. input_register_device() can fail after the callback returns successfully. sony_probe() then observes that HID_CLAIMED_INPUT is clear and unwinds, but only stops the HID hardware. The devres-managed sony_sc is freed while its list node remains linked, so the next matching controller traverses freed memory.
Initialize the list node and device ID to inactive states. Make list removal idempotent and run the driver-private cleanup on every probe failure path. This also makes a second cleanup safe when sony_input_configured() already unwound a partial initialization before sony_probe() handles the missing input claim.
Found by 0sec (https://0sec.ai) using automated source analysis; verified against the HID input registration and probe unwind paths.
From the CVE record · Linux
The Linux kernel’s HID sony driver can leave a freed controller entry linked when input device registration fails during probe. When the next matching controller is probed, the driver traverses freed memory. The input does not specify attacker access, authentication requirements, or user interaction.
Engineers running Linux kernels with the HID sony driver should check their versions; affected versions are not specified.