# CVE-2026-31744: PM: EM: Fix NULL pointer dereference when perf domain ID is not found

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.11%, higher than 1% of CVEs (2026-12-01)
- Published: 2026-05-01T14:14:38.820Z
- Modified: 2026-11-11T21:10:00.200Z
- Weaknesses: CWE-476
- Assigned by: Linux

## 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 ]

(As written by CVE List.)

## Affected

- Linux Linux: from 380ff27af25e49e2cb2ff8fd0ecd7c95be2976ee before ab09b9a1e3b02ff62c5aebe3b12b0cb4cb4ea8ab; from 380ff27af25e49e2cb2ff8fd0ecd7c95be2976ee before 9badc2a84e688be1275bb740942d5f6f51746908; 6.19 (not affected: before 6.19; from 6.19.12 up to 6.19.*; from 7.0 up to *)
- linux linux_kernel: from 6.19.1 before 6.19.12; 6.19; 7.0

## References

- <https://git.kernel.org/stable/c/ab09b9a1e3b02ff62c5aebe3b12b0cb4cb4ea8ab> (patch)
- <https://git.kernel.org/stable/c/9badc2a84e688be1275bb740942d5f6f51746908> (patch)

## Sources

- CVE List: [CVE-2026-31744](https://www.cve.org/CVERecord?id=CVE-2026-31744), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2026-31744](https://nvd.nist.gov/vuln/detail/CVE-2026-31744), Public domain, modified 2026-11-11

---

Page: https://cve.day/CVE-2026-31744 · Whole record: https://cve.day/CVE-2026-31744.json · Rebuilt by cve.day 2026-11-25T22:59:20.362Z
