CVE-2024-42129: Linux kernel · leds: mlxreg: Use devm_mutex_init() for mutex initialization
Source GCVE Database
Not known to be exploited · CVSS 5.5 Medium.
Data as of 30 Oct 2026, 00:37 UTC
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 30 Jul 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.
What to do
AI-suggested
A fix is available that replaces the mutex initialization with devm_mutex_init(), ensuring proper lifecycle management of the mutex. Users should apply the official Linux kernel updates that include this fix. Since this is a kernel driver issue, updating to a patched kernel version is the recommended remediation.
Description
CVE-2024-42129 is a medium severity vulnerability in the Linux kernel's mlxreg LED driver. The issue arises from improper mutex initialization, where a mutex used in the led_set_brightness() callback is destroyed before the callback is invoked during module removal. This can lead to use-after-free conditions affecting system availability. The vulnerability has been resolved by switching to devm_mutex_init() to properly manage the mutex lifecycle.
References
- nvd.nist.gov/vuln/detail/CVE-2024-42129 (opens in a new tab)
- git.kernel.org/stable/c/172ffd26a5af13e951d0e82df7cfc5a95b04fa80 (opens in a new tab)
- git.kernel.org/stable/c/3b62888307ae44b68512d3f7735c26a4c8e45b51 (opens in a new tab)
- git.kernel.org/stable/c/618c6ce83471ab4f7ac744d27b9d03af173bc141 (opens in a new tab)
- git.kernel.org/stable/c/efc347b9efee1c2b081f5281d33be4559fa50a16 (opens in a new tab)
- lists.debian.org/debian-lts-announce/2025/05/msg00045.html (opens in a new tab)