CVE-2024-42128
JSON

5.5medium

leds: an30259a: Use devm_mutex_init() for mutex initialization

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.23% (higher than 14% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 *
CVE List
linux linux_kernelfrom 4.20 before 6.6.39, from 6.7 before 6.9.9NVD

Classification

CWE-908

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: 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.

NVD (es)

En el kernel de Linux, se resolvió la siguiente vulnerabilidad: LED: an30259a: 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

SourceRecordLicence
CVE ListCVE-2024-42128 changed 2026-10-30CVE Terms of Use
NVDCVE-2024-42128 changed 2026-10-30Public domain