{"id":"CVE-2026-98382","aliases":["CVE-2026-98382"],"related":[],"kind":"vulnerability","state":"published","title":"bpf: Reject dev-bound-only programs on other devices","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Reject dev-bound-only programs on other devices\n\n__bpf_offload_dev_match() falls back to comparing offdev pointers after an\nexact netdev mismatch. Bound-only programs normally have NULL offdevs, so\nunrelated netdevs compare equal. A bound-only program on an\noffload-registered netdev can instead inherit a real offdev and match a\nsibling port. With CAP_BPF and CAP_NET_ADMIN, a caller can use\nbpf(BPF_LINK_CREATE) with a different target ifindex to run metadata kfuncs\nspecialized for the bound driver on the target driver's xdp_buff. Running a\nveth-bound program on tun reads beyond tun's bare stack xdp_buff as a\nveth_xdp_buff.\n\n  Oops: general protection fault, probably for non-canonical address\n  KASAN: null-ptr-deref in range [0x0000000000000010-0x0000000000000017]\n  RIP: 0010:veth_xdp_rx_timestamp (drivers/net/veth.c:1673)\n  Call Trace:\n   ...\n   tun_build_skb (drivers/net/tun.c:1739)\n   tun_get_user (drivers/net/tun.c:1856)\n   tun_chr_write_iter (drivers/net/tun.c:2091)\n   vfs_write (fs/read_write.c:595 fs/read_write.c:687)\n   ksys_write (fs/read_write.c:739)\n   do_syscall_64 (arch/x86/entry/syscall_64.c:84)\n   entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:121)\n  Kernel panic - not syncing: Fatal exception in interrupt\n\nRestrict non-offloaded programs to exact netdev matches and retain the\nshared-offdev fallback only for genuinely offloaded multi-port programs.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Reject dev-bound-only programs on other devices\n\n__bpf_offload_dev_match() falls back to comparing offdev pointers after an\nexact netdev mismatch. Bound-only programs normally have NULL offdevs, so\nunrelated netdevs compare equal. A bound-only program on an\noffload-registered netdev can instead inherit a real offdev and match a\nsibling port. With CAP_BPF and CAP_NET_ADMIN, a caller can use\nbpf(BPF_LINK_CREATE) with a different target ifindex to run metadata kfuncs\nspecialized for the bound driver on the target driver's xdp_buff. Running a\nveth-bound program on tun reads beyond tun's bare stack xdp_buff as a\nveth_xdp_buff.\n\n  Oops: general protection fault, probably for non-canonical address\n  KASAN: null-ptr-deref in range [0x0000000000000010-0x0000000000000017]\n  RIP: 0010:veth_xdp_rx_timestamp (drivers/net/veth.c:1673)\n  Call Trace:\n   ...\n   tun_build_skb (drivers/net/tun.c:1739)\n   tun_get_user (drivers/net/tun.c:1856)\n   tun_chr_write_iter (drivers/net/tun.c:2091)\n   vfs_write (fs/read_write.c:595 fs/read_write.c:687)\n   ksys_write (fs/read_write.c:739)\n   do_syscall_64 (arch/x86/entry/syscall_64.c:84)\n   entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:121)\n  Kernel panic - not syncing: Fatal exception in interrupt\n\nRestrict non-offloaded programs to exact netdev matches and retain the\nshared-offdev fallback only for genuinely offloaded multi-port programs.","source":"cvelist"}],"published":"2026-10-09T07:34:21.718Z","modified":"2026-10-24T14:16:40.200Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"2b3486bc2d237ec345b3942b7be5deabf8c8fed1","fixed":"e57f04194361574493e3e6cf0b9e9c69e4ae9791","status":"affected"},{"type":"git","introduced":"2b3486bc2d237ec345b3942b7be5deabf8c8fed1","fixed":"0dceda331180617aeeb22381e8480b37f18ba08b","status":"affected"},{"type":"git","introduced":"2b3486bc2d237ec345b3942b7be5deabf8c8fed1","fixed":"940b626854de200e6187777d42114727daca617c","status":"affected"},{"type":"git","introduced":"2b3486bc2d237ec345b3942b7be5deabf8c8fed1","fixed":"bb375f3c5990e29851894f20ebc4b9dbc6676126","status":"affected"},{"type":"git","introduced":"2b3486bc2d237ec345b3942b7be5deabf8c8fed1","fixed":"6db1ce73e9853f533eb7f413f14ba00f8ec6f80d","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.3","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.3","status":"unaffected"},{"type":"semver","introduced":"6.6.158","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.112","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.55","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.9","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/e57f04194361574493e3e6cf0b9e9c69e4ae9791","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0dceda331180617aeeb22381e8480b37f18ba08b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/940b626854de200e6187777d42114727daca617c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bb375f3c5990e29851894f20ebc4b9dbc6676126","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6db1ce73e9853f533eb7f413f14ba00f8ec6f80d","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-98382","url":"https://www.cve.org/CVERecord?id=CVE-2026-98382","licence":"CVE Terms of Use","modified":"2026-10-24T14:08:39.904Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-98382","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98382","licence":"Public domain","modified":"2026-10-24T14:16:40.200Z"}],"updatedAt":"2026-11-25T22:59:43.281Z","epss":{"score":0.00161,"percentile":0.05539,"date":"2026-12-01T12:00:22.000Z"}}