In the Linux kernel, the following vulnerability has been resolved: bpf, sockmap: Fix self-redirect copied_seq double-counting When a BPF… (CVE-2026-98925)
Description
A vulnerability in the Linux kernel's BPF sockmap implementation caused double-counting of the copied_seq TCP sequence number during self-redirects of packets back to the same socket. This led to warnings and potential TCP receive buffer inconsistencies. The issue was fixed by changing the handling of self-redirect verdicts to avoid double advancement of copied_seq.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Linux kernel vulnerability (CVE-2026-98925) involves the BPF sockmap feature where a BPF stream_verdict program redirects a socket buffer (skb) back to the same socket using BPF_F_INGRESS. The function sk_psock_verdict_apply() calls tcp_eat_skb() advancing tcp_sk->copied_seq, but the skb is also delivered to the socket's psock ingress queue and later processed by tcp_bpf_recvmsg_parser(), which advances copied_seq again via copied_from_self accounting. This double-counting causes copied_seq to advance twice the actual data length, triggering TCP receive message sequence warnings and cleanup buffer bugs. The fix converts the self-redirect verdict to __SK_PASS early in sk_psock_verdict_apply(), bypassing the __SK_REDIRECT path and ensuring copied_seq advances only once. Cross-socket redirects remain unaffected and continue through the original path.
Potential Impact
The vulnerability causes TCP sequence number accounting errors during self-redirects in BPF sockmap, leading to kernel warnings and potential TCP receive buffer inconsistencies. There is no indication of remote code execution or privilege escalation. The impact is primarily on kernel stability and correctness of TCP stream handling under specific BPF redirect scenarios.
Mitigation Recommendations
A fix has been implemented in the Linux kernel to address this issue by modifying the handling of self-redirect verdicts in sk_psock_verdict_apply(). Users should update to a Linux kernel version that includes this fix. Since this is a kernel-level vulnerability, applying the official kernel patch or upgrading to a fixed kernel release is the recommended remediation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-qjhh-724f-rp7q
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-98925"]
Threat ID: 6adbaad0d73cc49347b20599
Added to database: 10/23/2026, 18:43:28 UTC
Last enriched: 10/23/2026, 19:00:31 UTC
Last updated: 10/23/2026, 21:45:17 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.