platform/x86: lg-laptop: Fix LED resource handling
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ ae26278829a80ad0e60ff004de71e9276cee5dc0 · < 3e91964aa74ab261aa15d9d96318eded2fd9d22a| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
platform/x86: lg-laptop: Fix LED resource handling
The event notification callback might access kbd_backlight even when it was not successfully registered with the LED subsystem. The same happens inside acpi_remove(), where the LED devices are unregistered unconditionally.
Fix this by tracking the availability of the kbd_backlight LED device and use devm_led_classdev_register() to let devres take care of unregistering the LED devices during removal. For this the parent device of the LED devices is changed to the native platform device.
From the CVE record · Linux
The lg-laptop driver can access the keyboard-backlight LED device when it was not successfully registered. This can happen in an event notification callback or during device removal; the input does not describe an attacker action, access requirements, or user interaction.
Engineers running Linux kernels with the lg-laptop driver should check their kernel version; affected versions are not specified.