CVE-2024-43830

Source
https://cve.org/CVERecord?id=CVE-2024-43830
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-43830.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-43830
Downstream
Related
Published
2024-08-17T09:21:48.946Z
Modified
2026-03-20T12:22:24.637110Z
Summary
leds: trigger: Unregister sysfs attributes before calling deactivate()
Details

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 deviceremovegroups() 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 deviceremovegroups() 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 deviceaddgroups().

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/43xxx/CVE-2024-43830.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
a7e7a3156300a7e1982b03cc9cb8fb0c86434c49
Fixed
c3b7a650c8717aa89df318364609c86cbc040156
Fixed
d1415125b701ef13370e2761f691ec632a5eb93a
Fixed
09c1583f0e10c918855d6e7540a79461a353e5d6
Fixed
3fb6a9d67cfd812a547ac73ec02e1077c26c640d
Fixed
734ba6437e80dfc780e9ee9d95f912392d12b5ea
Fixed
cb8aa9d2a4c8a15d6a43ccf901ef3d094aa60374
Fixed
0788a6f3523d3686a9eed5ea1e6fcce6841277b2
Fixed
c0dc9adf9474ecb7106e60e5472577375aedaed3

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-43830.json"