HID: nintendo: register input device after capabilities are set
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel d723bc1fe2e72b9252234e94c11af644ec477bf7, Kernel 268679f501386ad46405d42c2bcf89384cb5e256, Kernel 27dc4b8eadac73b3c3cc526c8547d8b4ae8528be and 8 more.
In the Linux kernel, the following vulnerability has been resolved: HID: nintendo: register input device after capabilities are set input_register_device() exposes the device to userspace immediately. In joycon_input_create() it was called before joycon_config_rumble() configures the FF_RUMBLE capability and the memless force-feedback device, so a concurrent EVIOCSFF could dereference a NULL dev->ff. Registering early also means the initial udev event lacks button and axis information, which can make input managers ignore the device. Move input_register_device() to the end of joycon_input_create(), after all capabilities, the IMU input device and the force-feedback callbacks have been configured.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=2af16c1f846bd60240745bbd3afa13d5f040c61a <d723bc1fe2e72b9252234e94c11af644ec477bf7, >=2af16c1f846bd60240745bbd3afa13d5f040c61a <268679f501386ad46405d42c2bcf89384cb5e256, >=2af16c1f846bd60240745bbd3afa13d5f040c61a <27dc4b8eadac73b3c3cc526c8547d8b4ae8528be, >=2af16c1f846bd60240745bbd3afa13d5f040c61a <3288bec1a21d582b504344380139cdc0e88ebe4d, >=2af16c1f846bd60240745bbd3afa13d5f040c61a <a2a46a705c1fa724aac158fd188273dd7ee8c171, >=2af16c1f846bd60240745bbd3afa13d5f040c61a <a9fc7547f911ada09da33c5e204e5acda38e765a, =5.16 | d723bc1fe2e72b9252234e94c11af644ec477bf7, 268679f501386ad46405d42c2bcf89384cb5e256, 27dc4b8eadac73b3c3cc526c8547d8b4ae8528be, 3288bec1a21d582b504344380139cdc0e88ebe4d, a2a46a705c1fa724aac158fd188273dd7ee8c171, a9fc7547f911ada09da33c5e204e5acda38e765a |
| linux-kernel: Kernel | >=6.13.0 <6.18.47, >=6.19.0 <7.1.11, >=6.2.0 <6.12.106, >=7.2.0 <7.2.1, >=5.16.0 <6.1.191 | 6.18.47, 7.1.11, 6.12.106, 7.2.1, 6.1.191 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket