In the Linux kernel, the following vulnerability has been resolved: leds: class: Always protect brightness_show() with led_access The led_classdev_register_ext() protects transient states when registering with the led_access mutex and relies on all sensitive sysfs attribute callbacks holding the mutex to prevent exposing transient states. The Fixes: commit broke this as it accessed trigger_lock without holding led_access. Fix it by protecting brightness_show() with led_access in all code paths.
https://git.kernel.org/stable/c/da9a0890591e37e648a4ca9447d7ac3a5c3aab99
https://git.kernel.org/stable/c/6887f40dadb5a263de1d9e4b5517400c08089d35