PM: EM: allocate the cpumask for every perf domain
- State
- Published
- Severity
- Not Scored
- Published
- Nov 30, 2026
- Updated
- Nov 30, 2026
- Reserved
- Sep 25, 2026
Description
In the Linux kernel, the following vulnerability has been resolved:
PM: EM: allocate the cpumask for every perf domain
em_create_pd() 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 em_pd_list. The netlink interface does not distinguish CPU and non-CPU domains when it calls cpumask_weight() or iterates over pd->cpus. A request for a non-CPU domain reads cpumask_size() 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.
GET_PERF_DOMAINS does not require GENL_ADMIN_PERM, 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.
| Product | Versions |
|---|---|
| Linux Linux | d8eef0453132dc95354e4c7ae839815e679179c6 to before 0588052542ab6cd29e1b05dd483a9bdab69c9332 Affectedd8eef0453132dc95354e4c7ae839815e679179c6 to before 6c7a7007c5b7566fba4fbee1d40011fb8f833dc3 Affected |
| Linux Linux | 6.19 Affectedbefore 6.19 Not Affected7.3.4 through 7.3.* Not Affected7.4-rc1 and later Not Affected |
The record has no CVSS score.
Weaknesses
The record names no weakness.
References
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.