Bug 2301494 (CVE-2024-42129) - CVE-2024-42129 kernel: leds: mlxreg: Use devm_mutex_init() for mutex initialization
Summary: CVE-2024-42129 kernel: leds: mlxreg: Use devm_mutex_init() for mutex initiali...
Keywords:
Status: NEW
Alias: CVE-2024-42129
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2301810
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-07-30 08:35 UTC by OSIDB Bzimport
Modified: 2024-09-12 15:53 UTC (History)
4 users (show)

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.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

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]


Note You need to log in before you can comment on or make changes to this bug.