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 2A2513AFB19 for ; Fri, 25 Sep 2026 10:35:26 +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=1790332528; cv=none; b=bt5QhwBjUF/VEgj0nIMs++hdvytGEjGkip2rvscDqRQ9C3R0izYVHU61I/gxzbAynatsbKyLK7WJOjhPS8veTfiuHsN/X1ZbPOhw0a7zJp3jft0aybi5kvJ/dYWcX6VSDOTvjoM30yzjrH5PNE8tfqhYBSHaqkawODgwG2EKsRA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332528; c=relaxed/simple; bh=RhZufD6csAqvN7W81ewG2nF9dpqb2gsTRNFuf9MlFHw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=i2gU7ixFbxO/s+wstfFtxEdwuCbKj6MrhOLHyEToK0SiqgyOXlXkbq1E1RzfgHwfp/UtFi575R4xVIEiR8PHy73E92Fc0VpDhFPT1fpDDCgQRrM7sWKm40Hza7AKjLYGahXi8hBnovG7UXG5TBvDbjC999PidWeoHlzdZd8cTGo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=R2vF/xJO; 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="R2vF/xJO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5E2A71F000FF; Fri, 25 Sep 2026 10:35:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790332526; bh=3AybB/+PKtVDI7avZnoOcMav/B4S6GpSB7eMJi7068U=; h=From:To:Cc:Subject:Date:Reply-To; b=R2vF/xJOWJV88pnq0qiStDTvMap6X4rTqKd0wZQeDONtaeiEAez6qeb8KnY3RDI9K zONJyaQwG8+WTYFX0jmGguJK8tgdhSaEv/XdMu5U/QQsoWK1uKkpOt5XVjeRM0QVeG 8mxpwxKTeKcf7Ea7y+7qar9h0uS7HA6zA1GM47QA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98041: bpf: Don't predict JMP32 pointer vs zero comparisons Date: Fri, 25 Sep 2026 12:25:43 +0200 Message-ID: <2026092530-CVE-2026-98041-0e2b@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=2658; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=nh9Gt4zP7UAthiELapwgzPJogUZ6mcKJTJClHxpatBE=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvNPU/s87ciI/yP/vm4DFO5rm1jCaKpgwHPi3nH/b4 ZgfUrGCHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjAR6WCGBat2xCzoay+fc1bF 8WusQsdh/ldhNxkWLPnAu89e3Nk2lPHVtuDOD0qzH3P6AwA= 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: Don't predict JMP32 pointer vs zero comparisons Consider the following program: r1 = map_value; /* low 32 bits are zero at runtime */ r6 = 0xdead000000000000; if w1 != 0 goto l1; l0: r1 += r6; r2 = *(u64 *)(r1 + 0); exit; l1: r6 = 0; goto l0; At the moment is_branch_taken() reports the jump as always taken, because it does not distinguish between BPF_JMP and BPF_JMP32 comparisons when processing 'if w1 != 0 ...'. The Linux kernel CVE team has assigned CVE-2026-98041 to this issue. Affected and fixed versions =========================== Issue introduced in 5.8 with commit cac616db39c207dc63465a4e05c6ce0e60b2cce4 and fixed in 6.12.111 with commit d16f0eafcaa62e677a2b5b0dabc1f8d31dfe3d4d Issue introduced in 5.8 with commit cac616db39c207dc63465a4e05c6ce0e60b2cce4 and fixed in 6.18.53 with commit e2ae33247e8b2dbe9d116d3e61cadf6d548339c6 Issue introduced in 5.8 with commit cac616db39c207dc63465a4e05c6ce0e60b2cce4 and fixed in 7.2.7 with commit a4d7f94c1ca914469ced665ec2f98be669aef462 Issue introduced in 5.8 with commit cac616db39c207dc63465a4e05c6ce0e60b2cce4 and fixed in 7.3-rc2 with commit e51179a4e09846f8fd0f26a05068520de2b301bf 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-98041 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/d16f0eafcaa62e677a2b5b0dabc1f8d31dfe3d4d https://git.kernel.org/stable/c/e2ae33247e8b2dbe9d116d3e61cadf6d548339c6 https://git.kernel.org/stable/c/a4d7f94c1ca914469ced665ec2f98be669aef462 https://git.kernel.org/stable/c/e51179a4e09846f8fd0f26a05068520de2b301bf