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 92A624CA769 for ; Sun, 18 Oct 2026 16:18:40 +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=1792340321; cv=none; b=dyDOkKrU4zL/lqO/ICO2FMHtJMGfR0ShjuGvaX6PU2RrRAPT7Y5Ko2eJYRbO5Ed/rcVE+dv+gqPpHzUqCvHzZ2PGefd1o11Pbtr3X6WS7yTYnTwvUWyKWlhyrx91zcr9rb4pFqJSlAKAlgZ6m8r1NGUSghDtChElp2GfmqcqsnY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792340321; c=relaxed/simple; bh=0VrwedLo25F9u+O6Tq7dyCDkjfZHM/+uy3st/Qb0408=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=nSsbt+9i+CAubFkL8njubMf3LzVnjnRDEkpYmf+42Vm1sKWnMN5SUfKwQ65K1wRVPcRHGdDJvAreo7HWS76Ta0Y95tqUYMEgApD8WMRdINfgh/hUi6XW5+Hc5nvwYAg3MyOIt17mCs3LyzI5ScivaKLRCWa0eE67jQiEJM7JUFk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=YjOFua6a; 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="YjOFua6a" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B163B1F000C4; Sun, 18 Oct 2026 16:18:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792340320; bh=AB0UIEox+I1Z0HVSnZJJdC9yyGDqGvThGuBkoy2fQHY=; h=From:To:Cc:Subject:Date:Reply-To; b=YjOFua6ag0+r2f2rJWpRRz8V63THCMWfPQmuvxn5VOxpFSwQRwsOf7b8R50JCT9LS clKUau0ZLjIhohJS/deshDZdYc57rp9YgMDxi7+Gt4qO2eU2wFE0H82JL6C7+Dx8QF 5Rs0ppRQdmTexvTM7SV3xriCnEMeQVsyE9M9GdWI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98800: bpf: Wait for an RCU tasks grace period before freeing trampoline progs Date: Sun, 18 Oct 2026 17:46:15 +0200 Message-ID: <2026101824-CVE-2026-98800-782d@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=3390; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=wXCLEa42fgwtx7lydkWwsNzB6QcunczFo1MQ6zk4oyQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlXXkZcmHvRwFR3w6e0x3JbDDlT9RxPKiZ8VHnBGq0gf Z41rfxeRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzEaTXDPIMP4V7B3iLVcT4+ j5h5syN1S03VGOZwRdjvz5i76bHbrR0mSter7FWYG5QB 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: Wait for an RCU tasks grace period before freeing trampoline progs When a prog is detached from a trampoline, it is freed after an RCU grace period, or an RCU tasks trace one if it is sleepable. This covers the tasks that are running the prog, since the prog's enter helper takes the matching read lock before the prog is called. On a preemptible kernel, it doesn't cover a task that was preempted in the trampoline just before the enter helper. That task holds no lock yet, and it calls the prog after it was freed: BUG: KASAN: vmalloc-out-of-bounds in __bpf_prog_enter_recur+0x3a5/0x3f0 Read of size 8 at addr ffffc90000055040 by task candidate/110 CPU: 1 UID: 0 PID: 110 Comm: candidate Not tainted 7.3.0-rc2-00014-g15071f2a1263-dirty #2 PREEMPT(full) Call Trace: __bpf_prog_enter_recur+0x3a5/0x3f0 bpf_trampoline_6442509193+0x37/0xf1 __x64_sys_futex+0x9/0x410 do_syscall_64+0xb0/0x530 ... Wait for an RCU tasks grace period before the existing one when freeing a prog that was linked to a trampoline. An RCU tasks grace period only ends once the tasks that were preempted have run again, and bpf_tramp_image_put() already relies on it to free the image. It doesn't wait for tasks that sleep in the trampoline, the next commit takes care of those. Only progs that were linked to a trampoline can be called this way, so bpf_trampoline_add_prog() marks them and other progs are still freed as before. The Linux kernel CVE team has assigned CVE-2026-98800 to this issue. Affected and fixed versions =========================== Issue introduced in 5.12 with commit e21aa341785c679dd409c8cb71f864c00fe6c463 and fixed in 7.2.10 with commit 40955f6512a03f0e046f5256b0706b26ba191018 Issue introduced in 5.12 with commit e21aa341785c679dd409c8cb71f864c00fe6c463 and fixed in 7.3-rc6 with commit 0fb5751a6e411b1b466c06e50021818d9391df98 Issue introduced in 5.10.28 with commit e21d2b92354b3cd25dd774ebb0f0e52ff04a7861 Issue introduced in 5.11.11 with commit 85d177f56e5256e14b74a65940f981f6e3e8bb32 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-98800 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/bpf.h kernel/bpf/syscall.c kernel/bpf/trampoline.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/40955f6512a03f0e046f5256b0706b26ba191018 https://git.kernel.org/stable/c/0fb5751a6e411b1b466c06e50021818d9391df98