Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1792595448; b=I1AhYJax96V3P11iN3GgCSPqyDh9Wk/kzbuCgozHCTf6YMV2aowSIHAf02wHUnu9wVSm QmpExjJc9o1JgxCcnWQXWrRsoZQB4/1cJrwKMe1NCJY6+iRYxC1vp+ppv72utlgsXQR6b 4PbFd0aOnvaHmk4ROgOVqpUUV8Vj1IwBxKEpQtQW3qCvfrP/Wi4NolOG5fhT1RqKFrFcx y34dcvdNYKNGUOlMmFGkOn5OJx6cyHWwGIMSVkIVUo1miBmsOtCgRfvIEvmAKAmzHV772 lkw1epzWS575j0mppGtYKNdVB+3pfpJi/seuJdWfGqZ/8DX7R3nsZb8S5knnn3aRfBQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792595448; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=QW27PwMm/TPGdvTXYpkjaLuxPTSHovLJAlbdTFtp3iM=; b=cBNU8qLPaOFIELjR0sBfoxc+iDZ2/m7Nx3XmybpzufWYvcRLkkZ6SSOY+5M2XNB0WIje wVvipnqkzKzI502amyEIKo3yo8JiF/7oxmG5qh6jEG10vWhTv8Z1gvBi+ojknDNzVutVw gNUY21vgRC/TYX0mLaVPvW5B3YK2OLA3z4eqlmfVUCh+dPuA88X6NmOto9M2TtLXAshOj 0vQT+xVtHNtxI4G32qFA91AM8vpOR2HSXqRy0A5W+XJVGcaumbJbjPTCeEjpMtq05Yiyy TVADfMhenanLemgptkrchHJfawWlbdHAaEZyCHbudjLDacwfAVk2rHAljF6oWlkrW8Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=jR8gThQN; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7F77F606A333 for ; Wed, 21 Oct 2026 15:10:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=jR8gThQN Received: by smtp.kernel.org (Postfix) with ESMTPSA id 87D9C1F000CF; Wed, 21 Oct 2026 15:10:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792595448; bh=QW27PwMm/TPGdvTXYpkjaLuxPTSHovLJAlbdTFtp3iM=; h=From:To:Cc:Subject:Date:Reply-To; b=jR8gThQN++Vb4Aluo3NBU4b0z1o20IYQ8cfUAhxpHq9EWvaZLaCaRdYPGViH9RMD7 lRqiaan+ZHKw9xzEJFQnUpcRQJxlRIA9dVk9ChB/4uSlyR++aeHnIyU4N4J+Qxjm4A iu04AuPbukgVoIK/hPy7VqPzF8mbJxGfpXqoZBkI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98869: bpf: Infer zext_dst based on static register liveness analysis Date: Wed, 21 Oct 2026 16:55:13 +0200 Message-ID: <2026102112-CVE-2026-98869-b205@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=4787; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=pbU3fAskW57IAdqfxr7k+cNRmEoDpf44Qt6kpG3KI9s=; b=owGbwMvMwCRo6H6F97bub03G02pJDFk3LgVM9SvWrKoLdpeLyGafJpTYI/Fae4u7konOrYknD VRZLHw7YlkYBJkYZMUUWb5s4zm6v+KQopeh7WmYOaxMIEMYuDgFYCK9agzzfaynOVV92XDc3ynr 2jIlFfMbLOIyDPOz9y35Hp4/92DGqaDLG5XOObEs0SgEAA== 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: Infer zext_dst based on static register liveness analysis As reported in the thread [1], the verifier's 32-bit operations zero extension logic is broken. This logic is responsible for correct semantics of 32-bit operations on s390 architecture. According to BPF semantics, operation `w1 += 1` is supposed to zero extend the upper half of the register `r1`. On s390 the JIT relies on the verifier emitting explicit zero extension before such operations. The verifier attempts to minimize the amount of zero extensions inserted by tracking whether upper halves of the 64-bit registers are ever used. Previously such tracking worked as follows: - bpf_reg_state->subreg_def field was set by do_check_insn() for each operation defining lower but not the upper halves of the register. - Whenever an operation reading the whole register was verified, the verifier checked register's subreg_def and set bpf_insn_aux_data->zext_dst flag as true via a call to mark_insn_zext() function. - After the verification was complete, a special pass bpf_opt_subreg_zext_lo32_rnd_hi32() extended 32-bit operations with bpf_insn_aux_data->zext_dst set as true by adding explicit zero extension. Note that the logic above relies on bpf_reg_state->subreg_def, which is a property of a current verifier state. Before the commit [2] two additional steps happened: - The verifier tracked upper and lower register halves' liveness as flags REG_LIVE_READ{32,64} in bpf_reg_state->live. - The function propagate_liveness() called mark_insn_zext() in order to transfer the knowledge about which registers have their upper halves alive (and thus might require zero extension). The commit [2] removed the two steps described above, hence making possible a situation like below: - The register's upper half is set and is used on some verification path P1 and the register happens not to be marked as precise. - The checkpoint C is created while processing some instruction between register initialization and usage. - On some other verification path P2 the register's upper half is not initialized and that path ends hitting the checkpoint C. - In such a case the register's initialization on path P2 would lack zext_dst mark, making it possible for the program to inject an arbitrary value in the register's upper half. This commit replaces subreg_def based logic with computing zext_dst statically, as a part of the bpf_compute_live_registers() analysis: - The analysis now tracks usage of upper and lower halves of the registers separately. - If some instruction defines a 32-bit subregister, but not the whole register, *and* the upper half of the register is alive after that instruction, the instruction is marked as zext_dst. There is one notable drop in precision: whenever a BPF subprogram is called, all 64 bits of parameter registers are presumed to be used. The assumption is that such a drop in precision would not inflict a noticeable performance penalty. [1] https://lore.kernel.org/bpf/CAGKGUv=sOuqQtA1Ub-5JXfA4FPosJFYKAQE4B79cK+P1erxqtg@mail.gmail.com/ [2] commit 107e16979905 ("bpf: disable and remove registers chain based liveness") The Linux kernel CVE team has assigned CVE-2026-98869 to this issue. Affected and fixed versions =========================== Issue introduced in 6.18 with commit 107e169799057bc6a379ddb625cbe1e51cfc7d72 and fixed in 7.3 with commit 7ce090afbf725e25fff29caacce1eaf8459b1117 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-98869 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 kernel/bpf/fixups.c kernel/bpf/liveness.c 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/7ce090afbf725e25fff29caacce1eaf8459b1117