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", "id": "CVE-2024-42129-07ef75b9", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@618c6ce83471ab4f7ac744d27b9d03af173bc141", "signature_version": "v1", "target": { "function": "mlxreg_led_remove", "file": "drivers/leds/leds-mlxreg.c" }, "digest": { "function_hash": "95527844379291244186091270926507768268", "length": 134.0 }, "deprecated": false }, { "signature_type": "Line", "id": "CVE-2024-42129-2f50fe01", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@172ffd26a5af13e951d0e82df7cfc5a95b04fa80", "signature_version": "v1", "target": { "file": "drivers/leds/leds-mlxreg.c" }, "digest": { "threshold": 0.9, "line_hashes": [ "53960907229175418456941959871252808915", "197390349595066461580150697925055634614", "94879639514005252898751068349942590216", "95869763544052075328403413964677645365", "144516796038531862795707314787522327671", "310523882567398901416078701319838656762", "185770802901600701577675382136659170306", "57535187539542095064141136323680160744", "307697985002454117336911350729871078504", "32456113256458846939585579153539890919", "52702004902340590477913646274660549324", "106701133850861071957613509574097611146", "163281994162417866668904083640304640969", "283553909480143233507282678887334238540", "99755584482452131965236246292736587800", "301775827990915376076979830462526412816", "210591750578676248715076165780958327952", "278201962112137999389010206321490747709", "306845212935052722779047398154234588854", "272044373569381380612616122178552958635", "82101485177398749623607813059228117498", "201620762743322327293134398925338931640", "248971923178722628494582183223074562069", "266755080803030814508504213095061711989" ] }, "deprecated": false }, { "signature_type": "Function", "id": "CVE-2024-42129-3a374fab", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@efc347b9efee1c2b081f5281d33be4559fa50a16", "signature_version": "v1", "target": { "function": "mlxreg_led_remove", "file": "drivers/leds/leds-mlxreg.c" }, "digest": { "function_hash": "56037679724679087162426688847173871782", "length": 123.0 }, "deprecated": false }, { "signature_type": "Line", "id": "CVE-2024-42129-4bdf95e9", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@efc347b9efee1c2b081f5281d33be4559fa50a16", "signature_version": "v1", "target": { "file": "drivers/leds/leds-mlxreg.c" }, "digest": { "threshold": 0.9, "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" ] }, "deprecated": false }, { "signature_type": "Function", "id": "CVE-2024-42129-58e3186a", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@172ffd26a5af13e951d0e82df7cfc5a95b04fa80", "signature_version": "v1", "target": { "function": "mlxreg_led_probe", "file": "drivers/leds/leds-mlxreg.c" }, "digest": { "function_hash": "42667376011582730565500915723958364186", "length": 412.0 }, "deprecated": false }, { "signature_type": "Function", "id": "CVE-2024-42129-5f4ec425", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@618c6ce83471ab4f7ac744d27b9d03af173bc141", "signature_version": "v1", "target": { "function": "mlxreg_led_probe", "file": "drivers/leds/leds-mlxreg.c" }, "digest": { "function_hash": "42667376011582730565500915723958364186", "length": 412.0 }, "deprecated": false }, { "signature_type": "Function", "id": "CVE-2024-42129-7a2116e0", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3b62888307ae44b68512d3f7735c26a4c8e45b51", "signature_version": "v1", "target": { "function": "mlxreg_led_probe", "file": "drivers/leds/leds-mlxreg.c" }, "digest": { "function_hash": "42667376011582730565500915723958364186", "length": 412.0 }, "deprecated": false }, { "signature_type": "Line", "id": "CVE-2024-42129-85486c3a", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3b62888307ae44b68512d3f7735c26a4c8e45b51", "signature_version": "v1", "target": { "file": "drivers/leds/leds-mlxreg.c" }, "digest": { "threshold": 0.9, "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" ] }, "deprecated": false }, { "signature_type": "Function", "id": "CVE-2024-42129-ee0f33e4", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@172ffd26a5af13e951d0e82df7cfc5a95b04fa80", "signature_version": "v1", "target": { "function": "mlxreg_led_remove", "file": "drivers/leds/leds-mlxreg.c" }, "digest": { "function_hash": "95527844379291244186091270926507768268", "length": 134.0 }, "deprecated": false }, { "signature_type": "Line", "id": "CVE-2024-42129-f5ff9e34", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@618c6ce83471ab4f7ac744d27b9d03af173bc141", "signature_version": "v1", "target": { "file": "drivers/leds/leds-mlxreg.c" }, "digest": { "threshold": 0.9, "line_hashes": [ "53960907229175418456941959871252808915", "197390349595066461580150697925055634614", "94879639514005252898751068349942590216", "95869763544052075328403413964677645365", "144516796038531862795707314787522327671", "310523882567398901416078701319838656762", "185770802901600701577675382136659170306", "57535187539542095064141136323680160744", "307697985002454117336911350729871078504", "32456113256458846939585579153539890919", "52702004902340590477913646274660549324", "106701133850861071957613509574097611146", "163281994162417866668904083640304640969", "283553909480143233507282678887334238540", "99755584482452131965236246292736587800", "301775827990915376076979830462526412816", "210591750578676248715076165780958327952", "278201962112137999389010206321490747709", "306845212935052722779047398154234588854", "272044373569381380612616122178552958635", "82101485177398749623607813059228117498", "201620762743322327293134398925338931640", "248971923178722628494582183223074562069", "266755080803030814508504213095061711989" ] }, "deprecated": false }, { "signature_type": "Function", "id": "CVE-2024-42129-fa999505", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@efc347b9efee1c2b081f5281d33be4559fa50a16", "signature_version": "v1", "target": { "function": "mlxreg_led_probe", "file": "drivers/leds/leds-mlxreg.c" }, "digest": { "function_hash": "42667376011582730565500915723958364186", "length": 412.0 }, "deprecated": false }, { "signature_type": "Function", "id": "CVE-2024-42129-fb958336", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3b62888307ae44b68512d3f7735c26a4c8e45b51", "signature_version": "v1", "target": { "function": "mlxreg_led_remove", "file": "drivers/leds/leds-mlxreg.c" }, "digest": { "function_hash": "56037679724679087162426688847173871782", "length": 123.0 }, "deprecated": false } ]