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 C7E403914F8 for ; Sun, 18 Oct 2026 15:35:25 +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=1792337727; cv=none; b=BLP1RlHqCbQNOgX0vBSrOL2L74A2XBP9FkimwSH23fTb0Xy7Q337LAk9Rm65u2cqUYPWhTWbykLZuZJC0HWhg+RdeIXtNSK/VhtRjX1LueEeIMrwBT7YOWKet8oYnVvIA2/zO4XZIfwHmr6IKF79lcau03LMir7xjSXlKmxt4Cc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792337727; c=relaxed/simple; bh=2bsBKihaWzAdx9VcqaqVf820oKkkVy0okYYgWYI2cEg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=gC48BpU2RA/xXKR3eW/fcS9F8APD7UBQYSRQFvbxEkA+Mt4h9DEK54aBNDkLjel8H6YGtDrjLlzUAGxsQQFLbCijePFS0ILy+1mkUtZtYmBO2nGT3leLTKFgue2ZVzETPuwILcaX9G+sxPnlTt85soHIJykzA/tCeeDGJtGj+I4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=O+EZlKxT; 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="O+EZlKxT" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 918611F000C4; Sun, 18 Oct 2026 15:35:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792337725; bh=pyYQUAGO8af7BMn4Mv3k9ESsdVbRAbhUvO5dbjHwZh0=; h=From:To:Cc:Subject:Date:Reply-To; b=O+EZlKxToiEAzV4HUX4gMKGvjyaNNfiUw1Md/7j56xVZ74zE/rLPCow6rtv5uwYw2 Q8MT+LAXc+8xsP9oL7uoM8VMDtIu2JkZljtng4/p7fzAvcdwhjh0ppspyOYIiwJYiz EzC+5HMoinjxQSVouoKtR5ju/YrWko3XPOevgiSE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98628: bpf: Make post-verification instruction rewrites killable Date: Sun, 18 Oct 2026 17:18:12 +0200 Message-ID: <2026101843-CVE-2026-98628-62d8@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=3045; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=e5axyjc1g+A6algMGEGXKJgHkhd7fZzawOo1yfyqDWw=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlXHs3n+NGyPOCYiyNT+icVGbb0RpdkvzLx+bp797as1 rgiu42/I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACaSfp5hwYkKcwkn9q2CO/ql OaZ8yv/z5USaAcM8S2vbkKBYzxep/GuOO/2aYyq1/VkrAA== 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: Make post-verification instruction rewrites killable After do_check() returns, the verifier runs several instruction rewrite passes. Some of them patch or remove one instruction at a time. Each operation moves the remaining instruction and auxiliary-data arrays and adjusts all branch offsets, making the overall work quadratic in the program length. A privileged loader can submit 131072 unconditional jumps by zero followed by a valid return. Verification finishes quickly, but bpf_opt_remove_nops() then spends a long time removing each jump separately. Since this post-verification work neither checks for signals nor reschedules, a pending SIGKILL cannot terminate the task until the rewrite finishes. Make bpf_patch_insn_data() and verifier_remove_insns() common cancellation and rescheduling points. These helpers run from BPF_PROG_LOAD process context, and bpf_patch_insn_data() can already sleep while reallocating auxiliary data. Report interrupted constant blinding as -EINTR and propagate it through both JIT paths, including kernels that permit interpreter fallback. Other blinding failures retain the existing fallback behavior. This does not reduce the quadratic cost of the rewrite passes, but it makes the work preemptible and allows a killed loader to be torn down promptly. The Linux kernel CVE team has assigned CVE-2026-98628 to this issue. Affected and fixed versions =========================== Issue introduced in 5.1 with commit 52875a04f4b26e7ef30a288ea096f7cfec0e93cd and fixed in 7.2.9 with commit 56dc616d7a1f7d134d3e101c455e62b0a24d0cfd Issue introduced in 5.1 with commit 52875a04f4b26e7ef30a288ea096f7cfec0e93cd and fixed in 7.3-rc5 with commit 261b61d3735b042ae25634f795c4540be0fc140c 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-98628 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/core.c kernel/bpf/fixups.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/56dc616d7a1f7d134d3e101c455e62b0a24d0cfd https://git.kernel.org/stable/c/261b61d3735b042ae25634f795c4540be0fc140c