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 5962C26F2A1 for ; Sat, 4 Oct 2025 15:18:23 +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=1759591103; cv=none; b=IvPy+FyMbFCpUZM4fw9qF6Sg0yCKCvvrXRQ6PD5nqjgRfYZawsF/vAoSuZ9vtD9i177tBI9rNvD74KTr+LdCW24E1rrTt+QZhy3J2btGHphsMeZW1DFBHl4iJS9GM86+phlE4h4yqyWNm/L9/U99kqI9ia1WFRuWHTvH7BKcB6U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759591103; c=relaxed/simple; bh=JTQmAMB7KD5vP9p/85LJi1iuQwGbbGxZxh1zx3HX3Fk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=soj0R5l5IP7BqhTxb7K2Wl6iFFojshjWpSWNACGJ1QygRVJgNUWxFxnztd0gu7KVZi2UlGjza0/1+XvwwJPQBd5ll1zmhWlOwPc28l8zDSA/G/jrCCXW6Owpc6KKtjqsZbPL4e1fBC4uNPbt4dllOcWMGCTBGmURCcZFT2xPUZA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=zlYp63j1; 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="zlYp63j1" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DC48CC4CEF1; Sat, 4 Oct 2025 15:18:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759591103; bh=JTQmAMB7KD5vP9p/85LJi1iuQwGbbGxZxh1zx3HX3Fk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=zlYp63j1cRv3gWXiXSmhl9W6YNTY+cePj75lke1mMxDFDkQn+3crvElAYmx18qMTN Jes3epFXqd60DLnYLHCaVml2+ZKFJroO8GWPlJcv5OjrrmUHLF9IGlr6RYZGaL1pnz pIxtJipi3QlNpbrnw9d/uvlJd3P316J8WwZJlRF8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53550: cpufreq: amd-pstate: fix global sysfs attribute type Date: Sat, 4 Oct 2025 17:17:04 +0200 Message-ID: <2025100447-CVE-2023-53550-bbac@gregkh> X-Mailer: git-send-email 2.51.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=3140; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=f2BZ654ZGK6is8PAv6xDIfNLniERXu/8o//juic54xo=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkPreKvH5XleLh+7W2fbLuJShd4uh/ZT/x9Yu7nD/8ra 96pf7t8vCOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAmorKSYb4ff5FH66b+w8L/ 3YJ2Vhjueuh/vophvvPbxx9jJue979vzfq6r+qk9/y0ebwIA 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: cpufreq: amd-pstate: fix global sysfs attribute type In commit 3666062b87ec ("cpufreq: amd-pstate: move to use bus_get_dev_root()") the "amd_pstate" attributes where moved from a dedicated kobject to the cpu root kobject. While the dedicated kobject expects to contain kobj_attributes the root kobject needs device_attributes. As the changed arguments are not used by the callbacks it works most of the time. However CFI will detect this issue: [ 4947.849350] CFI failure at dev_attr_show+0x24/0x60 (target: show_status+0x0/0x70; expected type: 0x8651b1de) ... [ 4947.849409] Call Trace: [ 4947.849410] [ 4947.849411] ? __warn+0xcf/0x1c0 [ 4947.849414] ? dev_attr_show+0x24/0x60 [ 4947.849415] ? report_cfi_failure+0x4e/0x60 [ 4947.849417] ? handle_cfi_failure+0x14c/0x1d0 [ 4947.849419] ? __cfi_show_status+0x10/0x10 [ 4947.849420] ? handle_bug+0x4f/0x90 [ 4947.849421] ? exc_invalid_op+0x1a/0x60 [ 4947.849422] ? asm_exc_invalid_op+0x1a/0x20 [ 4947.849424] ? __cfi_show_status+0x10/0x10 [ 4947.849425] ? dev_attr_show+0x24/0x60 [ 4947.849426] sysfs_kf_seq_show+0xa6/0x110 [ 4947.849433] seq_read_iter+0x16c/0x4b0 [ 4947.849436] vfs_read+0x272/0x2d0 [ 4947.849438] ksys_read+0x72/0xe0 [ 4947.849439] do_syscall_64+0x76/0xb0 [ 4947.849440] ? do_user_addr_fault+0x252/0x650 [ 4947.849442] ? exc_page_fault+0x7a/0x1b0 [ 4947.849443] entry_SYSCALL_64_after_hwframe+0x72/0xdc The Linux kernel CVE team has assigned CVE-2023-53550 to this issue. Affected and fixed versions =========================== Issue introduced in 6.4 with commit 3666062b87ec8be4b85dc475dfb54bb17e10a7f6 and fixed in 6.4.11 with commit ddcfc33a20380508f7fea18e1c330abe17ed4fc0 Issue introduced in 6.4 with commit 3666062b87ec8be4b85dc475dfb54bb17e10a7f6 and fixed in 6.5 with commit 5e720f8c8c9d959283c3908bbf32a91a01a86547 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-2023-53550 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/cpufreq/amd-pstate.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/ddcfc33a20380508f7fea18e1c330abe17ed4fc0 https://git.kernel.org/stable/c/5e720f8c8c9d959283c3908bbf32a91a01a86547