{"id":"CVE-2026-31744","aliases":["CVE-2026-31744"],"related":[],"kind":"vulnerability","state":"published","title":"PM: EM: Fix NULL pointer dereference when perf domain ID is not found","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nPM: EM: Fix NULL pointer dereference when perf domain ID is not found\n\ndev_energymodel_nl_get_perf_domains_doit() calls\nem_perf_domain_get_by_id() but does not check the return value before\npassing it to __em_nl_get_pd_size(). When a caller supplies a\nnon-existent perf domain ID, em_perf_domain_get_by_id() returns NULL,\nand __em_nl_get_pd_size() immediately dereferences pd->cpus\n(struct offset 0x30), causing a NULL pointer dereference.\n\nThe sister handler dev_energymodel_nl_get_perf_table_doit() already\nhandles this correctly via __em_nl_get_pd_table_id(), which returns\nNULL and causes the caller to return -EINVAL. Add the same NULL check\nin the get-perf-domains do handler.\n\n[ rjw: Subject and changelog edits ]","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nPM: EM: Fix NULL pointer dereference when perf domain ID is not found\n\ndev_energymodel_nl_get_perf_domains_doit() calls\nem_perf_domain_get_by_id() but does not check the return value before\npassing it to __em_nl_get_pd_size(). When a caller supplies a\nnon-existent perf domain ID, em_perf_domain_get_by_id() returns NULL,\nand __em_nl_get_pd_size() immediately dereferences pd->cpus\n(struct offset 0x30), causing a NULL pointer dereference.\n\nThe sister handler dev_energymodel_nl_get_perf_table_doit() already\nhandles this correctly via __em_nl_get_pd_table_id(), which returns\nNULL and causes the caller to return -EINVAL. Add the same NULL check\nin the get-perf-domains do handler.\n\n[ rjw: Subject and changelog edits ]","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nPM: EM: Corrección de desreferencia de puntero NULL cuando no se encuentra el ID de dominio de rendimiento\n\ndev_energymodel_nl_get_perf_domains_doit() llama a\nem_perf_domain_get_by_id() pero no comprueba el valor de retorno antes\nde pasarlo a __em_nl_get_pd_size(). Cuando un llamador proporciona un\nID de dominio de rendimiento inexistente, em_perf_domain_get_by_id() devuelve NULL,\ny __em_nl_get_pd_size() desreferencia inmediatamente pd  ->  cpus\n(desplazamiento de estructura 0x30), causando una desreferencia de puntero NULL.\n\nEl gestor hermano dev_energymodel_nl_get_perf_table_doit() ya\nmaneja esto correctamente a través de __em_nl_get_pd_table_id(), que devuelve\nNULL y hace que el llamador devuelva -EINVAL. Añadir la misma comprobación de NULL\nen el gestor ’do’ de get-perf-domains.\n\n[ rjw: Ediciones de asunto y registro de cambios ]","source":"nvd"}],"published":"2026-05-01T14:14:38.820Z","modified":"2026-11-11T21:10:00.200Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"type":"git","introduced":"380ff27af25e49e2cb2ff8fd0ecd7c95be2976ee","fixed":"ab09b9a1e3b02ff62c5aebe3b12b0cb4cb4ea8ab","status":"affected"},{"type":"git","introduced":"380ff27af25e49e2cb2ff8fd0ecd7c95be2976ee","fixed":"9badc2a84e688be1275bb740942d5f6f51746908","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.19","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.19","status":"unaffected"},{"type":"semver","introduced":"6.19.12","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.19.1","fixed":"6.19.12"},{"status":"affected","version":"6.19"},{"status":"affected","version":"6.19"},{"status":"affected","version":"6.19"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/ab09b9a1e3b02ff62c5aebe3b12b0cb4cb4ea8ab","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9badc2a84e688be1275bb740942d5f6f51746908","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31744","url":"https://www.cve.org/CVERecord?id=CVE-2026-31744","licence":"CVE Terms of Use","modified":"2026-05-11T22:14:55.237Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31744","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31744","licence":"Public domain","modified":"2026-11-11T21:10:00.200Z"}],"updatedAt":"2026-11-25T22:59:20.362Z","epss":{"score":0.00112,"percentile":0.01481,"date":"2026-12-01T12:00:22.000Z"}}