HID: sony: clean up device list on probe failure
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.6.160, 6.12.111, 6.18.51, 7.2.5
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
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.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 4f967f6d73746f66514528cc1191025f0b5d69b3 · fixed in 7ee50d42a6d5c8cf3d8afb3285273bcc58452214; From 4f967f6d73746f66514528cc1191025f0b5d69b3 · fixed in b84544ef00a27e8081498d33af7dac33b6cb8418; From 4f967f6d73746f66514528cc1191025f0b5d69b3 · fixed in 3b4709e4864908bb06c48c500cc8db8d3d55d139; From 4f967f6d73746f66514528cc1191025f0b5d69b3 · fixed in d044d796e2a369c6051c7e83dce88c7baa2494d4; From 4f967f6d73746f66514528cc1191025f0b5d69b3 · fixed in 7c65699a3a311198a07659a614fe64d45924839e
- Linux Linux
4.10
- KernelLinux
From 4.10.0 · fixed in 6.6.160; From 6.7.0 · fixed in 6.12.111; From 6.13.0 · fixed in 6.18.51; From 6.19.0 · fixed in 7.2.5