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 32ACE24EF88 for ; Tue, 20 May 2025 16:02: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=1747756944; cv=none; b=USohxYdZhItYq0PFB2X8mGme543N+PFvmXWe9yi4cQCCHB85FR90Dt1G6TgH+MWYRBUeSdipjoUrQ/1r/BbPm2OPtRYGhl8OADjeON1l4i98SXhwj9XQhaqo6MQnZF1So7gzNzw5ohLn6EZ2EIikkmB9FpEzuHLyoKwvQeeMI1U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747756944; c=relaxed/simple; bh=i20kxWIUgGFcqvJp5uwAkPGf+eoR3unfHPfCMhxOhwc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Z0mp8vOpTsMPnx+NiyKwR1HlQWDK/2R42xXBEuO+M/NqrlElx61dIFN4ETUYPBu/8X4ZaGXU7tDa9P4efw9dc1/cxtT6dEB5IoKqDI2k1mUpBcmUQj4wsXXQdFkTweASDw1GJeIaEtKYR92CjmeWN1XKCPztC/IiLRGPd8ePbnM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=cG3keuta; 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="cG3keuta" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 42873C4CEEB; Tue, 20 May 2025 16:02:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1747756943; bh=i20kxWIUgGFcqvJp5uwAkPGf+eoR3unfHPfCMhxOhwc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=cG3keutazmYLORhRnepl55ymHvuQhcRPszsGvB9nM8dcK17vLAI3qBM71xTRRimpk HrmrEpT+99MlDpLF1/g6isKdY7bD0Auc+jy4nllne9nJqijj6F9esQdAT6TGT0JJtq 5x5QnVYoBzDHk2EVY0zJfsrKL3LjKpTUYfktP87I= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37948: arm64: bpf: Add BHB mitigation to the epilogue for cBPF programs Date: Tue, 20 May 2025 18:02:02 +0200 Message-ID: <2025052000-CVE-2025-37948-2f8d@gregkh> X-Mailer: git-send-email 2.49.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=2391; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=7m5BkWwOCS247lX1bv+SNYFDFrrbm82HGNiXIxE9MPk=; b=owGbwMvMwCRo6H6F97bub03G02pJDBk6yyvOVf643tO4SUOtqPuBbnld6fe1Sx9dPXev7/a9K VnfSi6qd8SyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEeCwY5sqxGO5RXdswrYql ZG//p+fbLIQUNjLMs/GUXSF30q9pA4dM23cRbcUzmTXHAA== 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: arm64: bpf: Add BHB mitigation to the epilogue for cBPF programs A malicious BPF program may manipulate the branch history to influence what the hardware speculates will happen next. On exit from a BPF program, emit the BHB mititgation sequence. This is only applied for 'classic' cBPF programs that are loaded by seccomp. The Linux kernel CVE team has assigned CVE-2025-37948 to this issue. Affected and fixed versions =========================== Fixed in 6.1.139 with commit 8fe5c37b0e08a97cf0210bb75970e945aaaeebab Fixed in 6.6.91 with commit 42a20cf51011788f04cf2adbcd7681f02bdb6c27 Fixed in 6.12.29 with commit 38c345fd54afd9d6ed8d3fcddf3f6ea23887bf78 Fixed in 6.14.7 with commit 852b8ae934b5cbdc62496fa56ce9969aa2edda7f Fixed in 6.15-rc7 with commit 0dfefc2ea2f29ced2416017d7e5b1253a54c2735 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-2025-37948 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/arm64/include/asm/spectre.h arch/arm64/kernel/proton-pack.c arch/arm64/net/bpf_jit_comp.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/8fe5c37b0e08a97cf0210bb75970e945aaaeebab https://git.kernel.org/stable/c/42a20cf51011788f04cf2adbcd7681f02bdb6c27 https://git.kernel.org/stable/c/38c345fd54afd9d6ed8d3fcddf3f6ea23887bf78 https://git.kernel.org/stable/c/852b8ae934b5cbdc62496fa56ce9969aa2edda7f https://git.kernel.org/stable/c/0dfefc2ea2f29ced2416017d7e5b1253a54c2735