# CVE-2024-42129: leds: mlxreg: 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.31%, higher than 16% of CVEs (2026-11-30)
- Published: 2024-07-30T07:46:25.436Z
- Modified: 2026-06-17T07:48:53.730Z
- 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: mlxreg: 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 386570d76f2f25a347a7118fa54315d56b46e7be before 618c6ce83471ab4f7ac744d27b9d03af173bc141; from 386570d76f2f25a347a7118fa54315d56b46e7be before 172ffd26a5af13e951d0e82df7cfc5a95b04fa80; from 386570d76f2f25a347a7118fa54315d56b46e7be before 3b62888307ae44b68512d3f7735c26a4c8e45b51; from 386570d76f2f25a347a7118fa54315d56b46e7be before efc347b9efee1c2b081f5281d33be4559fa50a16; 4.17 (not affected: before 4.17; from 6.1.132 up to 6.1.*; from 6.6.63 up to 6.6.*; from 6.9.9 up to 6.9.*; from 6.10 up to *)
- linux linux_kernel: before 6.1.132; from 6.2 before 6.6.63; from 6.7 before 6.9.9

## References

- <https://git.kernel.org/stable/c/618c6ce83471ab4f7ac744d27b9d03af173bc141> (patch)
- <https://git.kernel.org/stable/c/172ffd26a5af13e951d0e82df7cfc5a95b04fa80> (patch)
- <https://git.kernel.org/stable/c/3b62888307ae44b68512d3f7735c26a4c8e45b51> (patch)
- <https://git.kernel.org/stable/c/efc347b9efee1c2b081f5281d33be4559fa50a16> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>

## Sources

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

---

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