# CVE-2026-99518: platform/x86: asus-wmi: fix use-after-free unregistering kbd_led led

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 5% of CVEs (2026-11-30)
- Published: 2026-11-19T14:44:22.840Z
- Modified: 2026-11-19T15:18:07.350Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

platform/x86: asus-wmi: fix use-after-free unregistering kbd_led led

kbd_led_update_all() registers asus->kbd_led with
devm_led_classdev_register() on the platform device, but kbd_led is
embedded in struct asus_wmi, which asus_wmi_remove() frees at its end.
The driver core calls .remove() before devres_release_all(), so the
deferred devres release runs led_classdev_unregister() on memory that
has already been freed. Whether that faults depends on whether the
slab has been reused in between, which makes the crash on module
unload intermittent and silently corrupts the led classdev state in
the remaining runs.

Unregister the led classdev explicitly in asus_wmi_led_exit(), after
the led workqueue has been destroyed: kbd_led_work can then neither
run nor be queued anymore, since asus_ref.asus is NULL too, so
kbd_led_registered is stable and the classdev can be released while
the memory embedding it is still alive. devm_led_classdev_unregister()
also drops the devres entry, leaving nothing to run at unbind cleanup
time; it warns when no devres entry exists, hence the
kbd_led_registered check.

(As written by CVE List.)

## Affected

- Linux Linux: from fac55d29581fcd4c3b66b9c2b9f7995c459c0064 before 465f3074762ad943370881d7b6f096e70d9a5a5a; from fac55d29581fcd4c3b66b9c2b9f7995c459c0064 before 639bc2254816b7c4e7a9801a7b3aa71bfa3f915c; 7.0 (not affected: before 7.0; from 7.3.2 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/465f3074762ad943370881d7b6f096e70d9a5a5a>
- <https://git.kernel.org/stable/c/639bc2254816b7c4e7a9801a7b3aa71bfa3f915c>

## Sources

- CVE List: [CVE-2026-99518](https://www.cve.org/CVERecord?id=CVE-2026-99518), CVE Terms of Use, modified 2026-11-19
- NVD: [CVE-2026-99518](https://nvd.nist.gov/vuln/detail/CVE-2026-99518), Public domain, modified 2026-11-19

---

Page: https://cve.day/CVE-2026-99518 · Whole record: https://cve.day/CVE-2026-99518.json · Rebuilt by cve.day 2026-11-25T22:59:52.100Z
