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 3E9E62FC3DB for ; Fri, 4 Jul 2025 13:41:56 +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=1751636517; cv=none; b=BhZhSH253Jqr5gSr8gWS95JziH8Bore88is13XqODH04jewmDP7szU77UCmT6PPgVugJOqDhjevs0FwuZSzTsOvtGWp4ZUG1h5Jl10OA37yedIirkxVizZAlIIzGHDiozWnkr3l8xQy3y9d3IzmDe0dSXgYGARfjWCQ+k2Cdpuk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751636517; c=relaxed/simple; bh=uZMhoMDd8WdXlNKcEf6Sn7CLbYzC3LZWijv2Ee6mdYE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Vn7snli/xK2xrMfWBfd+d21WvG1D7z1mZN3W0rS27uPYmqtXbUVXFGkkVSO8h3JCWzwZF3Vjo7wwS6I2mAfocVn39KMsQwdKzEFzScdI8fcEzbUEUxUl0EDoKlKTeH3uuuMH2VGGmIG9ngEukVIs5muZ7pSfcvCny+U+9PM4EkI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=nRiNo57x; 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="nRiNo57x" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 62CC7C4CEE3; Fri, 4 Jul 2025 13:41:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1751636516; bh=uZMhoMDd8WdXlNKcEf6Sn7CLbYzC3LZWijv2Ee6mdYE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=nRiNo57xwNPm3tWFo/MFpDKQ5Vv2M7t63vKNYm9eLh+19D0tL+FjeJbyEPmbsjSNc LQrXx62nYzlc3znFQ0OzLIE9+ByL6FCsL1kD1WAoE0OmtYWy7w2c5h+iPejzCP8ozC s/rsotsgNdBgtaiJSOsSiqheXnMe7jxMsNxaw40c= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38178: EDAC/igen6: Fix NULL pointer dereference Date: Fri, 4 Jul 2025 15:37:07 +0200 Message-ID: <2025070407-CVE-2025-38178-8846@gregkh> X-Mailer: git-send-email 2.50.0 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=2505; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=cQqle93nRnGIuHyzvIxx8cwnO4KkYpNFt15tpA0ukzM=; b=kA0DAAIRMUfUDdst+ykByyZiAGhn2QSjsIB895zYzut+bgCTZIcfEPdJdS5UKVnyZeEOFIJMe YhdBAARAgAdFiEE9LYMxb94wiFKMT3LMUfUDdst+ykFAmhn2QQACgkQMUfUDdst+ylFzQCfQj3i y0GjoGfSD+B3hc4u3gai0hgAnj+4tpU76LrcdOVToI+uqS4Y7RAQ 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: EDAC/igen6: Fix NULL pointer dereference A kernel panic was reported with the following kernel log: EDAC igen6: Expected 2 mcs, but only 1 detected. BUG: unable to handle page fault for address: 000000000000d570 ... Hardware name: Notebook V54x_6x_TU/V54x_6x_TU, BIOS Dasharo (coreboot+UEFI) v0.9.0 07/17/2024 RIP: e030:ecclog_handler+0x7e/0xf0 [igen6_edac] ... igen6_probe+0x2a0/0x343 [igen6_edac] ... igen6_init+0xc5/0xff0 [igen6_edac] ... This issue occurred because one memory controller was disabled by the BIOS but the igen6_edac driver still checked all the memory controllers, including this absent one, to identify the source of the error. Accessing the null MMIO for the absent memory controller resulted in the oops above. Fix this issue by reverting the configuration structure to non-const and updating the field 'res_cfg->num_imc' to reflect the number of detected memory controllers. The Linux kernel CVE team has assigned CVE-2025-38178 to this issue. Affected and fixed versions =========================== Issue introduced in 6.16-rc1 with commit 20e190b1c1fd88b21cc5106c12cfe6def5ab849d and fixed in 6.16-rc3 with commit 88efa0de3285be66969b71ec137d9dab1ee19e52 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-38178 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/edac/igen6_edac.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/40e69c93d6dadc5355bfe90f3940c402d171289c https://git.kernel.org/stable/c/88efa0de3285be66969b71ec137d9dab1ee19e52