Skip to content
Heist/ feed
Back to feed
UnratedFix available

leds: mlxreg: Use devm_mutex_init() for mutex initialization

Type: advisorySources: OSV

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.

Products
Kernel
Affected versions
Not specified
Fixed versions
6.1.132, 6.6.63, 6.9.9
CVEs
CVE-2024-42129
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 08:06 UTC · Revision 1

Source evidence

leds: mlxreg: Use devm_mutex_init() for mutex initialization

core-osv · Original source

Published 30 Jul 2024, 07:46 UTC

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.

osv:CVE-2024-42129

Kernel

Fixed versions: 6.1.132, 6.6.63, 6.9.9

Complete source record
{
  "id": "3fd98eb2421ebf871e37384cf501c0d38b9de93332358ed563705f69cdf5c1d0",
  "url": "https://osv.dev/vulnerability/CVE-2024-42129",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "leds: mlxreg: Use devm_mutex_init() for mutex initialization",
    "summary": "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.",
    "evidence": "osv:CVE-2024-42129",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.1.132",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.63",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.9.9",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2024-42129",
      "aliases": [
        "CVE-2024-42129"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "386570d76f2f25a347a7118fa54315d56b46e7be"
                },
                {
                  "fixed": "618c6ce83471ab4f7ac744d27b9d03af173bc141"
                },
                {
                  "fixed": "172ffd26a5af13e951d0e82df7cfc5a95b04fa80"
                },
                {
                  "fixed": "3b62888307ae44b68512d3f7735c26a4c8e45b51"
                },
                {
                  "fixed": "efc347b9efee1c2b081f5281d33be4559fa50a16"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-42129.json"
          }
        },
        {
          "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"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-42129.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:27.276904599Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/172ffd26a5af13e951d0e82df7cfc5a95b04fa80",
        "https://git.kernel.org/stable/c/3b62888307ae44b68512d3f7735c26a4c8e45b51",
        "https://git.kernel.org/stable/c/618c6ce83471ab4f7ac744d27b9d03af173bc141",
        "https://git.kernel.org/stable/c/efc347b9efee1c2b081f5281d33be4559fa50a16",
        "https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/42xxx/CVE-2024-42129.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-42129",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/42xxx/CVE-2024-42129.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-42129",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 493622,
  "published_at": "2024-07-30T07:46:25.436+00:00"
}