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 2FC14495042 for ; Fri, 25 Sep 2026 10:34:03 +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=1790332444; cv=none; b=IVveQ83N0i6kt0uvuR+WEVjjt6Rc8Z7HAWwr+vUnEd1v1GHAhdUMEZ0MJcL+siWashrNDUIZxcheJHfyS8WVjeAJ1+4KZ/bO6fAkn91V8ax8YsVQSYbudBc+MPWOyyfiGlylwVjXa4QAJlEDg/T5P78AD4p9o44Caf951o0lVnE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332444; c=relaxed/simple; bh=N8tOA+0Zsh38wdLuD1sLv2SZrLYiJ9scs5yNOYcIkXI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=dSdsMjN7j7WTiSTIXb8rGkXY54wBVxcEiyfbhlYw5uSY2YT87kbb58XpvDZApK77ST4ngx3yYs3CHcvwiXlFDMd7QZJYMnVDZHgqVjhIXxSp/6mHEibX5wWHDr/n5E5flQd4BJla+N+3vHBaEpA6la2IJlrV035N2id1gnbjXws= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=e0H70UCz; 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="e0H70UCz" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 830D11F00893; Fri, 25 Sep 2026 10:34:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790332443; bh=15Ml3+jooL1hF8ZKllg4e/5CHEC1NDaIt0/gy0AHnDs=; h=From:To:Cc:Subject:Date:Reply-To; b=e0H70UCzqx4bXT8v4L9+HUyDjs5utic5oyGKX+aEbNk96zL9xP+WVlti3ldpHlB0m xVhw2nD9YAPV+ZmcRZ5mgjSNfWDx0PbO2mDLQSBhb0+b6OGfYHlkpqgbL9AWv3l7E0 2CEsiOkHXsIq4lLgshjhwrk/yaaGK1E7x2WfbquA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98037: bpf: Reject untrusted allocated-object pointers Date: Fri, 25 Sep 2026 12:25:39 +0200 Message-ID: <2026092530-CVE-2026-98037-33b2@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=3131; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=oQUp7fgBqNn1vlc/Pp7ImyDdDLHUCtJ+rX13UUsIRf8=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvNOmra86Ys+oe3fFxIDpUucMXO6/uqyzJLxVfcMfy ULJaZLyHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRjRsZFtw89Mg7f6Xu1pq8 i9e8SrM6Vl8RUmRY0OjT+05EfVK+9/23n/3nGfm/drlvDwA= 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 untrusted allocated-object pointers When the final RCU read-side critical section ends, a local kptr is demoted to PTR_UNTRUSTED but retains MEM_ALLOC. The pointer may be NULL or may refer to an object whose lifetime is no longer protected. type_is_ptr_alloc_obj() nevertheless recognizes any PTR_TO_BTF_ID with MEM_ALLOC as a live allocated object. In particular, a refcount-only local kptr never carries NON_OWN_REF, so it still passes the bpf_refcount_acquire() argument check after RCU protection ends. The kfunc can then dereference NULL or stale memory. Make type_is_ptr_alloc_obj() reject PTR_UNTRUSTED pointers. Since type_is_non_owning_ref() is based on the same predicate, graph kfunc arguments obey the same live-object requirement. Fault-protected reads of the demoted pointer remain valid: writes are already rejected, and read fixups use bpf_may_fault_on_deref() rather than this predicate. [ kkd: Rewrote commit log ] The Linux kernel CVE team has assigned CVE-2026-98037 to this issue. Affected and fixed versions =========================== Issue introduced in 6.8 with commit 1b12171533a9bb23cf6fba7262b479028b65e1e8 and fixed in 6.12.111 with commit 092c2874dc1b2060fa77a465a971acd4fdf87683 Issue introduced in 6.8 with commit 1b12171533a9bb23cf6fba7262b479028b65e1e8 and fixed in 6.18.53 with commit 135d542b97fa93e32c457d49d6e7b33ca7d05bae Issue introduced in 6.8 with commit 1b12171533a9bb23cf6fba7262b479028b65e1e8 and fixed in 7.2.7 with commit 6b1f786ad85a0b63393b76f5e634deab1a73198c Issue introduced in 6.8 with commit 1b12171533a9bb23cf6fba7262b479028b65e1e8 and fixed in 7.3-rc2 with commit 7441ee8276641bddaf1cba7bb75ef9c1458ceb3b 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-98037 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_verifier.h 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/092c2874dc1b2060fa77a465a971acd4fdf87683 https://git.kernel.org/stable/c/135d542b97fa93e32c457d49d6e7b33ca7d05bae https://git.kernel.org/stable/c/6b1f786ad85a0b63393b76f5e634deab1a73198c https://git.kernel.org/stable/c/7441ee8276641bddaf1cba7bb75ef9c1458ceb3b