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 E23603955FC for ; Sat, 25 Jul 2026 09:02:26 +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=1784970148; cv=none; b=NAgnNr57Jd3w8TE6M7iG37OXNNtIfa+NS4cWTtTalNT7b8Jd1/iM4syp3AWQLvvdilf3xBLXVupR5heObjsiQrWF5SrumsV++VBLkCQtqAs9dEg/qUHG7dAX40LQHN/qHn8T7+bctC7u/xOfmdbJmfhjz7Ahrt4sP0CDoHmOitw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784970148; c=relaxed/simple; bh=HdXeRfmoj0CKpzikwwTHZq1e8saYkyhhAkdtdQEQzoQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=lGfYLqsbNtwGboPrAutOcuAnSiPAA2v2v+3srDhF2PbIrrGI0DpqP5mcUuovG1JzO1pGQtMkXvC45ql+lfRF8sn2eIIVoRhekbuelWUEx7hPNsbhqgy3vJGZjbHDHnhIo1bZ3pU8PLOS/RyJh3B4WUjkZFUUvfp7tYojqe7+MJA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=KHU3RKwi; 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="KHU3RKwi" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 507E21F000E9; Sat, 25 Jul 2026 09:02:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784970146; bh=Mi+Ab3ln7Yph2uN7WL6vTb5FLTXjxE8yV/cXD/jPS5U=; h=From:To:Cc:Subject:Date:Reply-To; b=KHU3RKwiEiQ1FgqAuDiysgkeFYbRByZ5FyyrGAuBjn2Rg9sWuC54btkrVOR5a4R4l S7NCPk+n73S5wU/iRRsvi+YGEArHVs2M+vHN2xaTrm4u/rvfSQHhp8ZRkOeIiq7Swr SHKmhTyRX7b+bQQzgNDP22zFFeVQekPRdIBn7ewU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-64508: bpf: Support for hardening against JIT spraying Date: Sat, 25 Jul 2026 10:52:05 +0200 Message-ID: <2026072554-CVE-2026-64508-fe26@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=3103; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=U/4qtQlUvmlh2SNGRjlkwgIO4/DNI+hB6H0xl0WHv2Y=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkpFWXP7e9EHK6pn/mbJ/yh9LFnkk8Se3M71+ifWPx+v 4avjM6/jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiITSTDbLZ03grTx3oPkzYt 5RW4wsTg6ckpyTA/YzJzb+yCFs4T3Qv1WgNtLtm9uKgJAA== 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: bpf: Support for hardening against JIT spraying The BPF JIT allocator packs many small programs into larger executable allocations and reuses space within those allocations as programs are loaded and freed. When fresh code is written into space that a previous program occupied, an indirect jump into the new program can reuse a branch prediction left behind by the old one. Flush the indirect branch predictors before reusing JIT memory so that indirect jumps into a newly written program don't reuse predictions from an old program that occupied the same space. Introduce bpf_arch_pred_flush_enabled static key and bpf_arch_pred_flush static call for flushing the branch predictors on JIT memory reuse. Architectures that need a flush, can update it to a predictor flush function. By default, its a NOP and does not emit any CALL. Allocations larger than a pack are not covered by this flush. That is safe because cBPF programs (the unprivileged attack surface) are bounded well below a pack size. Issue a warning if this assumption is ever violated while the flush is active. The Linux kernel CVE team has assigned CVE-2026-64508 to this issue. Affected and fixed versions =========================== Fixed in 6.6.145 with commit 6e52c240c43a601b681e3a4e58fc5685114d4726 Fixed in 6.12.97 with commit eed774da601268dae674e14d54a15e3624691f52 Fixed in 6.18.39 with commit 8ff183ee4d8c452960df58175a094828c0513b2e Fixed in 7.1.4 with commit 7a6c171c6a1ac6d1509752dac131d941a3de0b37 Fixed in 7.2-rc2 with commit 96cce16e26dd02a8678f1e87f88a4b5cdb63b995 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-64508 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: include/linux/filter.h kernel/bpf/core.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/6e52c240c43a601b681e3a4e58fc5685114d4726 https://git.kernel.org/stable/c/eed774da601268dae674e14d54a15e3624691f52 https://git.kernel.org/stable/c/8ff183ee4d8c452960df58175a094828c0513b2e https://git.kernel.org/stable/c/7a6c171c6a1ac6d1509752dac131d941a3de0b37 https://git.kernel.org/stable/c/96cce16e26dd02a8678f1e87f88a4b5cdb63b995