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 3471D495514 for ; Fri, 25 Sep 2026 10:35:04 +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=1790332505; cv=none; b=KZeoJT93oD7Zvr2Opsh55/LsXMcDmeG6Rs91xABhfD/4vdg6YKPIq/F7iGU1ZRjZGuV4fOP6ZIfupreO/FglFHiUJALbETVe6fUgN9eFSGheBE6/nYGK36sH2UWh4hIcceygTYQ8Ag6gkzvJ4dd+N5h802nFVKPYq/oC1QTdU9w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332505; c=relaxed/simple; bh=gTlPVvlWcTInLsHWx5awG6ZapzbBNzxbZwNTMlIAQHU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=NZBunNEGj2P4g6543Pg07HdkKkED/ImZxBD62OVuE0vr+PCA28BYvq4ghkyj+rEvATO/3A6WwI7V7JpsIMQ0F2ovTgAiTej+c5PThKKs9mt51Hn2gQK+8OMw8Hnd8iRl7Yt5cyREFIGBhdQHPP2FWGnUJKf3q49FniSgNzpNLBk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Woc99R74; 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="Woc99R74" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 223561F000FF; Fri, 25 Sep 2026 10:35:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790332504; bh=sVnitF5lNGyHsfkZst2UbwubqYxtjvo9eroZt9Uh+r8=; h=From:To:Cc:Subject:Date:Reply-To; b=Woc99R74KVYdLINyICOZ2D2+l+r9oXohJ4GuFzxfNAlxMaynCk/xGh7s3NJ7WTam3 6US7NmyAiTxuKnVlZ8gPKAWkEnacAYvTw5YWJfAq/Ii3eb5Y1F8gFN+A0nHL27E/hk FplPN7mfYtvL/6E1Z8QXzPoQZ36yj8sG1ZPZf0LM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98060: bpf: Reject resilient lock operations in rbtree callbacks Date: Fri, 25 Sep 2026 12:26:02 +0200 Message-ID: <2026092534-CVE-2026-98060-1205@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=2776; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=3VEpdKUIDaD/yk9Ea/b2VrIImOzN6y+C9Ut5OZQnAUc=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvLOetByP4zslbpvfKn9xia0Vh5564utXV1/s3Cl+L mpR58wXHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRFaUMCzZGSN1olq0T2JO+ 0Plp8MlZty5aWDEsWCgdu4vx5rnGKzZlu+5wG2+0kIx8AwA= 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 resilient lock operations in rbtree callbacks __bpf_rbtree_add() keeps parent and link pointers live across calls to the program-supplied comparison callback. The verifier therefore requires the root's lock to remain held throughout the callback. The helper path enforces this rule for bpf_spin_lock() and bpf_spin_unlock(), but the resilient lock kfunc argument path does not. Since resilient locks may protect BPF rbtree roots, a callback can release the root lock and let another CPU remove and free the node referenced by the in-progress tree walk. The walk then resumes using freed pointers. Reject resilient lock kfuncs in an rbtree comparison callback, matching the existing policy for the spin lock helpers. Resilient-lock-protected trees remain valid when their comparison callbacks leave lock state alone. The Linux kernel CVE team has assigned CVE-2026-98060 to this issue. Affected and fixed versions =========================== Issue introduced in 6.15 with commit 0de2046137f976e7302d43ac01d9894d07ac1fff and fixed in 6.18.53 with commit cc2e065ed206aecd9b94564779244f3ffb26e356 Issue introduced in 6.15 with commit 0de2046137f976e7302d43ac01d9894d07ac1fff and fixed in 7.2.7 with commit 71930202a0a0c49f0a3b45b41907a074cb780266 Issue introduced in 6.15 with commit 0de2046137f976e7302d43ac01d9894d07ac1fff and fixed in 7.3-rc2 with commit 7b7b8b5960102566bd625ae829d1f330c5b5d104 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-98060 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/cc2e065ed206aecd9b94564779244f3ffb26e356 https://git.kernel.org/stable/c/71930202a0a0c49f0a3b45b41907a074cb780266 https://git.kernel.org/stable/c/7b7b8b5960102566bd625ae829d1f330c5b5d104