{"id":"CVE-2024-43830","summary":"leds: trigger: Unregister sysfs attributes before calling deactivate()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nleds: trigger: Unregister sysfs attributes before calling deactivate()\n\nTriggers which have trigger specific sysfs attributes typically store\nrelated data in trigger-data allocated by the activate() callback and\nfreed by the deactivate() callback.\n\nCalling device_remove_groups() after calling deactivate() leaves a window\nwhere the sysfs attributes show/store functions could be called after\ndeactivation and then operate on the just freed trigger-data.\n\nMove the device_remove_groups() call to before deactivate() to close\nthis race window.\n\nThis also makes the deactivation path properly do things in reverse order\nof the activation path which calls the activate() callback before calling\ndevice_add_groups().","modified":"2026-03-20T12:22:24.637110Z","published":"2024-08-17T09:21:48.946Z","related":["ALSA-2024:7000","MGASA-2024-0309","MGASA-2024-0310","SUSE-SU-2024:3190-1","SUSE-SU-2024:3194-1","SUSE-SU-2024:3195-1","SUSE-SU-2024:3209-1","SUSE-SU-2024:3383-1","SUSE-SU-2024:3483-1","SUSE-SU-2025:20044-1","SUSE-SU-2025:20047-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/43xxx/CVE-2024-43830.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0788a6f3523d3686a9eed5ea1e6fcce6841277b2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/09c1583f0e10c918855d6e7540a79461a353e5d6"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3fb6a9d67cfd812a547ac73ec02e1077c26c640d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/734ba6437e80dfc780e9ee9d95f912392d12b5ea"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c0dc9adf9474ecb7106e60e5472577375aedaed3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c3b7a650c8717aa89df318364609c86cbc040156"},{"type":"WEB","url":"https://git.kernel.org/stable/c/cb8aa9d2a4c8a15d6a43ccf901ef3d094aa60374"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d1415125b701ef13370e2761f691ec632a5eb93a"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/43xxx/CVE-2024-43830.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-43830"},{"type":"PACKAGE","url":"https://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"}}],"schema_version":"1.7.5"}