ACPI: button: Fix ACPI GPE handler leak during removal
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.18.577.0.127.1In the Linux kernel, the following vulnerability has been resolved:
ACPI: button: Fix ACPI GPE handler leak during removal
Commit a7e23ec17fee ("ACPI: button: Install notifier for system events as well") changed the ACPI notify handler type for ACPI buttons to ACPI_ALL_NOTIFY, but it forgot to update acpi_button_remove() to reflect that change. This leads to leaking the notify handler past driver removal, which may cause a kernel crash to occur if ACPI notify on the given device is triggered after removing the driver, and causes a subsequent probe of the given device with the same driver to fail.
Address this by updating the acpi_remove_notify_handler() call in acpi_button_remove() as appropriate.
From the CVE record · Linux
The Linux kernel's ACPI button driver can leave a notify handler installed after the driver is removed. An ACPI notification for that device after removal may crash the kernel, and a later probe with the same driver may fail; the input does not specify attacker access, authentication, or user-interaction requirements.
Engineers running Linux kernels with the ACPI button driver should check their versions; affected versions are not specified.