A use-after-free vulnerability in the Linux kernel's perf domain handling in netlink doit handlers was fixed. The flaw involved dereferencing a perf domain after releasing a mutex, allowing a concurrent device unregister to free the domain during reply construction. The fix encodes replies under the mutex and allocates memory outside it to prevent this race condition.