{"id":"CVE-2024-42129","summary":"leds: mlxreg: Use devm_mutex_init() for mutex initialization","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nleds: mlxreg: Use devm_mutex_init() for mutex initialization\n\nIn this driver LEDs are registered using devm_led_classdev_register()\nso they are automatically unregistered after module's remove() is done.\nled_classdev_unregister() calls module's led_set_brightness() to turn off\nthe LEDs and that callback uses mutex which was destroyed already\nin module's remove() so use devm API instead.","modified":"2026-05-18T05:57:53.904102583Z","published":"2024-07-30T07:46:25.436Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/42xxx/CVE-2024-42129.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/172ffd26a5af13e951d0e82df7cfc5a95b04fa80"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3b62888307ae44b68512d3f7735c26a4c8e45b51"},{"type":"WEB","url":"https://git.kernel.org/stable/c/618c6ce83471ab4f7ac744d27b9d03af173bc141"},{"type":"WEB","url":"https://git.kernel.org/stable/c/efc347b9efee1c2b081f5281d33be4559fa50a16"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/42xxx/CVE-2024-42129.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-42129"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"386570d76f2f25a347a7118fa54315d56b46e7be"},{"fixed":"618c6ce83471ab4f7ac744d27b9d03af173bc141"},{"fixed":"172ffd26a5af13e951d0e82df7cfc5a95b04fa80"},{"fixed":"3b62888307ae44b68512d3f7735c26a4c8e45b51"},{"fixed":"efc347b9efee1c2b081f5281d33be4559fa50a16"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-42129.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.17.0"},{"fixed":"6.1.132"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.63"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.9.9"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-42129.json"}}],"schema_version":"1.7.5"}