VDB

CVE-2026-98925

CVE-2026-98925 PUBLISHED

bpf, sockmap: Fix self-redirect copied_seq double-counting

Reported by linux · Published October 23, 2026

In the Linux kernel, the following vulnerability has been resolved: bpf, sockmap: Fix self-redirect copied_seq double-counting When a BPF stream_verdict program redirects an skb back to the same socket (self-redirect with BPF_F_INGRESS), sk_psock_verdict_apply() calls tcp_eat_skb() which advances tcp_sk->copied_seq. However, the skb is then delivered to the socket's psock ingress queue and later read by tcp_bpf_recvmsg_parser(), which also advances copied_seq via the copied_from_self accounting path. This double-counting causes copied_seq to advance by 2x the actual data length, triggering: TCP recvmsg seq # bug 2: copied BF2E806, seq BF2E7FD, \ rcvnxt BF2E806, fl 0 WARNING: net/ipv4/tcp.c:2745 at tcp_recvmsg_locked+0x72b/0x2640 Call Trace: tcp_recvmsg+0x10a/0x500 sock_recvmsg+0x168/0x1d0 __sys_recvfrom+0x19a/0x2a0 __x64_sys_recvfrom+0xe4/0x1f0 do_syscall_64+0xf7/0x530 entry_SYSCALL_64_after_hwframe+0x77/0x7f cleanup rbuf bug: copied BF2E806 seq BF2E806 rcvnxt BF2E806 WARNING: net/ipv4/tcp.c:1609 at tcp_cleanup_rbuf+0xf2/0x1c0 Call Trace: tcp_recvmsg_locked+0x8d1/0x2640 tcp_recvmsg+0x10a/0x500 sock_recvmsg+0x168/0x1d0 __sys_recvfrom+0x19a/0x2a0 __x64_sys_recvfrom+0xe4/0x1f0 do_syscall_64+0xf7/0x530 entry_SYSCALL_64_after_hwframe+0x77/0x7f Fix this by converting self-redirect verdict to __SK_PASS at the beginning of sk_psock_verdict_apply(). This bypasses the __SK_REDIRECT case entirely (which calls sk_psock_eat_skb), letting the __SK_PASS path queue the skb to the psock ingress queue. The data is then read via tcp_bpf_recvmsg_parser(), which advances copied_seq exactly once through copied_from_self. Cross-socket redirects continue through __SK_REDIRECT with sk_psock_eat_skb() unchanged.

EPSS 0.19% · 8.6th percentile

Risk scores

EPSS Score
0.19%
8.6th percentile

Affected products

VendorProductVersions
LinuxLinuxfe735073a50eaa71aceb2e990827fe26f33cddd6, e5c6de5fa025882babf89cecbed80acf49b987fa, e5c6de5fa025882babf89cecbed80acf49b987fa
LinuxLinux6.4, 0, 6.1.189
linuxlinux_kernel6.4, 6.3.6, 6.4
amazon:2023kernel-headers0
amazon:2023kernel-tools0
amazon:2023kernel-tools-devel0
amazon:2023perf6.120
amazon:2023perf6.180
amazon:2023kernel-livepatch-6.18.56-125.1640
amazon:2023kernel0
amazon:2023kernel6.12-devel0
amazon:2023bpftool6.120
amazon:2023kernel6.18-tools0
amazon:2023kernel6.18-tools-devel0
amazon:2023bpftool6.180
amazon:2023bpftool0
amazon:2023kernel6.12-modules-extra-common0
amazon:2023kernel6.12-tools0
amazon:2023python3-perf6.120
amazon:2023kernel6.18-devel0

…and 19 more

Timeline

  • Oct 23, 2026 Coalition ESS Score
  • Oct 23, 2026 CVE Published
  • Oct 24, 2026 EPSS Score (5 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-98925
vulnetix vdb fixes CVE-2026-98925

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-98925/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›