platform/x86: asus-wmi: Fix racy registrations
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 |
|
|
In the Linux kernel, the following vulnerability has been resolved:
platform/x86: asus-wmi: Fix racy registrations
asus_wmi_register_driver() may be called from multiple drivers concurrently, which can lead to the racy list operations, eventually corrupting the memory and hitting Oops on some ASUS machines. Also, the error handling is missing, and it forgot to unregister ACPI lps0 dev ops in the error case.
This patch covers those issues by introducing a simple mutex at acpi_wmi_register_driver() & *_unregister_driver, and adding the proper call of asus_s2idle_check_unregister() in the error path.
From the CVE record · Linux
Concurrent driver registrations in the Linux kernel’s asus-wmi component can race, corrupt memory, and cause a kernel Oops on some ASUS machines. The input does not establish whether an attacker can trigger this or specify authentication or user-interaction requirements.
Administrators running Linux kernels on ASUS machines should check whether their kernel includes the asus-wmi fix; affected versions are not specified.