CVE-2026-99948: PM: EM: allocate the cpumask for every perf domain
In the Linux kernel, the following vulnerability has been resolved:
PM: EM: allocate the cpumask for every perf domain
emcreatepd() allocates space for the trailing cpus[] flexible array only for CPU devices. A performance domain registered for another device therefore has no storage for its cpumask.
All performance domains are added to empdlist. The netlink interface does not distinguish CPU and non-CPU domains when it calls cpumaskweight() or iterates over pd->cpus. A request for a non-CPU domain reads cpumasksize() bytes beyond the allocation and can report bits from the following memory as CPU attributes.
KASAN reports slab-out-of-bounds reads for both dump and by-ID requests against a synthetic non-CPU performance domain.
GETPERFDOMAINS does not require GENLADMINPERM, so an unprivileged request can reach this path when a GPU or another devfreq device has registered an energy model.
Allocate the cpumask for non-CPU domains too. The zeroed mask remains empty, as required for the documented unused field.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.4 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.4-1
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Systems are exposed when a GPU or another devfreq device has registered a non-CPU energy model performance domain. CPU-only performance domains do not lack cpumask storage in the described allocation path.
Can an unprivileged local user trigger the vulnerable code path?
Yes. GET_PERF_DOMAINS does not require GENL_ADMIN_PERM, so an unprivileged request can reach the affected netlink handling when a non-CPU energy model domain is present.
What does successful triggering expose or cause?
The netlink handler can read cpumask_size() bytes beyond the non-CPU domain allocation. It may report bits from adjacent memory as CPU attributes, and KASAN reports slab-out-of-bounds reads for dump and by-ID requests.
How can administrators determine whether their system is affected?
Determine whether a GPU or other devfreq device has registered an energy model, then exercise or inspect handling of GET_PERF_DOMAINS requests for non-CPU performance domains. KASAN-enabled systems may report slab-out-of-bounds reads during dump or by-ID requests against such a domain.