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 1C2B0496D25 for ; Fri, 25 Sep 2026 10:35:50 +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=1790332553; cv=none; b=DUWCnarlgncjZQJgFC3lQu+G6x/9pfnHCVmb+AeuzoVXr4cxy3xOlVpZgdO1wE+AWrC/hc0OlSX10kqs1gZ6mqPXSoq+4kRxSZoFfOJvy9LuESuSkH4pZD1dpuhlSXbAOhtyp/qUzimYBypVElspYok/je9DaeUsB4LS714aLbw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332553; c=relaxed/simple; bh=qQqqMhdCgVc7pa/D6gybtAA3FUbIJzoBf1SmkqRdEx8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=KtN6dsBgalqFOiN/d4aDCkj6U7/pK7l84NjwAbIbsgAnInayEaTsuBhJ1qDvM1moi1C6h3zMdOnaAYvHDDm9kQeBCPn3GjEmEZ/MB+TwibSBC2JXMK7DjZmy44I7R+0Jmv6s6RHOARJj+hOLeC8jJ7ztkorh9YYaQwHBo+EroNY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=E/Lm0rGb; 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="E/Lm0rGb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6F3331F000FF; Fri, 25 Sep 2026 10:35:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790332550; bh=ElK4l5kWHE8HcATa1pI6CT2f2kiEU/JfOuVNeZZCghg=; h=From:To:Cc:Subject:Date:Reply-To; b=E/Lm0rGb51HP9wss6AhoChSJL4NRyxEaY4sa0REZPVfXLSEVWdkOH7yI0m5ZB91xI ZOl26aG+0gHkOcI8C5Xf7bR3k3U33lVy1Y1+c+tcCDEA88rDQeeijZUosQT8YrTYJS 4+/xKk+zubWfTnZyR6yfnSv4xycEYjQiKyQf14As= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98075: bpf: reject BPF_PSEUDO_FUNC reference to the main program Date: Fri, 25 Sep 2026 12:26:17 +0200 Message-ID: <2026092537-CVE-2026-98075-02b7@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=2901; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=07VPvlZqhEst8du4GGns2ik1IDJFVqadtqKx6iAVteE=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvHPTLpxjdnn3MEO5jfWZl/JO3r8vWc8enBA9/ZewK H9qW+nrjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhI426G+QH/Nx/49viJWP7K fIt9S9NUvoprsDDM4W52PHD8lPn6hacEAhVZd/nWnHVmAgA= 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 BPF_PSEUDO_FUNC reference to the main program fixups.c:jit_subprogs() rewrites BPF_PSEUDO_FUNC loads to contain real function addresses. This function is invoked from bpf_jit_subprogs() only when env->subprog_cnt > 1. Meaning that for any program like below: int main(void *ctx) { void *ptr = main; ... bpf_timer_set_callback(..., ptr); ... } The 'ptr' won't be ever converted to contain an address. In combination with e.g. bpf_timer_set_callback() this would lead to a function call at a bogus address. Instead of complicating the implementation, just assume that no useful program needs main to be a sync or async callback and reject BPF_PSEUDO_FUNC loads for the main subprogram. The Linux kernel CVE team has assigned CVE-2026-98075 to this issue. Affected and fixed versions =========================== Issue introduced in 5.13 with commit 69c087ba6225b574afb6e505b72cb75242a3d844 and fixed in 6.12.111 with commit 118212417ba0120d99f84154799f8880f07411f4 Issue introduced in 5.13 with commit 69c087ba6225b574afb6e505b72cb75242a3d844 and fixed in 6.18.53 with commit d6c39774ae093c9f7009cc4ae918f18fc1af7ae7 Issue introduced in 5.13 with commit 69c087ba6225b574afb6e505b72cb75242a3d844 and fixed in 7.2.7 with commit 92f0bd0e2b632c6565ac2214a4d7d2ed37e5b9f6 Issue introduced in 5.13 with commit 69c087ba6225b574afb6e505b72cb75242a3d844 and fixed in 7.3-rc2 with commit 374b2c5561db80fcdd7cdce44af37a49416f61c7 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-98075 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/118212417ba0120d99f84154799f8880f07411f4 https://git.kernel.org/stable/c/d6c39774ae093c9f7009cc4ae918f18fc1af7ae7 https://git.kernel.org/stable/c/92f0bd0e2b632c6565ac2214a4d7d2ed37e5b9f6 https://git.kernel.org/stable/c/374b2c5561db80fcdd7cdce44af37a49416f61c7