5.5medium
leds: mlxreg: Use devm_mutex_init() for mutex initialization
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.31% (higher than 16% of CVEs)
- Published
- Last changed
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| 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 * | CVE List |
| linux linux_kernel | before 6.1.132, from 6.2 before 6.6.63, from 6.7 before 6.9.9 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, se resolvió la siguiente vulnerabilidad: LED: mlxreg: use devm_mutex_init() para la inicialización mutex. En este controlador, los LED se registran usando devm_led_classdev_register(), por lo que se cancelan automáticamente el registro después de que se realiza la eliminación() del módulo. led_classdev_unregister() llama a led_set_brightness() del módulo para apagar los LED y esa devolución de llamada usa mutex que ya fue destruido en remove() del módulo, así que use la API devm en su lugar.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-42129 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2024-42129 changed 2026-06-17 | Public domain |