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 6415D4968EE for ; Fri, 25 Sep 2026 10:36:24 +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=1790332585; cv=none; b=bFLWrNgclbYhzJ9gy8Nn2xYdJH8Qvzbfv6IramPZH2suInBX6ECg06qtji6pNUSnBRGKYIF9bwtA+SC0aRv+QAFUdJbNOE9ICiTfifkVOMLUZ7zEQX2kKYNT2VziaN+EK1O2Yc2y8AkG8ky0j5VhXpM0sujTqS8xZkMLhDT1+kE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332585; c=relaxed/simple; bh=yerAy27Cnyqu8BcjPjoridix0JFI4DFXRbR9OfE8bZc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=WdrsXc9OzDwVRKKooti17fBGEAqFFzoReEmL0UMNwMmHDjUoFcJsDLYvm38R0OsUFNh1nEt8Al8xjtUqcOl1fA3/qkZethSECpWk9IEMN/63G81WRO3+G/3TJP8igIasmzxkpXfVMz/V43dbkpdXTEv/7B234vdjqZxbhWAr+Sk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=wHGGxYNe; 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="wHGGxYNe" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BE3CB1F000FF; Fri, 25 Sep 2026 10:36:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790332584; bh=3k+OuvAifwb76rPT7pmiWMG4Qh4Ir7Kjc63UkpgNuoA=; h=From:To:Cc:Subject:Date:Reply-To; b=wHGGxYNevzEnmqg/zCSj+mm6M9EAdD5yWDl15IqAra38QV3u8lOuZEeSvBINhabZP 4IWkhpB2dBitZe5VQ1zC1K2Qm8lQ5OzHqci6YHPZIYCTrmDDnW6JDmb3i5SCxeS/Y7 JwPphtca8/9kdk6IsThEvWrI3r++BZQ7pvLYWMzQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98043: bpf: Don't infer non-NULL from a pointer with an unbounded offset Date: Fri, 25 Sep 2026 12:25:45 +0200 Message-ID: <2026092531-CVE-2026-98043-6282@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=2751; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=6NP8BqDEhyv8cet0fP3hPK9OtwcIIzxNFXPdSRHo8Yc=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvNMlXtZz1txnt1Ne/vXpwcxpvxzyTs6La3fIW3dzp toayxL2jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjI1osM8wMaJO9O08qITo7z O353xRvdtY3HTzMsmLzK18Q6dUuvzq07iwLWzjXr4VwiAgA= 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 infer non-NULL from a pointer with an unbounded offset reg_not_null() decides that a register holds a non-NULL value by looking at its type alone. For pointer types that allow arithmetic the type only guarantees a non-NULL base, in case of an unbound offset the runtime offset value might still add up to NULL. Consider the followng program: r6 = bpf_map_lookup_elem(map, &0); /* present */ if (r6 == 0) return 0; r7 = bpf_map_lookup_elem(map, &1); /* absent, NULL at runtime */ r8 = r7; r8 -= r6; /* pointer - pointer: unknown scalar, -r6 */ r8 <<= 1; r8 >>= 1; /* any non-negative offset is accepted by */ /* check_reg_sane_offset_ptr() */ r6 += r8; /* verifier: map value; runtime: zero */ if (r7 != r6) return 0; *(u8 *)(r7 + 0); /* r7 is inferred non-NULL, both are zero */ At runtime both registers are zero, the comparison is true and the load faults with NULL pointer dereference. Require the offset to be within +-BPF_MAX_VAR_OFF in reg_not_null(). The Linux kernel CVE team has assigned CVE-2026-98043 to this issue. Affected and fixed versions =========================== Issue introduced in 5.8 with commit cac616db39c207dc63465a4e05c6ce0e60b2cce4 and fixed in 7.2.7 with commit cb6642048739bf4ee5aa09fe465511f1e87caa63 Issue introduced in 5.8 with commit cac616db39c207dc63465a4e05c6ce0e60b2cce4 and fixed in 7.3-rc2 with commit 67b529f521a6676cdfc78b91b0217d7eaa84216b 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-98043 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/cb6642048739bf4ee5aa09fe465511f1e87caa63 https://git.kernel.org/stable/c/67b529f521a6676cdfc78b91b0217d7eaa84216b