Linux
platform/x86: asus-wmi: fix resource leaks on probe failure
In the Linux kernel, the following vulnerability has been resolved: platform/x86: asus-wmi: fix resource leaks on probe failure During driver initialization in asus_wmi_add(), various subsystems are registered sequentially. However, the error path labels are out of order relative to the registration sequence. Specifically: 1. If asus_wmi_custom_fan_curve_init() fails, the driver jumps to fail_custom_fan_curve. Because this label is placed below fail_sysfs, it bypasses the cleanup calls for the input device and sysfs groups, which were successfully registered before, leaking those resources. 2. If asus_screenpad_init() fails, the driver jumps to fail_screenpad. Because fail_screenpad is placed below fail_backlight, it bypasses the cleanup calls for backlight and rfkill, leaking those resources. Fix these resource leaks by reordering the error path labels in asus_wmi_add() to match the exact reverse order of the resource allocations.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 0f0ac158d28ff78e75c334e869b1cb8e69372a1f, < 72d792c8053f238ae541fdaa90e609548509b65f
- >= 0f0ac158d28ff78e75c334e869b1cb8e69372a1f, < 959ed35f8c8f07b8dd43c3f917a43ae2f77e4471
- >= 0f0ac158d28ff78e75c334e869b1cb8e69372a1f, < 8d5999608da60db45949e5459f74f581cdaacd04
- >= 0f0ac158d28ff78e75c334e869b1cb8e69372a1f, < 8410cd2690d463b60527d00ac8cffea2d5a041f6
- >= 0f0ac158d28ff78e75c334e869b1cb8e69372a1f, < 3308b8c5f5a28403611a2f5a46f06aabe4f0c661
- >= 0f0ac158d28ff78e75c334e869b1cb8e69372a1f, < ef3daa2b84a2b8499ce9e2ce1c865dca36d39f95
Fixed in 72d792c8053f238ae541fdaa90e609548509b65f, 959ed35f8c8f07b8dd43c3f917a43ae2f77e4471, 8d5999608da60db45949e5459f74f581cdaacd04, 8410cd2690d463b60527d00ac8cffea2d5a041f6, 3308b8c5f5a28403611a2f5a46f06aabe4f0c661, ef3daa2b84a2b8499ce9e2ce1c865dca36d39f95
- 5.17
Fixed in 0, 6.1.191, 6.6.160, 6.12.114, 6.18.57, 7.2.6, 7.3
Mitigation
Upgrade Linux to 72d792c8053f238ae541fdaa90e609548509b65f or 959ed35f8c8f07b8dd43c3f917a43ae2f77e4471 or 8d5999608da60db45949e5459f74f581cdaacd04 or 8410cd2690d463b60527d00ac8cffea2d5a041f6 or 3308b8c5f5a28403611a2f5a46f06aabe4f0c661 or ef3daa2b84a2b8499ce9e2ce1c865dca36d39f95 or later.
Upgrade Linux to 0 or 6.1.191 or 6.6.160 or 6.12.114 or 6.18.57 or 7.2.6 or 7.3 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.