leds: ktd2692: Pass context to regulator cleanup
- CVE-2026-142857
- GHSA-qq63-f2qm-62qj
- EUVD-2026-142107
Description
In the Linux kernel, the following vulnerability has been resolved: leds: ktd2692: Pass context to regulator cleanup regulator_disable_action() retrieves the driver context from device driver data. However, ktd2692_parse_dt() registers the action before ktd2692_probe() stores the context with platform_set_drvdata(). If devm_add_action_or_reset() cannot allocate the action, it invokes the callback immediately. A later probe failure also invokes it during managed-resource unwinding. Both paths dereference a NULL context. Pass the already allocated context directly to the action and retain the device pointer in it for error reporting. The context is allocated before the action is registered, so reverse-order devres unwinding keeps it alive through the callback. This issue was identified during our ongoing static-analysis research while reviewing kernel code.
Text from the CVE.org record.
Recommendation
Linux
- If you run a version from 5.12.17 to before 5.13update to 5.13 or laterMinor version change: check the release notes
- If you run 5.10.xupdate to 5.10.275 or laterPatch update: breaking changes are unlikely
- If you run a version from 5.4.132 to before 5.5update to 5.5 or laterMinor version change: check the release notes
- If you run a version from 4.19.198 to before 4.20update to 4.20 or laterMinor version change: check the release notes
- If you run a version from 4.14.240 to before 4.15update to 4.15 or laterMinor version change: check the release notes
- If you run a version from 4.9.276 to before 4.10update to 4.10 or laterMinor version change: check the release notes
Some affected versions have no stated fix.
Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
Linux
Affected versions Fixed in from 5.12.17 to before 5.13 5.13 from 5.10.50 to before 5.10.275 5.10.275 from 5.4.132 to before 5.5 5.5 from 4.19.198 to before 4.20 4.20 from 4.14.240 to before 4.15 4.15 from 4.9.276 to before 4.10 4.10 from 5.13.2 to before 5.14 none stated 5.14 none stated and 9 more
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.