Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 627853C3434 for ; Fri, 1 May 2026 14:17:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777645070; cv=none; b=syfUVWdm41LDRvhvz1VwMYm5cPH3k6LUxiCHGYveKkBSqW+GQknwE+tfXve2w0CyfjsT5ZiwohGcEaQwHxLj3xgyFqKp2MhsE5TVFKckbksdq/W/4fBWniuZ3WmNyWJthQq/5F1ey7YzM7gX/RdngwELRK/tnjI1u1mOajhBcBE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777645070; c=relaxed/simple; bh=s7BErD57TXY5XZVnI+/HZWYPEATqT76+cxn8tvRgr30=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=WuqJxmmVn66czSsSfI2g8mgoZxWZ4d8bnejY1HpvFbFqS/RSeLXLazVk1fTsD4gWw23rAXEDst7EvlHYKZtwc2LbtWnSxV2cUA9QMsMEX3tjqs2oLEM6JHwmIoq/9cX7emmb+hVjgl+UYm5rjvryN5ygQmV3+8mVX+APoD3wlT0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=C6JDKHPb; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="C6JDKHPb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EB62FC2BCB4; Fri, 1 May 2026 14:17:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777645070; bh=s7BErD57TXY5XZVnI+/HZWYPEATqT76+cxn8tvRgr30=; h=From:To:Cc:Subject:Date:Reply-To:From; b=C6JDKHPb+xnEyBbG7HJTTu4UIDtP6nbP2NRkKb/7QtElPjvaUlh1q4wphiA6vLCnO QmIwxbhRcEOE4W8YpWma6jW9g1JjkNfv+vpkEMiMzRPpukps75bgNH9FtvPfAXYA5h 9GSfsImo77SPO1LVl6pWINTLNTNVqyhlrQcVTK50= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31744: PM: EM: Fix NULL pointer dereference when perf domain ID is not found Date: Fri, 1 May 2026 16:14:55 +0200 Message-ID: <2026050140-CVE-2026-31744-50c5@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2439; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ZThU+rN0DZx/SVrYgc6/+NWKjDbZL7UE9U1CHbpFTUE=; b=owGbwMvMwCRo6H6F97bub03G02pJDJlftgZUNTx6Yjg7wP9EAeMziWjDNS6LJV5GaxevLnJwu L1n4b38jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjINlOGBXt3Zx+SM2s+uHQ7 g/PbGPP+uRdz/jDMU73O3DD1WXBVVN+Rp1GdRyd/yVobAAA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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 ] The Linux kernel CVE team has assigned CVE-2026-31744 to this issue. Affected and fixed versions =========================== Issue introduced in 6.19 with commit 380ff27af25e49e2cb2ff8fd0ecd7c95be2976ee and fixed in 6.19.12 with commit ab09b9a1e3b02ff62c5aebe3b12b0cb4cb4ea8ab Issue introduced in 6.19 with commit 380ff27af25e49e2cb2ff8fd0ecd7c95be2976ee and fixed in 7.0 with commit 9badc2a84e688be1275bb740942d5f6f51746908 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-31744 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: kernel/power/em_netlink.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/ab09b9a1e3b02ff62c5aebe3b12b0cb4cb4ea8ab https://git.kernel.org/stable/c/9badc2a84e688be1275bb740942d5f6f51746908