CVE-2024-42129
leds: mlxreg: Use devm_mutex_init() for mutex initialization
Check your servers for CVE-2024-42129
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-42129 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.23%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 14.3% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 10 Sep 2024):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 386570d76f2f25a347a7118fa54315d56b46e7be, before 618c6ce83471ab4f7ac744d27b9d03af173bc141 affected from 386570d76f2f25a347a7118fa54315d56b46e7be, before 172ffd26a5af13e951d0e82df7cfc5a95b04fa80 affected from 386570d76f2f25a347a7118fa54315d56b46e7be, before 3b62888307ae44b68512d3f7735c26a4c8e45b51 affected from 386570d76f2f25a347a7118fa54315d56b46e7be, before efc347b9efee1c2b081f5281d33be4559fa50a16
Other versions: unaffected
|
| Linux |
affected 4.17 unaffected before 4.17 unaffected from 6.1.132 up to and including 6.1.* unaffected from 6.6.63 up to and including 6.6.* unaffected from 6.9.9 up to and including 6.9.* unaffected 6.10 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-42129 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-42129
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2024-42129
trivy image --scanners vuln IMAGE | grep CVE-2024-42129
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/618c6ce83471ab4f7ac744d27b9d03af173bc141 git.kernel.org
- https://git.kernel.org/stable/c/172ffd26a5af13e951d0e82df7cfc5a95b04fa80 git.kernel.org
- https://git.kernel.org/stable/c/3b62888307ae44b68512d3f7735c26a4c8e45b51 git.kernel.org
- https://git.kernel.org/stable/c/efc347b9efee1c2b081f5281d33be4559fa50a16 git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html lists.debian.org
Source: the record CVE-2024-42129 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse