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 9314B496D25 for ; Fri, 25 Sep 2026 10:36:18 +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=1790332579; cv=none; b=pRBB5ykmIPwd/PwcUYGRe4WWjZ7DVB1Ea8KvfosbelDNaaGdpAZ2Zi7FMiVWmzVNKRutLfJFgK4IDgjs4ii/6kwBrBX4YKtItdgxsTAQSBjz6yZJ+0dvM10YiXPC16DKiIigcNemEFLIIVzF5KqaDFMqkY4Iwb9HdLB2HzcZzPc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332579; c=relaxed/simple; bh=GIOVUi8j8Nox16nd/veGq9Al44ejGKDppJvHXC9Iud8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=N5CJWaB7iVnSB/1ncpRNecprxknpTtukcCWtZh4/IJdW8pPcwJ+xqJqhYxL/PBeONDwfs0twbXPQdxKzGhfKcFiCMHp9LfHrRgo1P4haRXtGwI0aEobh0hmrBq+sRfTC4zU2dwAb/mDoIPYIidW8xUNcQX7gFj6aOc5dgW29UCc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=u6OkQIB0; 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="u6OkQIB0" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E4DC81F000FF; Fri, 25 Sep 2026 10:36:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790332578; bh=kVDtJdUTAANDcJuRvbz5jJUrm5YsQKejHpZiE8pUtCo=; h=From:To:Cc:Subject:Date:Reply-To; b=u6OkQIB0smKp7rG4QJPbT9o9n0LjD5o3JSAm+/6TF7pjmOKM+lfu/AdMsl7bgL2K+ KBPFr1ap8Cfgne/GpxF7my/aUPj5pjRJeMQL5QpAxeROfFqyfWwLZZX+8gD0PMSO8Z pVZjrC89lBoJBYoijBxbRLLkV2WsDyOCs6RxfMuU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98084: bpf: backtracking shouldn't clear outer frame R1-R5 for callbacks Date: Fri, 25 Sep 2026 12:26:26 +0200 Message-ID: <2026092538-CVE-2026-98084-b1b8@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=2954; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=qUBKyB6cE46Dd1ylxkOIMceC+/s39klB/jg1qtPxrVw=; b=kA0DAAIRMUfUDdst+ykByyZiAGq2S27IV9GvcxMYFCJyRiuVed4s2h8aVEDRMnpfq3/G6lWU0 ohdBAARAgAdFiEE9LYMxb94wiFKMT3LMUfUDdst+ykFAmq2S24ACgkQMUfUDdst+yk8wgCeO+Cn FP/gClQUWVw0gojioHAzefAAoIG0K2PE1w7mtNsB/2WvZxY6LUPi 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: backtracking shouldn't clear outer frame R1-R5 for callbacks When processing calls to bpf_loop() verifier marks R1 (and R4) as precise. R1 tracks loop iterations number and because of the 'callback_depth < R1' mechanics in check_helper_call() must be marked precise. However, precision propagation for R1 was broken, when bpf_loop() call was verified on a second iteration. Consider the following verification trace: - main: bpf_loop(nr_loops, callback ...) - callback: BPF_EXIT - main: bpf_loop(nr_loops, callback ...) - ... While the first visit of the call to bpf_loop() propagated R1 precision as expected, the second call to mark_chain_precision() in the check_helper_call() set R1, but it was immediately reset when backtrack_insn() processed preceding BPF_EXIT in the loop deleted in this patch. Because of that, the second visit of the call to bpf_loop() injected checkpoint with R1 not marked as precise. Which could trick the verifier into accepting unsafe programs. See the next patch for an example of such program. Commit is structured in a way to minimize conflicts when 'bpf' would be eventually merged with 'bpf-next'. The Linux kernel CVE team has assigned CVE-2026-98084 to this issue. Affected and fixed versions =========================== Issue introduced in 6.7 with commit ab5cfac139ab8576fb54630d4cca23c3e690ee90 and fixed in 7.2.7 with commit f83890dfed9efc5e19df1dbc1ad707a142936923 Issue introduced in 6.7 with commit ab5cfac139ab8576fb54630d4cca23c3e690ee90 and fixed in 7.3-rc2 with commit e3e4f66cc4b72333d0886ae2673c360248987889 Issue introduced in 6.6.15 with commit b43550d7d58e7ae6618aaab18c1e912fa4d6e3dd 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-98084 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: kernel/bpf/backtrack.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/f83890dfed9efc5e19df1dbc1ad707a142936923 https://git.kernel.org/stable/c/e3e4f66cc4b72333d0886ae2673c360248987889