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 37B653D4107 for ; Fri, 28 Aug 2026 06:52:40 +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=1787899961; cv=none; b=DJKR6Prr0dc6ECxIrJMBVQ+DpiEpxlJbMhBq1C27SCBQESbQuafhir4kGfZzKoz1j0HLh72CiszHV7XfZ8S9YqZy/NyW+F6cozVtNA4kVLZIN6UbZ0NMl6xK1k5z0VzXeQEabrbPoYYhEOTNsRCXc75piDNIKD/JDvNlPkvo6C8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787899961; c=relaxed/simple; bh=gDBSa+RWkOY+++Lx7sYewjKKa0ll7NlapB7bBvv4IR8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=AoRJTfFszUdrpfAKtOf8bgD9vUtJz45eyKGAbqV+m06gVvrcy89O3frGte0pfxX8StZ1v7+jtzQzq3OWsbjQMkqMhLg2vKEMIBRtTR2+mIpLnC+46A/06hCRgvVCPtOBL1cHdMUKWsQi8oyeC74YP4UhY4R3Vm7WjYNDS+9+7iE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=i7qm48ac; 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="i7qm48ac" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 956661F00A3D; Fri, 28 Aug 2026 06:52:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1787899960; bh=Z3qYaV2Q4glPgyd75TZN7QR1JIAMzMA9D2ObnyruQ+Q=; h=From:To:Cc:Subject:Date:Reply-To; b=i7qm48acIIH96V/q2szRZZvgk22ovxobhHZxBaJLlCuh8IypsCMo9Ggxib0y4i4LH LJEafBMzor/jHINp1EJajzQJfrsbDp5w92gy/W2XJ+/AtUhGjQhS/csZa7ZKkHQVUu Y/ReZUc8U+suxwGxZNGcllVN2rHyT/7sjj/8tCUw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-80670: perf tools: Use perf_env__get_cpu_topology() in machine__resolve() Date: Fri, 28 Aug 2026 08:49:47 +0200 Message-ID: <2026082848-CVE-2026-80670-bbb7@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=2573; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=U1gjMOy036UgcLjwJpuV1qEwoeywL9OzfEYhuQ50W9w=; b=kA0DAAIRMUfUDdst+ykByyZiAGqRL1CjLAhzMKNmTdr50RnsyGd67RT8yYwFqDGsPypBNqsGt YhdBAARAgAdFiEE9LYMxb94wiFKMT3LMUfUDdst+ykFAmqRL1AACgkQMUfUDdst+ymxkQCgitOP GBNbx/Ozd9N8ns/Dbr0T5pEAoKb3Kbqp2zDFCi6YEnlh5vaJHeRb 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: perf tools: Use perf_env__get_cpu_topology() in machine__resolve() machine__resolve() accesses env->cpu[al->cpu].socket_id after checking al->cpu >= 0 and env->cpu != NULL, but without validating al->cpu against env->nr_cpus_avail. Since al->cpu comes from the untrusted perf.data sample, a crafted file with a large CPU index causes an out-of-bounds heap read. Use perf_env__get_cpu_topology() which validates both NULL and bounds. Also bounds-check al->cpu before the cast to struct perf_cpu (int16_t): without this, values like 65536 silently truncate to 0, bypassing the accessor's internal check and returning CPU 0's topology. The Linux kernel CVE team has assigned CVE-2026-80670 to this issue. Affected and fixed versions =========================== Issue introduced in 4.4 with commit 0c4c4debb0adda4c18c158d95031dc2b9f637869 and fixed in 6.18.40 with commit b9e8406651dcc1c19238aad11861a758683525b4 Issue introduced in 4.4 with commit 0c4c4debb0adda4c18c158d95031dc2b9f637869 and fixed in 7.1.5 with commit eb266a14c16a93eb4db7b56a452d6be93f8bdcd4 Issue introduced in 4.4 with commit 0c4c4debb0adda4c18c158d95031dc2b9f637869 and fixed in 7.2 with commit 5484b43a0ec8231c36fba6ead654cb72dbba8b8f 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-80670 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: tools/perf/util/event.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/b9e8406651dcc1c19238aad11861a758683525b4 https://git.kernel.org/stable/c/eb266a14c16a93eb4db7b56a452d6be93f8bdcd4 https://git.kernel.org/stable/c/5484b43a0ec8231c36fba6ead654cb72dbba8b8f