In the Linux kernel, the following vulnerability has been resolved: PM: EM: Fix use-after-free of perf domain in netlink doit handlers The doit handlers dropped em_pd_list_mutex before dereferencing the perf domain, so a concurrent device unregister could free it while the reply was being built. Encode the reply from em_perf_domain_for_id() callbacks, which run under the mutex, and allocate the skb outside of it, like the dumpit path already does. This issue was found by an in-house static analysis tool.
https://git.kernel.org/stable/c/f58dacfbadb7be7c7dbb2b95e9341ad56710849e
https://git.kernel.org/stable/c/a3b57ce3e95d338a9a24eb760171aa16f742f008