Bug 2301494 (CVE-2024-42129)

Summary: CVE-2024-42129 kernel: leds: mlxreg: Use devm_mutex_init() for mutex initialization
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: dfreiber, drow, jburrell, vkumar
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: kernel 6.9.9, kernel 6.10 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the Linux kernel. The led_classdev_unregister() calls the led_set_brightness() module to turn off the LEDs. This callback uses mutex, which was destroyed in the remove() module.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2301810    
Bug Blocks:    

Description OSIDB Bzimport 2024-07-30 08:35:08 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.

Comment 1 Mauro Matteo Cascella 2024-07-30 19:47:01 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024073027-CVE-2024-42129-576e@gregkh/T

Comment 2 Mauro Matteo Cascella 2024-07-30 19:47:22 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2301810]