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 017D9451985 for ; Fri, 9 Oct 2026 07:34:57 +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=1791531299; cv=none; b=KrQ5lqSK2QgGw7TyghUxV8XI42q9jA8FGlhRTrCE2r4eTA+1CY4KsQs3aSKZjT1Ew24D/cjx0g5Ah8EWeSJ/U3dAvR13n2Ji/hi3fFVCzzlwzxXIZjs/KyPVWGpD6A7Efqps6ZdQH+F7rkTyM8aFBaeG/mo3LO/eMFL7CvyotgQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791531299; c=relaxed/simple; bh=ZhYOrPfC40xPfHmHgNNRDi8tKlC+QKfx6szGVc5pbrE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=LQ6ikOz3FwtDUIxRQW+R5JjzbxOXMSNagl6aBvgVizS4M7OvH+KRrevPjt7NtDckfKETJbTDyfHa43bRzHbWYV93ZMBIcIEEUwpAccKzbL4FQ0cjuvhCQU9BokjOPW77bJLkUbcJsXxDX0Yp0YGBZFt8YILpp6gSW2S2971bZRM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Fx3YfsQr; 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="Fx3YfsQr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EC1FC1F000FF; Fri, 9 Oct 2026 07:34:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1791531297; bh=/K2VUCRUr1XYwY1Iom2tCpLRTm4riEvTxUozztAkNFA=; h=From:To:Cc:Subject:Date:Reply-To; b=Fx3YfsQrtqp25S9utsQWh3Ua/9hV9JIPMO/2AiZbyeAfz8vV1MtRNaBXpC4lfr61B OqsVG7McghiHN0pOpn57ZWeqGCVIOsRKgKKqdRHJd9UNDxeF69ephlP+kRqgJtENY5 4GtMRgv8mlTV8MVKWyFAFmBn8SWHmT3hlJdQuf6E= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98382: bpf: Reject dev-bound-only programs on other devices Date: Fri, 9 Oct 2026 09:34:23 +0200 Message-ID: <2026100918-CVE-2026-98382-398f@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=3811; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=M+Fu7urlbGT5GReOteLoxVJ9WZTo8uQyQijRsE9gwr4=; b=owGbwMvMwCRo6H6F97bub03G02pJDFknZvyq86uVV+usmvl0w71Tb68KnDn6yICJ5WKjTc5Vv RbRK6cmd8SyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEBBMY5kctX2y2kiOxZbZy 85FJJ4Iqdbb/qwaKOkw6dcU8Lfb1qboJ7Caupfuf3HcHAA== 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 dev-bound-only programs on other devices __bpf_offload_dev_match() falls back to comparing offdev pointers after an exact netdev mismatch. Bound-only programs normally have NULL offdevs, so unrelated netdevs compare equal. A bound-only program on an offload-registered netdev can instead inherit a real offdev and match a sibling port. With CAP_BPF and CAP_NET_ADMIN, a caller can use bpf(BPF_LINK_CREATE) with a different target ifindex to run metadata kfuncs specialized for the bound driver on the target driver's xdp_buff. Running a veth-bound program on tun reads beyond tun's bare stack xdp_buff as a veth_xdp_buff. Oops: general protection fault, probably for non-canonical address KASAN: null-ptr-deref in range [0x0000000000000010-0x0000000000000017] RIP: 0010:veth_xdp_rx_timestamp (drivers/net/veth.c:1673) Call Trace: ... tun_build_skb (drivers/net/tun.c:1739) tun_get_user (drivers/net/tun.c:1856) tun_chr_write_iter (drivers/net/tun.c:2091) vfs_write (fs/read_write.c:595 fs/read_write.c:687) ksys_write (fs/read_write.c:739) do_syscall_64 (arch/x86/entry/syscall_64.c:84) entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:121) Kernel panic - not syncing: Fatal exception in interrupt Restrict non-offloaded programs to exact netdev matches and retain the shared-offdev fallback only for genuinely offloaded multi-port programs. The Linux kernel CVE team has assigned CVE-2026-98382 to this issue. Affected and fixed versions =========================== Issue introduced in 6.3 with commit 2b3486bc2d237ec345b3942b7be5deabf8c8fed1 and fixed in 6.6.158 with commit e57f04194361574493e3e6cf0b9e9c69e4ae9791 Issue introduced in 6.3 with commit 2b3486bc2d237ec345b3942b7be5deabf8c8fed1 and fixed in 6.12.112 with commit 0dceda331180617aeeb22381e8480b37f18ba08b Issue introduced in 6.3 with commit 2b3486bc2d237ec345b3942b7be5deabf8c8fed1 and fixed in 6.18.55 with commit 940b626854de200e6187777d42114727daca617c Issue introduced in 6.3 with commit 2b3486bc2d237ec345b3942b7be5deabf8c8fed1 and fixed in 7.2.9 with commit bb375f3c5990e29851894f20ebc4b9dbc6676126 Issue introduced in 6.3 with commit 2b3486bc2d237ec345b3942b7be5deabf8c8fed1 and fixed in 7.3-rc5 with commit 6db1ce73e9853f533eb7f413f14ba00f8ec6f80d 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-98382 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/offload.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/e57f04194361574493e3e6cf0b9e9c69e4ae9791 https://git.kernel.org/stable/c/0dceda331180617aeeb22381e8480b37f18ba08b https://git.kernel.org/stable/c/940b626854de200e6187777d42114727daca617c https://git.kernel.org/stable/c/bb375f3c5990e29851894f20ebc4b9dbc6676126 https://git.kernel.org/stable/c/6db1ce73e9853f533eb7f413f14ba00f8ec6f80d