CVE-2024-43830

leds: trigger: Unregister sysfs attributes before calling deactivate()

State
Published
Severity
7.8 High
Published
Aug 17, 2024
Updated
Oct 15, 2026
Reserved
Aug 17, 2024

Read the record on cve.org

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

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • a7e7a3156300a7e1982b03cc9cb8fb0c86434c49 to before c3b7a650c8717aa89df318364609c86cbc040156Affected
  • a7e7a3156300a7e1982b03cc9cb8fb0c86434c49 to before d1415125b701ef13370e2761f691ec632a5eb93aAffected
  • a7e7a3156300a7e1982b03cc9cb8fb0c86434c49 to before 09c1583f0e10c918855d6e7540a79461a353e5d6Affected
  • a7e7a3156300a7e1982b03cc9cb8fb0c86434c49 to before 3fb6a9d67cfd812a547ac73ec02e1077c26c640dAffected
  • a7e7a3156300a7e1982b03cc9cb8fb0c86434c49 to before 734ba6437e80dfc780e9ee9d95f912392d12b5eaAffected
  • a7e7a3156300a7e1982b03cc9cb8fb0c86434c49 to before cb8aa9d2a4c8a15d6a43ccf901ef3d094aa60374Affected
  • a7e7a3156300a7e1982b03cc9cb8fb0c86434c49 to before 0788a6f3523d3686a9eed5ea1e6fcce6841277b2Affected
  • a7e7a3156300a7e1982b03cc9cb8fb0c86434c49 to before c0dc9adf9474ecb7106e60e5472577375aedaed3Affected
LinuxLinux
  • 4.19Affected
  • before 4.19Not affected
  • 4.19.320 through 4.19.*Not affected
  • 5.4.282 through 5.4.*Not affected
  • 5.10.224 through 5.10.*Not affected
  • 5.15.165 through 5.15.*Not affected
  • 6.1.103 through 6.1.*Not affected
  • 6.6.44 through 6.6.*Not affected
  • 6.10.3 through 6.10.*Not affected
  • 6.11 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.