In the Linux kernel, the following vulnerability has been resolved: media: stm32: csi: unregister async notifier on cleanup stm32_csi_parse_dt() 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.
https://git.kernel.org/stable/c/ea3a418d73b0ccf15e6b60efee1606484acf91de
https://git.kernel.org/stable/c/979d7a2f16eb311f9fe809a024e004232d8ecd8c
https://git.kernel.org/stable/c/4957d480a0c87cf3d024e6ff1f57d1222f9212cb