CVE-2026-90041: HID: sony: clean up device list on probe failure
From: Greg Kroah-Hartman <[email protected]>
Description
===========
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.
The Linux kernel CVE team has assigned CVE-2026-90041 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.10 with commit 4f967f6d73746f66514528cc1191025f0b5d69b3 and fixed in 6.18.51 with commit 3b4709e4864908bb06c48c500cc8db8d3d55d139 Issue introduced in 4.10 with commit 4f967f6d73746f66514528cc1191025f0b5d69b3 and fixed in 7.2.5 with commit d044d796e2a369c6051c7e83dce88c7baa2494d4 Issue introduced in 4.10 with commit 4f967f6d73746f66514528cc1191025f0b5d69b3 and fixed in 7.3-rc1 with commit 7c65699a3a311198a07659a614fe64d45924839e
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-90041
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/hid/hid-sony.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/3b4709e4864908bb06c48c500cc8db8d3d55d139 https://git.kernel.org/stable/c/d044d796e2a369c6051c7e83dce88c7baa2494d4 https://git.kernel.org/stable/c/7c65699a3a311198a07659a614fe64d45924839e