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 C86A0496D2A for ; Fri, 25 Sep 2026 10:36:35 +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=1790332597; cv=none; b=fbTiod7A848WlfeIwUOeagjPtAAu8yfDDmLAmXhe/N77waS+VXqd1yPAxiHBcr2p+F/1FS5/eO9bOxh1kGZjwTDIep4KtS6s8dKaXq4Xz9wG2AaH0rFGbxvIDpAe5GggXDwPpPrSW4xrY2NuZIGK34JDjZcbogufDrNaNxTjABc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332597; c=relaxed/simple; bh=r00ndfHoeRtEx43CVDTq+gkzzT0J6QiBvEg3lMl955Q=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=fsJVQhLJj9r4l+YRc6NjQycdOctPsPzgkbtxYkz7OCFp/TLSwNv5yl8HGJTrO21U6AX2FDQ0w6PmyOJLvfFJEyzlZkb0zBfTGEYgzjDDBw3XFxGXSr1ka8agMVzPeWS8LWyD54v9jRtNdJcubq1A6T6/hcyp68553T8KQ5yIX0Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=A/tcZ/df; 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="A/tcZ/df" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 26FD21F000FF; Fri, 25 Sep 2026 10:36:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790332595; bh=4ZJoSUTWjZbwcEGZNXWhAH9BxQs+oBjBg5mMPOzJUds=; h=From:To:Cc:Subject:Date:Reply-To; b=A/tcZ/df2P9uRu01bOLTwlxa7CJcVXEj5e9WGVkA4jsy2lYit8yZBxu3gyrFGp636 36InVkWZIlGp9MdwGt03fDEAIls3inpwEKmMYhflNpb6OGPh3rZjbkeBNY1E7vH/mV b9REYqgYWnk3aE3rw0TiN18WcHFj1fk+pJQGjFjY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98047: bpf: Check ancestor frames for rbtree callbacks Date: Fri, 25 Sep 2026 12:25:49 +0200 Message-ID: <2026092531-CVE-2026-98047-c9f4@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=2872; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=UzS185hu7Ne8pjlJCw4iEBzXh0BlOaQFoc97hYVAwRM=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvNNZVr7u4npR29Db9v2Jd/16mfjwj7m7p0xP7WtI0 Zf9skCyI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACaiw8Iwm4XhkGFPRdmz13U1 vGcD18p72tzazjCH28J/5r/XW45/yxG9MVPtxC1rbzU9AA== 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: Check ancestor frames for rbtree callbacks bpf_rbtree_add() invokes its comparator while the caller holds the root lock. The native insertion code retains raw parent and link pointers across the callback, so the verifier prohibits unlocking, consuming tree nodes, or changing RCU state from that callback. in_rbtree_lock_required_cb() only checks the innermost verifier frame. Static subprogram calls are permitted while holding a spin lock, and such a call pushes a frame without in_callback_fn set. Consequently, all callback restrictions disappear in the nested frame. The subprogram can unlock the tree, remove and drop the node being compared, then relock. Native insertion resumes with the stale parent pointer and links freed memory into the tree. Walk all active frames for the rbtree callback instead. Benign static subprograms remain permitted, while callback restrictions follow execution into nested frames. The Linux kernel CVE team has assigned CVE-2026-98047 to this issue. Affected and fixed versions =========================== Issue introduced in 6.9 with commit a44b1334aadd82203f661adb9adb41e53ad0e8d1 and fixed in 6.18.53 with commit b545fa447e09e6844868deb2bee228827fe54d15 Issue introduced in 6.9 with commit a44b1334aadd82203f661adb9adb41e53ad0e8d1 and fixed in 7.2.7 with commit 2410cb2ac0416dd2795a81984c8c73d7250bd8c4 Issue introduced in 6.9 with commit a44b1334aadd82203f661adb9adb41e53ad0e8d1 and fixed in 7.3-rc2 with commit 369f4ce734570bdfedaa4b5ca50e2a3f6a892728 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-98047 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/b545fa447e09e6844868deb2bee228827fe54d15 https://git.kernel.org/stable/c/2410cb2ac0416dd2795a81984c8c73d7250bd8c4 https://git.kernel.org/stable/c/369f4ce734570bdfedaa4b5ca50e2a3f6a892728