{"api_version":"1","generated_at":"2026-11-03T14:40:01+00:00","cve":"CVE-2026-98925","urls":{"html":"https://cve.report/CVE-2026-98925","api":"https://cve.report/api/cve/CVE-2026-98925.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-98925","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-98925"},"summary":{"title":"bpf, sockmap: Fix self-redirect copied_seq double-counting","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf, sockmap: Fix self-redirect copied_seq double-counting\n\nWhen a BPF stream_verdict program redirects an skb back to the same\nsocket (self-redirect with BPF_F_INGRESS), sk_psock_verdict_apply()\ncalls tcp_eat_skb() which advances tcp_sk->copied_seq. However, the\nskb is then delivered to the socket's psock ingress queue and later\nread by tcp_bpf_recvmsg_parser(), which also advances copied_seq via\nthe copied_from_self accounting path. This double-counting causes\ncopied_seq to advance by 2x the actual data length, triggering:\n\n  TCP recvmsg seq # bug 2: copied BF2E806, seq BF2E7FD, \\\n\t\t\t   rcvnxt BF2E806, fl 0\n  WARNING: net/ipv4/tcp.c:2745 at tcp_recvmsg_locked+0x72b/0x2640\n  Call Trace:\n   tcp_recvmsg+0x10a/0x500\n   sock_recvmsg+0x168/0x1d0\n   __sys_recvfrom+0x19a/0x2a0\n   __x64_sys_recvfrom+0xe4/0x1f0\n   do_syscall_64+0xf7/0x530\n   entry_SYSCALL_64_after_hwframe+0x77/0x7f\n\n  cleanup rbuf bug: copied BF2E806 seq BF2E806 rcvnxt BF2E806\n  WARNING: net/ipv4/tcp.c:1609 at tcp_cleanup_rbuf+0xf2/0x1c0\n  Call Trace:\n   tcp_recvmsg_locked+0x8d1/0x2640\n   tcp_recvmsg+0x10a/0x500\n   sock_recvmsg+0x168/0x1d0\n   __sys_recvfrom+0x19a/0x2a0\n   __x64_sys_recvfrom+0xe4/0x1f0\n   do_syscall_64+0xf7/0x530\n   entry_SYSCALL_64_after_hwframe+0x77/0x7f\n\nFix this by converting self-redirect verdict to __SK_PASS at the\nbeginning of sk_psock_verdict_apply(). This bypasses the\n__SK_REDIRECT case entirely (which calls sk_psock_eat_skb), letting\nthe __SK_PASS path queue the skb to the psock ingress queue. The\ndata is then read via tcp_bpf_recvmsg_parser(), which advances\ncopied_seq exactly once through copied_from_self. Cross-socket\nredirects continue through __SK_REDIRECT with sk_psock_eat_skb()\nunchanged.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-10-23 13:17:13","updated_at":"2026-10-23 13:17:13"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/ef6f2182fee6b9721c005ccfc6aec0a47f79bbfa","name":"https://git.kernel.org/stable/c/ef6f2182fee6b9721c005ccfc6aec0a47f79bbfa","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/88942054191185c6f8bea5568cbb5614d1e99af9","name":"https://git.kernel.org/stable/c/88942054191185c6f8bea5568cbb5614d1e99af9","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/ae1ffd04e98beefbe5d83335d506b0bcd5c2a6b3","name":"https://git.kernel.org/stable/c/ae1ffd04e98beefbe5d83335d506b0bcd5c2a6b3","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/490a83d6386eec1d29f470c8d7331677fb46c3b7","name":"https://git.kernel.org/stable/c/490a83d6386eec1d29f470c8d7331677fb46c3b7","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/cf9aefb26a071cb8b6fdd761c27e022a1184946d","name":"https://git.kernel.org/stable/c/cf9aefb26a071cb8b6fdd761c27e022a1184946d","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/dc98def81e3c629e25fcdd5753b1db93aab27ce9","name":"https://git.kernel.org/stable/c/dc98def81e3c629e25fcdd5753b1db93aab27ce9","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-98925","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98925","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected fe735073a50eaa71aceb2e990827fe26f33cddd6 cf9aefb26a071cb8b6fdd761c27e022a1184946d git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected e5c6de5fa025882babf89cecbed80acf49b987fa dc98def81e3c629e25fcdd5753b1db93aab27ce9 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected e5c6de5fa025882babf89cecbed80acf49b987fa ef6f2182fee6b9721c005ccfc6aec0a47f79bbfa git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected e5c6de5fa025882babf89cecbed80acf49b987fa ae1ffd04e98beefbe5d83335d506b0bcd5c2a6b3 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected e5c6de5fa025882babf89cecbed80acf49b987fa 88942054191185c6f8bea5568cbb5614d1e99af9 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected e5c6de5fa025882babf89cecbed80acf49b987fa 490a83d6386eec1d29f470c8d7331677fb46c3b7 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected f9b4a0b537be7a6e5f002ca64b09dcca9c14e6ed git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.1.32 6.1.189 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.3.6 6.4 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.4","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.4 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.189 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.158 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.112 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.55 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.2.9 7.2.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["net/core/skmsg.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"cf9aefb26a071cb8b6fdd761c27e022a1184946d","status":"affected","version":"fe735073a50eaa71aceb2e990827fe26f33cddd6","versionType":"git"},{"lessThan":"dc98def81e3c629e25fcdd5753b1db93aab27ce9","status":"affected","version":"e5c6de5fa025882babf89cecbed80acf49b987fa","versionType":"git"},{"lessThan":"ef6f2182fee6b9721c005ccfc6aec0a47f79bbfa","status":"affected","version":"e5c6de5fa025882babf89cecbed80acf49b987fa","versionType":"git"},{"lessThan":"ae1ffd04e98beefbe5d83335d506b0bcd5c2a6b3","status":"affected","version":"e5c6de5fa025882babf89cecbed80acf49b987fa","versionType":"git"},{"lessThan":"88942054191185c6f8bea5568cbb5614d1e99af9","status":"affected","version":"e5c6de5fa025882babf89cecbed80acf49b987fa","versionType":"git"},{"lessThan":"490a83d6386eec1d29f470c8d7331677fb46c3b7","status":"affected","version":"e5c6de5fa025882babf89cecbed80acf49b987fa","versionType":"git"},{"status":"affected","version":"f9b4a0b537be7a6e5f002ca64b09dcca9c14e6ed","versionType":"git"},{"lessThan":"6.1.189","status":"affected","version":"6.1.32","versionType":"semver"},{"lessThan":"6.4","status":"affected","version":"6.3.6","versionType":"semver"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["net/core/skmsg.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.4"},{"lessThan":"6.4","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.189","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.158","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.112","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.55","versionType":"semver"},{"lessThanOrEqual":"7.2.*","status":"unaffected","version":"7.2.9","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.3","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.189","versionStartIncluding":"6.1.32","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.158","versionStartIncluding":"6.4","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.112","versionStartIncluding":"6.4","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.55","versionStartIncluding":"6.4","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.2.9","versionStartIncluding":"6.4","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3","versionStartIncluding":"6.4","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.3.6","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf, sockmap: Fix self-redirect copied_seq double-counting\n\nWhen a BPF stream_verdict program redirects an skb back to the same\nsocket (self-redirect with BPF_F_INGRESS), sk_psock_verdict_apply()\ncalls tcp_eat_skb() which advances tcp_sk->copied_seq. However, the\nskb is then delivered to the socket's psock ingress queue and later\nread by tcp_bpf_recvmsg_parser(), which also advances copied_seq via\nthe copied_from_self accounting path. This double-counting causes\ncopied_seq to advance by 2x the actual data length, triggering:\n\n  TCP recvmsg seq # bug 2: copied BF2E806, seq BF2E7FD, \\\n\t\t\t   rcvnxt BF2E806, fl 0\n  WARNING: net/ipv4/tcp.c:2745 at tcp_recvmsg_locked+0x72b/0x2640\n  Call Trace:\n   tcp_recvmsg+0x10a/0x500\n   sock_recvmsg+0x168/0x1d0\n   __sys_recvfrom+0x19a/0x2a0\n   __x64_sys_recvfrom+0xe4/0x1f0\n   do_syscall_64+0xf7/0x530\n   entry_SYSCALL_64_after_hwframe+0x77/0x7f\n\n  cleanup rbuf bug: copied BF2E806 seq BF2E806 rcvnxt BF2E806\n  WARNING: net/ipv4/tcp.c:1609 at tcp_cleanup_rbuf+0xf2/0x1c0\n  Call Trace:\n   tcp_recvmsg_locked+0x8d1/0x2640\n   tcp_recvmsg+0x10a/0x500\n   sock_recvmsg+0x168/0x1d0\n   __sys_recvfrom+0x19a/0x2a0\n   __x64_sys_recvfrom+0xe4/0x1f0\n   do_syscall_64+0xf7/0x530\n   entry_SYSCALL_64_after_hwframe+0x77/0x7f\n\nFix this by converting self-redirect verdict to __SK_PASS at the\nbeginning of sk_psock_verdict_apply(). This bypasses the\n__SK_REDIRECT case entirely (which calls sk_psock_eat_skb), letting\nthe __SK_PASS path queue the skb to the psock ingress queue. The\ndata is then read via tcp_bpf_recvmsg_parser(), which advances\ncopied_seq exactly once through copied_from_self. Cross-socket\nredirects continue through __SK_REDIRECT with sk_psock_eat_skb()\nunchanged."}],"providerMetadata":{"dateUpdated":"2026-10-23T12:05:53.207Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/cf9aefb26a071cb8b6fdd761c27e022a1184946d"},{"url":"https://git.kernel.org/stable/c/dc98def81e3c629e25fcdd5753b1db93aab27ce9"},{"url":"https://git.kernel.org/stable/c/ef6f2182fee6b9721c005ccfc6aec0a47f79bbfa"},{"url":"https://git.kernel.org/stable/c/ae1ffd04e98beefbe5d83335d506b0bcd5c2a6b3"},{"url":"https://git.kernel.org/stable/c/88942054191185c6f8bea5568cbb5614d1e99af9"},{"url":"https://git.kernel.org/stable/c/490a83d6386eec1d29f470c8d7331677fb46c3b7"}],"title":"bpf, sockmap: Fix self-redirect copied_seq double-counting","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-98925","datePublished":"2026-10-23T12:05:53.207Z","dateReserved":"2026-09-25T10:25:14.380Z","dateUpdated":"2026-10-23T12:05:53.207Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-10-23 13:17:13","lastModifiedDate":"2026-10-23 13:17:13","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"98925","Ordinal":"1","Title":"bpf, sockmap: Fix self-redirect copied_seq double-counting","CVE":"CVE-2026-98925","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"98925","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf, sockmap: Fix self-redirect copied_seq double-counting\n\nWhen a BPF stream_verdict program redirects an skb back to the same\nsocket (self-redirect with BPF_F_INGRESS), sk_psock_verdict_apply()\ncalls tcp_eat_skb() which advances tcp_sk->copied_seq. However, the\nskb is then delivered to the socket's psock ingress queue and later\nread by tcp_bpf_recvmsg_parser(), which also advances copied_seq via\nthe copied_from_self accounting path. This double-counting causes\ncopied_seq to advance by 2x the actual data length, triggering:\n\n  TCP recvmsg seq # bug 2: copied BF2E806, seq BF2E7FD, \\\n\t\t\t   rcvnxt BF2E806, fl 0\n  WARNING: net/ipv4/tcp.c:2745 at tcp_recvmsg_locked+0x72b/0x2640\n  Call Trace:\n   tcp_recvmsg+0x10a/0x500\n   sock_recvmsg+0x168/0x1d0\n   __sys_recvfrom+0x19a/0x2a0\n   __x64_sys_recvfrom+0xe4/0x1f0\n   do_syscall_64+0xf7/0x530\n   entry_SYSCALL_64_after_hwframe+0x77/0x7f\n\n  cleanup rbuf bug: copied BF2E806 seq BF2E806 rcvnxt BF2E806\n  WARNING: net/ipv4/tcp.c:1609 at tcp_cleanup_rbuf+0xf2/0x1c0\n  Call Trace:\n   tcp_recvmsg_locked+0x8d1/0x2640\n   tcp_recvmsg+0x10a/0x500\n   sock_recvmsg+0x168/0x1d0\n   __sys_recvfrom+0x19a/0x2a0\n   __x64_sys_recvfrom+0xe4/0x1f0\n   do_syscall_64+0xf7/0x530\n   entry_SYSCALL_64_after_hwframe+0x77/0x7f\n\nFix this by converting self-redirect verdict to __SK_PASS at the\nbeginning of sk_psock_verdict_apply(). This bypasses the\n__SK_REDIRECT case entirely (which calls sk_psock_eat_skb), letting\nthe __SK_PASS path queue the skb to the psock ingress queue. The\ndata is then read via tcp_bpf_recvmsg_parser(), which advances\ncopied_seq exactly once through copied_from_self. Cross-socket\nredirects continue through __SK_REDIRECT with sk_psock_eat_skb()\nunchanged.","Type":"Description","Title":"bpf, sockmap: Fix self-redirect copied_seq double-counting"}]}}}