High severity · published Aug 17, 2024
CVE-2024-43830
leds: trigger: Unregister sysfs attributes before calling deactivate()
7.8
CVSS
0.3%
EPSS
No
On KEV
Description
In the Linux kernel, the following vulnerability has been resolved: leds: trigger: Unregister sysfs attributes before calling deactivate() Triggers which have trigger specific sysfs attributes typically store related data in trigger-data allocated by the activate() callback and freed by the deactivate() callback. Calling device_remove_groups() after calling deactivate() leaves a window where the sysfs attributes show/store functions could be called after deactivation and then operate on the just freed trigger-data. Move the device_remove_groups() call to before deactivate() to close this race window. This also makes the deactivation path properly do things in reverse order of the activation path which calls the activate() callback before calling device_add_groups().
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
Local
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.3% · higher than 16% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
KE
Kernel · Linux
4.19 before 4.19.320; 4.20 before 5.4.282; 5.5 before 5.10.224; 5.11 before 5.15.165; 5.16 before 6.1.103; 6.2 before 6.6.44; +1 more · source: NVD
LI
Linux · Linux
a7e7a3156300a7e1982b03cc9cb8fb0c86434c49 before c3b7a650c8717aa89df318364609c86cbc040156; a7e7a3156300a7e1982b03cc9cb8fb0c86434c49 before d1415125b701ef13370e2761f691ec632a5eb93a; a7e7a3156300a7e1982b03cc9cb8fb0c86434c49 before 09c1583f0e10c918855d6e7540a79461a353e5d6; a7e7a3156300a7e1982b03cc9cb8fb0c86434c49 before 3fb6a9d67cfd812a547ac73ec02e1077c26c640d; a7e7a3156300a7e1982b03cc9cb8fb0c86434c49 before 734ba6437e80dfc780e9ee9d95f912392d12b5ea; a7e7a3156300a7e1982b03cc9cb8fb0c86434c49 before cb8aa9d2a4c8a15d6a43ccf901ef3d094aa60374; +3 more · source: vendor