CVE-2026-139035: media: stm32: csi: unregister async notifier on cleanup
In the Linux kernel, the following vulnerability has been resolved:
media: stm32: csi: unregister async notifier on cleanup
stm32csiparsedt() registers the async notifier before probe finishes. If a later operation fails, the error path only cleans up the notifier's connections. It does not unregister the notifier, leaving its entry on the global notifier list after the devm-allocated csidev is freed.
The remove path has the same problem. A later async operation can then walk the stale notifier entry and access freed memory.
Unregister the notifier before cleaning up its resources on both paths.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In the STM32 CSI driver, unregister the async notifier before cleaning up its resources on both the probe error path and the remove path.