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 47D1D37DAC2 for ; Sun, 18 Oct 2026 15:27:50 +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=1792337274; cv=none; b=Z/+0o13Ffwqz6NVJusNi/2eRsUJWitbLQEMNkV8F0omkAzUOtSFDzK/RDHhse/a73lCQe2QX4jkwxaeyozD6/mqIsSAiaIZLUpKRSn/eyXvhvVYqrX9stlNXN1+pQAwQlevx9JpqDiMVp/GHDAMUM08uUz7SNKfaBd5EwkvXEec= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792337274; c=relaxed/simple; bh=qh4ECtFTxjImQHxG0vvGxyJ+VfTxpZB5TgFBG4X4bwM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=hqXUwRVeayhXE0yku13Uc8ZQ2rmOSHaGweW9RvOLjbClaVL1s3Ams+PLK4M9LzTXZhUtcN8yHrIGETItRlJ6eGvMy+Yv6JFzmgod0Q6VQk75rYBaJjzQiS/SEPwZcDsdg+9zgvujyMnR7HLp831jHtd2Qz/OtUIyWK3NyIJm/po= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=e/CF2WEJ; 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="e/CF2WEJ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 633E71F000C4; Sun, 18 Oct 2026 15:27:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792337270; bh=oKzitJuPL+kXqFoFV27HgxrwQ+NnU7d+N+Gc2AT+F4s=; h=From:To:Cc:Subject:Date:Reply-To; b=e/CF2WEJ0X+vpU8Aukf4byf3HfpGNSvVT/qvqfl0FIdMgQxy9c70AEzB5WGHbQ6hO EFOG/Z4OdBQ3diGSMF9g/ogIOZyiJ16YdpxvkA0a7qKM3IMekncwfUSi5dhHmGcBav Zn4MFYvhDobXLfmgZ9WhkwdqGTVPvtr+6M+NRV7U= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98551: perf/core: Fill branch entries with a single assignment Date: Sun, 18 Oct 2026 17:16:55 +0200 Message-ID: <2026101828-CVE-2026-98551-848d@gregkh> X-Mailer: git-send-email 2.56.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=3192; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=CN1rCTHre/tSXi65zvZyOyqBbnmSt9W53MNR9K/UdYU=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlXHk3oKnv1cnpuS0TjVP39YapL827uFDd0WCSdvnHaS b2SntuiHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRnPsMCzYuNcnzesViei00 NvNkW/uF7m0sZQwLptkennS60HWD3LTEtRcPt7KJCjJVAAA= 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/core: Fill branch entries with a single assignment perf_clear_branch_entry_bitfields() clears the bitfields of struct perf_branch_entry one by one and leaves from/to alone, since callers overwrite those straight away. The list has to be kept in sync with the struct by hand and has already fallen behind: new_type and priv were added to perf_branch_entry and never added here. Only BRBE writes those two, and neither for every record. brbe_set_perf_entry_type() leaves new_type alone for a branch type it does not recognise, and priv is not set for source-only records. arm_pmuv3.c allocates the per-CPU branch stack with kmalloc(), so such a record reaches userspace with whatever the slot held: uninitialised kmalloc() data on the first pass over the buffer, the previous record's values after that. Nothing under arch/x86/events/ writes either field, so only arm64 is affected. Assign the whole entry at each site instead. Everything not named is then zero, and there is no list to keep in sync. The bitfields add up to exactly 64 bits, so the struct has no padding to leave undefined. perf_clear_branch_entry_bitfields() has no callers left, so remove it. perf_entry_from_brbe_regset() assigns an empty literal instead, since it fills from/to conditionally. PERF_BR_SPEC_NA is 0, so dropping the explicit spec assignment changes nothing. The Linux kernel CVE team has assigned CVE-2026-98551 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1 with commit b190bc4ac9e6d9763b61654c5a0c085ff77d7a09 and fixed in 7.2.9 with commit c7de8521947a521b766979ff5c09f66fe905a5bd Issue introduced in 6.1 with commit b190bc4ac9e6d9763b61654c5a0c085ff77d7a09 and fixed in 7.3-rc5 with commit 24b620729e53d978b3e425f55bc66efd3bab1f59 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-98551 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/events/amd/brs.c arch/x86/events/amd/lbr.c arch/x86/events/intel/lbr.c drivers/perf/arm_brbe.c include/linux/perf_event.h 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/c7de8521947a521b766979ff5c09f66fe905a5bd https://git.kernel.org/stable/c/24b620729e53d978b3e425f55bc66efd3bab1f59