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().
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
a7e7a3156300a7e1982b03cc9cb8fb0c86434c49 to < c3b7a650c8717aa89df318364609c86cbc040156affecteda7e7a3156300a7e1982b03cc9cb8fb0c86434c49 to < d1415125b701ef13370e2761f691ec632a5eb93aaffecteda7e7a3156300a7e1982b03cc9cb8fb0c86434c49 to < 09c1583f0e10c918855d6e7540a79461a353e5d6affecteda7e7a3156300a7e1982b03cc9cb8fb0c86434c49 to < 3fb6a9d67cfd812a547ac73ec02e1077c26c640daffecteda7e7a3156300a7e1982b03cc9cb8fb0c86434c49 to < 734ba6437e80dfc780e9ee9d95f912392d12b5eaaffecteda7e7a3156300a7e1982b03cc9cb8fb0c86434c49 to < cb8aa9d2a4c8a15d6a43ccf901ef3d094aa60374affecteda7e7a3156300a7e1982b03cc9cb8fb0c86434c49 to < 0788a6f3523d3686a9eed5ea1e6fcce6841277b2affecteda7e7a3156300a7e1982b03cc9cb8fb0c86434c49 to < c0dc9adf9474ecb7106e60e5472577375aedaed3affected
Linux Linux
Default version status: affected
4.19affected0 to < 4.19unaffected4.19.320 to ≤ 4.19.*unaffected5.4.282 to ≤ 5.4.*unaffected5.10.224 to ≤ 5.10.*unaffected5.15.165 to ≤ 5.15.*unaffected6.1.103 to ≤ 6.1.*unaffected6.6.44 to ≤ 6.6.*unaffected6.10.3 to ≤ 6.10.*unaffected6.11 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/c3b7a650c8717aa89df318364609c86cbc040156 ↗
- https://git.kernel.org/stable/c/d1415125b701ef13370e2761f691ec632a5eb93a ↗
- https://git.kernel.org/stable/c/09c1583f0e10c918855d6e7540a79461a353e5d6 ↗
- https://git.kernel.org/stable/c/3fb6a9d67cfd812a547ac73ec02e1077c26c640d ↗
- https://git.kernel.org/stable/c/734ba6437e80dfc780e9ee9d95f912392d12b5ea ↗
- https://git.kernel.org/stable/c/cb8aa9d2a4c8a15d6a43ccf901ef3d094aa60374 ↗
- https://git.kernel.org/stable/c/0788a6f3523d3686a9eed5ea1e6fcce6841277b2 ↗
- https://git.kernel.org/stable/c/c0dc9adf9474ecb7106e60e5472577375aedaed3 ↗
- 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 ↗