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 D49451D1F6B for ; Tue, 19 Nov 2024 17:24:09 +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=1732037049; cv=none; b=W6gO72wthjdfIQVkROWJ/+71x5iYKw+CV+q8Ea9cJEkAXwLUfzaxybDTwgE0xRNGoRVaHXaB+JgmjkH5K9sENfLh6Bd0eCB2Gpya1JnMoWWKZ0+6DO6olcInGkg1J2zIRYA8uW2Uawf9j1/Hl7QToOiNXPTrMzlMmq5tWQLTSxk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732037049; c=relaxed/simple; bh=K0DecDrtqyiAuJOms/jc/5FS/WVBLZ4a+qC4guy48cI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=tlpPq8S57HduqpZHOPnVarBTci0c0SHyqXhfmNHYudGYqeYtIi8YK25m1bChzOwSn28//FGVVIj5XhZT5NsRFj5cSvUP6Qu9lOfn382V9El2LZZgleOlIFVPBQA7AB0F/X8AvldJLLjhOmeJb30jC/SiaUXj6sPpLW9doro+YXw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=E1qoqgR5; 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="E1qoqgR5" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9FA3CC4CED0; Tue, 19 Nov 2024 17:24:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1732037049; bh=K0DecDrtqyiAuJOms/jc/5FS/WVBLZ4a+qC4guy48cI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=E1qoqgR5pP9iU7hF7awfJ1vwxnt5TlMPvgDPtK1dDNT8S1CNw2gDLokPvon26MEra n6O66VaCUVf0TjhZoZ2JNpskaer/06+92BNl5QfuSZRYLkgB7NpVCrmdDUNJlF8JOx s2wtytHTzR6WCLTke2Pr5sK9TrUu8keODmZMpDHc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-53072: platform/x86/amd/pmc: Detect when STB is not available Date: Tue, 19 Nov 2024 18:22:43 +0100 Message-ID: <2024111934-CVE-2024-53072-f307@gregkh> X-Mailer: git-send-email 2.47.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=2636; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=K0DecDrtqyiAuJOms/jc/5FS/WVBLZ4a+qC4guy48cI=; b=owGbwMvMwCRo6H6F97bub03G02pJDOk2J6N2mS4y2K+02e3SedOP15XdizpOybRHhelOtJixN CHpnYZERywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzEQJVhnv00/QrDRx6LHxut 59sveOTS4ykdBQwL2qUEWLY3fLgx36xA5GMd79/S7D07AA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: platform/x86/amd/pmc: Detect when STB is not available Loading the amd_pmc module as: amd_pmc enable_stb=1 ...can result in the following messages in the kernel ring buffer: amd_pmc AMDI0009:00: SMU cmd failed. err: 0xff ioremap on RAM at 0x0000000000000000 - 0x0000000000ffffff WARNING: CPU: 10 PID: 2151 at arch/x86/mm/ioremap.c:217 __ioremap_caller+0x2cd/0x340 Further debugging reveals that this occurs when the requests for S2D_PHYS_ADDR_LOW and S2D_PHYS_ADDR_HIGH return a value of 0, indicating that the STB is inaccessible. To prevent the ioremap warning and provide clarity to the user, handle the invalid address and display an error message. The Linux kernel CVE team has assigned CVE-2024-53072 to this issue. Affected and fixed versions =========================== Issue introduced in 5.18 with commit 3d7d407dfb05 and fixed in 6.1.117 with commit a50863dd1f92 Issue introduced in 5.18 with commit 3d7d407dfb05 and fixed in 6.6.61 with commit 7a3ed3f12529 Issue introduced in 5.18 with commit 3d7d407dfb05 and fixed in 6.11.8 with commit 67ff30e24a04 Issue introduced in 5.18 with commit 3d7d407dfb05 and fixed in 6.12 with commit bceec87a7380 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-2024-53072 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/amd/pmc/pmc.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/a50863dd1f92d43c975ab2ecc3476617fe98a66e https://git.kernel.org/stable/c/7a3ed3f125292bc3398e04d10108124250892e3f https://git.kernel.org/stable/c/67ff30e24a0466bdd5be1d0b84385ec3c85fdacd https://git.kernel.org/stable/c/bceec87a73804bb4c33b9a6c96e2d27cd893a801