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 69C4A2FE06D for ; Tue, 19 Aug 2025 17:20:00 +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=1755624001; cv=none; b=K++3dh0fpfmT/3uvT3BZHVkPzt9ycdU43P/KAph0DRuQn8mEQqmh9OCCKAcVKe33/EFDjd0nS3RoKTz6d5FxLdwJO1RFcc3sOiBHe5gzVFizeM1GADwPKTbWn9+4p2DOEGzuzpB+GAQRRply8x0fOg7CV+dPc1QYUbcdZ3Xr2z4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755624001; c=relaxed/simple; bh=678B1Fw471n/Xm+qooGR9b4PGvre7PkhgW0uKdjti9E=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=cmKC5JwcROODFdDdR/t4Y+NrOMQNE6dYoVI1NNDlR/5TMzv5QjD0M/PDMtaRPTiXrxxnAQSIPncX6jOggdlZ0gXuUTci0FZzHT8uLKvtdz56EaoXntkcH6O0WyC/xK2ZX9s8otNiz7Ok58N/F1oavcMnKzELwZDEcf9OOCGuXRg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Vmb5rJFX; 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="Vmb5rJFX" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4F636C4CEF1; Tue, 19 Aug 2025 17:20:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755624000; bh=678B1Fw471n/Xm+qooGR9b4PGvre7PkhgW0uKdjti9E=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Vmb5rJFXTd84gI54arOOi/iK8sXrUtMcmJkvFrWTDQ3t/F3q7yNqsNDz+ZMgm3c5y jQmfqwTmt2Crx4YkWQLjByB0P/LI0Y1Ou8CrZYPf8BS2JN25DcGtha4Ve5CbnyJ9oF a+VJYjEdki6Zu2DQ2aMTIrWaxK7c33cXCnDtN09M= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38559: platform/x86/intel/pmt: fix a crashlog NULL pointer access Date: Tue, 19 Aug 2025 19:18:06 +0200 Message-ID: <2025081906-CVE-2025-38559-9fa1@gregkh> X-Mailer: git-send-email 2.50.1 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2989; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=5Ld2G6FbmpURVmRP1/bUAwi7KDosYH8Bu+vzsj0B6Fc=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlLNp6zW78+6fiJYMPVB3wzLbmsLoQxV89OmO961fBJn tryezMmdcSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBE3h1hWHDt9Hll34SFDQZL TBruz1s7t0hcxoxhnumyrRxNNlW5GX1+mwqlSw/v3qwiDAA= 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: platform/x86/intel/pmt: fix a crashlog NULL pointer access Usage of the intel_pmt_read() for binary sysfs, requires a pcidev. The current use of the endpoint value is only valid for telemetry endpoint usage. Without the ep, the crashlog usage causes the following NULL pointer exception: BUG: kernel NULL pointer dereference, address: 0000000000000000 Oops: Oops: 0000 [#1] SMP NOPTI RIP: 0010:intel_pmt_read+0x3b/0x70 [pmt_class] Code: Call Trace: ? sysfs_kf_bin_read+0xc0/0xe0 kernfs_fop_read_iter+0xac/0x1a0 vfs_read+0x26d/0x350 ksys_read+0x6b/0xe0 __x64_sys_read+0x1d/0x30 x64_sys_call+0x1bc8/0x1d70 do_syscall_64+0x6d/0x110 Augment struct intel_pmt_entry with a pointer to the pcidev to avoid the NULL pointer exception. The Linux kernel CVE team has assigned CVE-2025-38559 to this issue. Affected and fixed versions =========================== Issue introduced in 6.12 with commit 045a513040cc0242d364c05c3791594e2294f32d and fixed in 6.12.42 with commit 860d93bd6a21f08883711196344c353bc3936a2b Issue introduced in 6.12 with commit 045a513040cc0242d364c05c3791594e2294f32d and fixed in 6.15.10 with commit 18d53b543b5447478e259c96ca4688393f327c98 Issue introduced in 6.12 with commit 045a513040cc0242d364c05c3791594e2294f32d and fixed in 6.16.1 with commit 089d05266b2caf020ac2ae2cd2be78f580268f5d Issue introduced in 6.12 with commit 045a513040cc0242d364c05c3791594e2294f32d and fixed in 6.17-rc1 with commit 54d5cd4719c5e87f33d271c9ac2e393147d934f8 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-2025-38559 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: drivers/platform/x86/intel/pmt/class.c drivers/platform/x86/intel/pmt/class.h 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/860d93bd6a21f08883711196344c353bc3936a2b https://git.kernel.org/stable/c/18d53b543b5447478e259c96ca4688393f327c98 https://git.kernel.org/stable/c/089d05266b2caf020ac2ae2cd2be78f580268f5d https://git.kernel.org/stable/c/54d5cd4719c5e87f33d271c9ac2e393147d934f8