Description
In the Linux kernel, the following vulnerability has been resolved: misc: ad525x_dpot: use driver core groups for sysfs files ad_dpot_probe() creates per-RDAC sysfs files manually and then optionally creates the command sysfs group. This leaves probe responsible for rolling back partial sysfs state and makes remove responsible for matching every file that probe created. Move the device attributes into driver core dev_groups for the I2C and SPI drivers and use an is_visible() callback to expose only the attributes supported by the probed device. With this shape, the driver core creates the sysfs files only after probe succeeds and removes them before the remove callback frees the driver data.
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
4eb174bee6f8623fed1af0072f1bebfc3b513a52 to < 1d43cef1d4ff258dee3020cc29f29fd6becfd8b9affected4eb174bee6f8623fed1af0072f1bebfc3b513a52 to < ddbd794e543e5f917d191f8259ce40b79c52d105affected4eb174bee6f8623fed1af0072f1bebfc3b513a52 to < aa3ace3f6c66811001ffa63a53fbb01ed8109312affected4eb174bee6f8623fed1af0072f1bebfc3b513a52 to < 0394902df38279da7f880021b2cfc64577a60e42affected4eb174bee6f8623fed1af0072f1bebfc3b513a52 to < e30f2c23c8d5620f9679e3b6656a6eb7cb1fd38baffected4eb174bee6f8623fed1af0072f1bebfc3b513a52 to < c7ff7a70f405a3c6fde39ed00a36d9f4fecaf3abaffected4eb174bee6f8623fed1af0072f1bebfc3b513a52 to < ab2fe43041412d37f88eb368a99f63f98b31d8eaaffected4eb174bee6f8623fed1af0072f1bebfc3b513a52 to < e3a8557e88eb26278eda60bf64f2ef33ce7de8bfaffected
Linux Linux
Default version status: affected
2.6.33affected0 to < 2.6.33unaffected5.10.270 to ≤ 5.10.*unaffected5.15.221 to ≤ 5.15.*unaffected6.1.188 to ≤ 6.1.*unaffected6.6.157 to ≤ 6.6.*unaffected6.12.110 to ≤ 6.12.*unaffected6.18.52 to ≤ 6.18.*unaffected7.2.6 to ≤ 7.2.*unaffected7.3 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/1d43cef1d4ff258dee3020cc29f29fd6becfd8b9 ↗
- https://git.kernel.org/stable/c/ddbd794e543e5f917d191f8259ce40b79c52d105 ↗
- https://git.kernel.org/stable/c/aa3ace3f6c66811001ffa63a53fbb01ed8109312 ↗
- https://git.kernel.org/stable/c/0394902df38279da7f880021b2cfc64577a60e42 ↗
- https://git.kernel.org/stable/c/e30f2c23c8d5620f9679e3b6656a6eb7cb1fd38b ↗
- https://git.kernel.org/stable/c/c7ff7a70f405a3c6fde39ed00a36d9f4fecaf3ab ↗
- https://git.kernel.org/stable/c/ab2fe43041412d37f88eb368a99f63f98b31d8ea ↗
- https://git.kernel.org/stable/c/e3a8557e88eb26278eda60bf64f2ef33ce7de8bf ↗