CVE-2026-99519: PM: EM: Fix use-after-free of perf domain in netlink doit handlers
From: Greg Kroah-Hartman <[email protected]>
Description
===========
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.
The Linux kernel CVE team has assigned CVE-2026-99519 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.19 with commit f2d2946eaa5c9277e5eb565796ea5d86b13f4854 and fixed in 7.3.2 with commit a3b57ce3e95d338a9a24eb760171aa16f742f008 Issue introduced in 6.19 with commit f2d2946eaa5c9277e5eb565796ea5d86b13f4854 and fixed in 7.4-rc1 with commit f58dacfbadb7be7c7dbb2b95e9341ad56710849e
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-99519
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
kernel/power/em_netlink.c
kernel/power/em_netlink.h
kernel/power/energy_model.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/a3b57ce3e95d338a9a24eb760171aa16f742f008 https://git.kernel.org/stable/c/f58dacfbadb7be7c7dbb2b95e9341ad56710849e