CVE-2026-31744
publishedPM: EM: Fix NULL pointer dereference when perf domain ID is not found
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux380ff27af25e49e2cb2ff8fd0ecd7c95be2976ee to < ab09b9a1e3b02ff62c5aebe3b12b0cb4cb4ea8ab · 380ff27af25e49e2cb2ff8fd0ecd7c95be2976ee to < 9badc2a84e688be1275bb740942d5f6f51746908 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.19 (affected) · 0 to < 6.19 (unaffected · semver) · 6.19.12 through 6.19.* (unaffected · semver) · 7.0 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
Description
In the Linux kernel, the following vulnerability has been resolved: PM: EM: Fix NULL pointer dereference when perf domain ID is not found dev_energymodel_nl_get_perf_domains_doit() calls em_perf_domain_get_by_id() but does not check the return value before passing it to __em_nl_get_pd_size(). When a caller supplies a non-existent perf domain ID, em_perf_domain_get_by_id() returns NULL, and __em_nl_get_pd_size() immediately dereferences pd->cpus (struct offset 0x30), causing a NULL pointer dereference. The sister handler dev_energymodel_nl_get_perf_table_doit() already handles this correctly via __em_nl_get_pd_table_id(), which returns NULL and causes the caller to return -EINVAL. Add the same NULL check in the get-perf-domains do handler. [ rjw: Subject and changelog edits ]
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 380ff27af25e49e2cb2ff8fd0ecd7c95be2976ee to < ab09b9a1e3b02ff62c5aebe3b12b0cb4cb4ea8ab (affected · git)380ff27af25e49e2cb2ff8fd0ecd7c95be2976ee to < 9badc2a84e688be1275bb740942d5f6f51746908 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.19 (affected)0 to < 6.19 (unaffected · semver)6.19.12 through 6.19.* (unaffected · semver)7.0 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
2Provider assertions
1Linux · cna
PM: EM: Fix NULL pointer dereference when perf domain ID is not found
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 28a9dc01cf2f540f8ecaf213f182f709d2a95c7dfe7340ab8d93d58d795376f7
- Ingested
- 23 Sep 2026, 09:09:43 UTC
- Source record
- Official CVE record