In the Linux kernel, the following vulnerability has been resolved:
leds: mlxreg: Use devmmutexinit() for mutex initialization
In this driver LEDs are registered using devmledclassdevregister() so they are automatically unregistered after module's remove() is done. ledclassdevunregister() calls module's ledset_brightness() to turn off the LEDs and that callback uses mutex which was destroyed already in module's remove() so use devm API instead.
[
{
"signature_type": "Function",
"signature_version": "v1",
"id": "CVE-2024-42129-3a374fab",
"digest": {
"length": 123.0,
"function_hash": "56037679724679087162426688847173871782"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@efc347b9efee1c2b081f5281d33be4559fa50a16",
"deprecated": false,
"target": {
"file": "drivers/leds/leds-mlxreg.c",
"function": "mlxreg_led_remove"
}
},
{
"signature_type": "Line",
"signature_version": "v1",
"id": "CVE-2024-42129-4bdf95e9",
"digest": {
"line_hashes": [
"53960907229175418456941959871252808915",
"197390349595066461580150697925055634614",
"94879639514005252898751068349942590216",
"95869763544052075328403413964677645365",
"144516796038531862795707314787522327671",
"310523882567398901416078701319838656762",
"185770802901600701577675382136659170306",
"57535187539542095064141136323680160744",
"307697985002454117336911350729871078504",
"123951309384492563818349391899447355395",
"57072415855826320057337503589215781264",
"96684221286972210603304640985635675736",
"67053188618242173523544747591296546480",
"204471371811469026122206927716044454751",
"156545429401076191608832277271274530193",
"13926202317065932284940008329482880765",
"278201962112137999389010206321490747709",
"306845212935052722779047398154234588854",
"272044373569381380612616122178552958635",
"281619144962180577321677541310456655029",
"104447458167047028660185840690581277913",
"19420906918260992060164672233095449071",
"259396795268994085293391373495250570652"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@efc347b9efee1c2b081f5281d33be4559fa50a16",
"deprecated": false,
"target": {
"file": "drivers/leds/leds-mlxreg.c"
}
},
{
"signature_type": "Function",
"signature_version": "v1",
"id": "CVE-2024-42129-fa999505",
"digest": {
"length": 412.0,
"function_hash": "42667376011582730565500915723958364186"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@efc347b9efee1c2b081f5281d33be4559fa50a16",
"deprecated": false,
"target": {
"file": "drivers/leds/leds-mlxreg.c",
"function": "mlxreg_led_probe"
}
}
]