Lucene search

K
cvelistLinuxCVELIST:CVE-2024-42129
HistoryJul 30, 2024 - 7:46 a.m.

CVE-2024-42129 leds: mlxreg: Use devm_mutex_init() for mutex initialization

2024-07-3007:46:25
Linux
www.cve.org
2
linux kernel
leds
mlxreg
mutex initialization

EPSS

0

Percentile

9.4%

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.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/leds/leds-mlxreg.c"
    ],
    "versions": [
      {
        "version": "1da177e4c3f4",
        "lessThan": "3b62888307ae",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "1da177e4c3f4",
        "lessThan": "efc347b9efee",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/leds/leds-mlxreg.c"
    ],
    "versions": [
      {
        "version": "6.9.9",
        "lessThanOrEqual": "6.9.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.10",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

EPSS

0

Percentile

9.4%