# CVE-2024-42128: leds: an30259a: Use devm_mutex_init() for mutex initialization

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- 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.23%, higher than 14% of CVEs (2026-12-01)
- Published: 2024-07-30T07:46:24.751Z
- Modified: 2026-10-30T13:17:31.950Z
- Weaknesses: CWE-908
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

leds: an30259a: Use devm_mutex_init() for mutex initialization

In this driver LEDs are registered using devm_led_classdev_register()
so they are automatically unregistered after module's remove() is done.
led_classdev_unregister() calls module's led_set_brightness() to turn off
the LEDs and that callback uses mutex which was destroyed already
in module's remove() so use devm API instead.

(As written by CVE List.)

## Affected

- Linux Linux: from 2d00f35c55e74fcb5626c9aa336c1ed697cd2ae9 before 56c05de9749534436f1a3c7859a8167f34dd5010; from 2d00f35c55e74fcb5626c9aa336c1ed697cd2ae9 before 3ead19aa341de89a8c3d88a091d8093ebea622e8; from 2d00f35c55e74fcb5626c9aa336c1ed697cd2ae9 before 9dba44460bfca657ca43f03ea9bafa4f9f7dd077; from 2d00f35c55e74fcb5626c9aa336c1ed697cd2ae9 before c382e2e3eccb6b7ca8c7aff5092c1668428e7de6; 4.20 (not affected: before 4.20; from 6.1.191 up to 6.1.*; from 6.6.39 up to 6.6.*; from 6.9.9 up to 6.9.*; from 6.10 up to *)
- linux linux_kernel: from 4.20 before 6.6.39; from 6.7 before 6.9.9

## References

- <https://git.kernel.org/stable/c/56c05de9749534436f1a3c7859a8167f34dd5010>
- <https://git.kernel.org/stable/c/3ead19aa341de89a8c3d88a091d8093ebea622e8> (patch)
- <https://git.kernel.org/stable/c/9dba44460bfca657ca43f03ea9bafa4f9f7dd077> (patch)
- <https://git.kernel.org/stable/c/c382e2e3eccb6b7ca8c7aff5092c1668428e7de6> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2024-42128 · Whole record: https://cve.day/CVE-2024-42128.json · Rebuilt by cve.day 2026-11-25T22:58:43.409Z
