# CVE-2024-43830: leds: trigger: Unregister sysfs attributes before calling deactivate()

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 17% of CVEs (2026-12-01)
- Published: 2024-08-17T09:21:48.946Z
- Modified: 2026-10-15T01:18:47.510Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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().

(As written by CVE List.)

## Affected

- Linux Linux: from a7e7a3156300a7e1982b03cc9cb8fb0c86434c49 before c3b7a650c8717aa89df318364609c86cbc040156; from a7e7a3156300a7e1982b03cc9cb8fb0c86434c49 before d1415125b701ef13370e2761f691ec632a5eb93a; from a7e7a3156300a7e1982b03cc9cb8fb0c86434c49 before 09c1583f0e10c918855d6e7540a79461a353e5d6; from a7e7a3156300a7e1982b03cc9cb8fb0c86434c49 before 3fb6a9d67cfd812a547ac73ec02e1077c26c640d; from a7e7a3156300a7e1982b03cc9cb8fb0c86434c49 before 734ba6437e80dfc780e9ee9d95f912392d12b5ea; from a7e7a3156300a7e1982b03cc9cb8fb0c86434c49 before cb8aa9d2a4c8a15d6a43ccf901ef3d094aa60374; from a7e7a3156300a7e1982b03cc9cb8fb0c86434c49 before 0788a6f3523d3686a9eed5ea1e6fcce6841277b2; from a7e7a3156300a7e1982b03cc9cb8fb0c86434c49 before c0dc9adf9474ecb7106e60e5472577375aedaed3; 4.19 (not affected: before 4.19; from 4.19.320 up to 4.19.*; from 5.4.282 up to 5.4.*; from 5.10.224 up to 5.10.*; from 5.15.165 up to 5.15.*; from 6.1.103 up to 6.1.*; from 6.6.44 up to 6.6.*; from 6.10.3 up to 6.10.*; from 6.11 up to *)
- linux linux_kernel: from 4.19 before 4.19.320; from 4.20 before 5.4.282; from 5.5 before 5.10.224; from 5.11 before 5.15.165; from 5.16 before 6.1.103; from 6.2 before 6.6.44; from 6.7 before 6.10.3

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/c3b7a650c8717aa89df318364609c86cbc040156> (patch)
- <https://git.kernel.org/stable/c/d1415125b701ef13370e2761f691ec632a5eb93a> (patch)
- <https://git.kernel.org/stable/c/09c1583f0e10c918855d6e7540a79461a353e5d6> (patch)
- <https://git.kernel.org/stable/c/3fb6a9d67cfd812a547ac73ec02e1077c26c640d> (patch)
- <https://git.kernel.org/stable/c/734ba6437e80dfc780e9ee9d95f912392d12b5ea> (patch)
- <https://git.kernel.org/stable/c/cb8aa9d2a4c8a15d6a43ccf901ef3d094aa60374> (patch)
- <https://git.kernel.org/stable/c/0788a6f3523d3686a9eed5ea1e6fcce6841277b2> (patch)
- <https://git.kernel.org/stable/c/c0dc9adf9474ecb7106e60e5472577375aedaed3> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>
- <https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>

## Sources

- CVE List: [CVE-2024-43830](https://www.cve.org/CVERecord?id=CVE-2024-43830), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2024-43830](https://nvd.nist.gov/vuln/detail/CVE-2024-43830), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2024-43830 · Whole record: https://cve.day/CVE-2024-43830.json · Rebuilt by cve.day 2026-11-25T22:58:44.493Z
