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 4EFFA4908D3 for ; Fri, 25 Sep 2026 10:35:07 +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=1790332508; cv=none; b=QP/zGIpksRYe9rWEICjAMVObyIcmzOtg8Xf0nBR1LD/shwsiFGDdwAOV2mDe2WdYnUao/OmUFgI3YBhEvqzPeAmpExfPyI8qUlPEtdVcvOKVNlxAV8gCLILeDRwa6Tmu/Lmv9f3L/XFHGt1L93+v2xlHAZwDGM4lEpomayDarwo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332508; c=relaxed/simple; bh=2Yz487el4xNjECVKmYlNfHmAhnRa9KzRBOyZwmZnWr8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Nbf70Bm6PpZx2iKOxwkpG5t01tJnOevh9TvrjfZEG0+xheHrjv4fYrwYhUvLYAkdOvIPrzN3iK9GG8u8m0kTWsvox3AuDUbvSXmGPqyKaNly3uSE3l9lhrqJZF6q1TA76pwwm5bi4sBjJE+TdE0W92BD3SOe1xCCF/ZcRbPIJak= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=zRdZOtyR; 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="zRdZOtyR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 59DEA1F000FF; Fri, 25 Sep 2026 10:35:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790332506; bh=kQk6FFkrQKa62dphC2jJsFVhJGs4Hho5mW7DB2B4cFU=; h=From:To:Cc:Subject:Date:Reply-To; b=zRdZOtyRKov/1WyEU/52yN7pyxzvh4LKEEOu/VrfZOz/1Llj+SFo8TxxYRL4m4+qE WYVLts5cDyZk6FDuqD6bR0HO0pL+kbuCpq9Dqt2+z9hZ6AkWRX19Sq02trqwhqcUlx vc1QimBEkjxFEZ3W3X5DHBPIvcBdg8qhnWc2qXHI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98061: bpf: Reject tail calls directly from callback frames Date: Fri, 25 Sep 2026 12:26:03 +0200 Message-ID: <2026092534-CVE-2026-98061-5c9d@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=2887; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=xmmWNCFPFGEqd8fUWWTmnB2PmI8eNAXe+pDe9bPMGQs=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvLPuLd2nctnui0TAuimnN54oMAt4dsi1++vtg5cll xn/vs0h3RHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATMQ5kmGf5bOKFNwUuE+5P O2LjJMWvb+cnzMUwT+GoxWuuH3XzPsxLmqV/QfObZK9UMgA= 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: Reject tail calls directly from callback frames A tail call from a non-zero frame is modeled as a return from that frame. The verifier makes R0 unknown and calls prepare_func_exit() for the taken branch. When the current frame is a synchronous callback, prepare_func_exit() enforces the callback return-value contract and marks R0 precise. Since the tail-call path synthesized R0 rather than deriving it from an instruction, precision backtracking reaches the callback-calling instruction with R0 still requested and triggers the "callback unexpected regs" verifier bug. A CAP_BPF task can therefore cause a WARN and an -EFAULT BPF_PROG_LOAD. Tail calls reachable from callbacks are already rejected later by check_max_stack_depth(). Reject a tail call made directly by a callback before constructing the inconsistent return state, using the existing diagnostic. Tail calls from ordinary subprograms keep their current behavior. The Linux kernel CVE team has assigned CVE-2026-98061 to this issue. Affected and fixed versions =========================== Issue introduced in 6.18.2 with commit a6c22c91b6284e4713c0cf5b20ab3c9c71b77ae8 and fixed in 6.18.53 with commit 617c8266e49f45747f71e74177646a63f72b7025 Issue introduced in 6.19 with commit e3245f8990431950d20631c72236d4e8cb2dcde8 and fixed in 7.2.7 with commit 96d31b28263c429a56e4de85bcf744a5c320b3a3 Issue introduced in 6.19 with commit e3245f8990431950d20631c72236d4e8cb2dcde8 and fixed in 7.3-rc2 with commit 266aa4ad0b2e82397cd9045752c9bff03d98eddd 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-98061 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/verifier.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/617c8266e49f45747f71e74177646a63f72b7025 https://git.kernel.org/stable/c/96d31b28263c429a56e4de85bcf744a5c320b3a3 https://git.kernel.org/stable/c/266aa4ad0b2e82397cd9045752c9bff03d98eddd