Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 AB6F5395AF1 for ; Sat, 25 Jul 2026 09:02:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784970166; cv=none; b=Rwu0Y5h3PiYGU7unte9hq8VEUlMNOFc/64xv9wjhB2TkvtC/pcffGPiMMHl6juQqgy0PRJ35tTIMVMLkghn1AFAfh/7n4hhQWHfKAEGnCDNlPTq7pcDe8CGxyCEQieQaTCjA7yXptzLv8b2E5SD+YJH1fqp/3iqkZQF8aTudXzg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784970166; c=relaxed/simple; bh=yVFy6SC+0rA+/yqbhJXqGo1obsM6UvIuMduesJ/JqSM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=k5rCirIcDBvxjTgiuBO8kacNcPDFF8owFCWJ+JeBzId/xIOt4xQJeoo3XRw5CGBH52tcw9NX7X0m8AFBH6UgkVgI14Nx4xdhGLuaHYzikbTSjxcg39Lv7unQ8YgZRs5FEQk/IumOXs5arnilRY4N5oTruxwuK5aetc1kqrQmu4A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=VY8otH1l; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="VY8otH1l" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2388D1F000E9; Sat, 25 Jul 2026 09:02:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784970163; bh=CzevP0Q7ObwvNWtnZr1EGRSvCf6ka6YnEGQf1Fw7jO8=; h=From:To:Cc:Subject:Date:Reply-To; b=VY8otH1ldaNHpEs3FG4hZdtRvWu3TOdISC53c6+zFQlBYHf5fmeMDHxgI7b7K3+5W pdTkUMYrai0FuKwwEq+b5ydsZuJ8j7820VO9nCZFPSClWFRAmbyLbtgqMs3uYKIwJR 4iNGnvCGDx7Xj50B8WzvHWi4eQAmZAOSSCmCR/24= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-64477: x86,fs/resctrl: Prevent out-of-bounds access while offlining CPU when SNC enabled Date: Sat, 25 Jul 2026 10:51:34 +0200 Message-ID: <2026072547-CVE-2026-64477-43f3@gregkh> X-Mailer: git-send-email 2.55.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=3623; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=7ALLFxKwoJWn2uQDNtqk9ZjJP4WfrTILsIazdh9UrUU=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkpFfn8fcalegZljdUPPjhUTVr0zPfiur7GdwmXP8hxM e26vj+3I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbSPoNhQZum//NWt7nvBA7b W27Y7/Bw57o5yxnmmfCuCRZpff3rZInhhPOxLKvPPb1zEwA= 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: x86,fs/resctrl: Prevent out-of-bounds access while offlining CPU when SNC enabled The architecture updates the cpu_mask in a domain's header to track which online CPUs are associated with the domain. When this mask becomes empty the architecture initiates offline of the domain that includes calling on resctrl fs to offline the domain. If it is a monitoring domain in which LLC occupancy is tracked resctrl fs forces the limbo handler to clear all busy RMID state associated with the domain. The limbo handler always reads the current event value associated with a busy RMID irrespective of it being checked as part of regular "is it still busy" check or whether it will be forced released anyway. When reading an RMID on a system with SNC enabled the "logical RMID" is converted to the "physical RMID" and this conversion requires the NUMA node ID of the resctrl monitoring domain that is in turn determined by querying the NUMA node ID of any CPU belonging to the monitoring domain. When the monitoring domain is going offline its cpu_mask is empty causing the NUMA node ID query via cpu_to_node() to be done with "nr_cpu_ids" as argument resulting in an out-of-bounds access. Refactor the limbo handler to skip reading the RMID when the RMID will just be forced to no longer be dirty in the domain anyway. Add a safety check to the architecture's RMID reader to protect against this scenario. The Linux kernel CVE team has assigned CVE-2026-64477 to this issue. Affected and fixed versions =========================== Issue introduced in 6.11 with commit e13db55b5a0d447dea63cde772c1078405bbbf96 and fixed in 6.12.96 with commit ebc300b7ee0c669fa76a7a8858298ff32e296103 Issue introduced in 6.11 with commit e13db55b5a0d447dea63cde772c1078405bbbf96 and fixed in 6.18.39 with commit be1567992417dc92133e74126de7a6066c825ac9 Issue introduced in 6.11 with commit e13db55b5a0d447dea63cde772c1078405bbbf96 and fixed in 7.1.4 with commit 58c5ec23b1a238eb75cb0aba6f69d8f9e68ef0b2 Issue introduced in 6.11 with commit e13db55b5a0d447dea63cde772c1078405bbbf96 and fixed in 7.2-rc2 with commit fc16126cc11d9f507130bf84ab137ee0938c900e 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-64477 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: arch/x86/kernel/cpu/resctrl/monitor.c fs/resctrl/monitor.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/ebc300b7ee0c669fa76a7a8858298ff32e296103 https://git.kernel.org/stable/c/be1567992417dc92133e74126de7a6066c825ac9 https://git.kernel.org/stable/c/58c5ec23b1a238eb75cb0aba6f69d8f9e68ef0b2 https://git.kernel.org/stable/c/fc16126cc11d9f507130bf84ab137ee0938c900e