In the Linux kernel, the following vulnerability has been resolved: firmware: arm_ffa: Snapshot notifier callbacks under lock Both notification handlers currently look up a notifier callback under notify_lock, drop the lock, and then dereference the returned notifier entry. A concurrent unregister can delete and free that entry in the gap, leaving the handler to dereference stale memory. Copy the callback pointer and callback data while notify_lock is still held and invoke the callback only after the lock is dropped. This keeps the existing callback execution model while removing the use-after-free window in both the framework and non-framework notification paths.
https://git.kernel.org/stable/c/d1e38551fadea230649bc428f0f35c9ee062a072
https://git.kernel.org/stable/c/38290b180a4d5746baed796d49f88d56d2f336cd
https://git.kernel.org/stable/c/0e7be42ef2490f19d859a6146324d48cafdc9d5c