# CVE-2026-98925: bpf, sockmap: Fix self-redirect copied\_seq double-counting

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.22% (percentile 8, 2026-11-26)
- **Published:** 2026-10-23T12:05:53.207Z
- **Modified:** 2026-10-23T13:17:13.210Z

## Who should check

- Anyone running Linux \>= fe735073a50eaa71aceb2e990827fe26f33cddd6, \< cf9aefb26a071cb8b6fdd761c27e022a1184946d; \>= e5c6de5fa025882babf89cecbed80acf49b987fa, \< dc98def81e3c629e25fcdd5753b1db93aab27ce9; \>= e5c6de5fa025882babf89cecbed80acf49b987fa, \< ef6f2182fee6b9721c005ccfc6aec0a47f79bbfa; \>= e5c6de5fa025882babf89cecbed80acf49b987fa, \< ae1ffd04e98beefbe5d83335d506b0bcd5c2a6b3; \>= e5c6de5fa025882babf89cecbed80acf49b987fa, \< 88942054191185c6f8bea5568cbb5614d1e99af9; \>= e5c6de5fa025882babf89cecbed80acf49b987fa, \< 490a83d6386eec1d29f470c8d7331677fb46c3b7; f9b4a0b537be7a6e5f002ca64b09dcca9c14e6ed; \>= 6.1.32, \< 6.1.189; \>= 6.3.6, \< 6.4
- Anyone running Linux 6.4

## Description

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.

## Affected and fixed versions

- Linux: \>= fe735073a50eaa71aceb2e990827fe26f33cddd6, \< cf9aefb26a071cb8b6fdd761c27e022a1184946d; \>= e5c6de5fa025882babf89cecbed80acf49b987fa, \< dc98def81e3c629e25fcdd5753b1db93aab27ce9; \>= e5c6de5fa025882babf89cecbed80acf49b987fa, \< ef6f2182fee6b9721c005ccfc6aec0a47f79bbfa; \>= e5c6de5fa025882babf89cecbed80acf49b987fa, \< ae1ffd04e98beefbe5d83335d506b0bcd5c2a6b3; \>= e5c6de5fa025882babf89cecbed80acf49b987fa, \< 88942054191185c6f8bea5568cbb5614d1e99af9; \>= e5c6de5fa025882babf89cecbed80acf49b987fa, \< 490a83d6386eec1d29f470c8d7331677fb46c3b7; f9b4a0b537be7a6e5f002ca64b09dcca9c14e6ed; \>= 6.1.32, \< 6.1.189; \>= 6.3.6, \< 6.4 (cvelist)
- Linux: 6.4 (cvelist)

## Mitigation

- Upgrade Linux to 6.4 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-98925. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-98925.md
Affected: Linux >= fe735073a50eaa71aceb2e990827fe26f33cddd6, < cf9aefb26a071cb8b6fdd761c27e022a1184946d; >= e5c6de5fa025882babf89cecbed80acf49b987fa, < dc98def81e3c629e25fcdd5753b1db93aab27ce9; >= e5c6de5fa025882babf89cecbed80acf49b987fa, < ef6f2182fee6b9721c005ccfc6aec0a47f79bbfa; >= e5c6de5fa025882babf89ce…
Fixed in: Linux 88942054191185c6f8bea5568cbb5614d1e99af9, Linux 490a83d6386eec1d29f470c8d7331677fb46c3b7, Linux 6.1.189, Linux 6.4

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-98925 being exploited?

There is no confirmed exploitation: CVE-2026-98925 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-98925?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-98925?

Linux \>= fe735073a50eaa71aceb2e990827fe26f33cddd6, \< cf9aefb26a071cb8b6fdd761c27e022a1184946d; \>= e5c6de5fa025882babf89cecbed80acf49b987fa, \< dc98def81e3c629e25fcdd5753b1db93aab27ce9; \>= e5c6de5fa025882babf89cecbed80acf49b987fa, \< ef6f2182fee6b9721c005ccfc6aec0a47f79bbfa; \>= e5c6de5fa025882babf89cecbed80acf49b987fa, \< ae1ffd04e98beefbe5d83335d506b0bcd5c2a6b3; \>= e5c6de5fa025882babf89cecbed80acf49b987fa, \< 88942054191185c6f8bea5568cbb5614d1e99af9; \>= e5c6de5fa025882babf89cecbed80acf49b987fa, \< 490a83d6386eec1d29f470c8d7331677fb46c3b7; f9b4a0b537be7a6e5f002ca64b09dcca9c14e6ed; \>= 6.1.32, \< 6.1.189; \>= 6.3.6, \< 6.4; Linux 6.4.

### Is there a fix for CVE-2026-98925?

Yes. Fixed in Linux 88942054191185c6f8bea5568cbb5614d1e99af9, Linux 490a83d6386eec1d29f470c8d7331677fb46c3b7, Linux 6.1.189, Linux 6.4. Upgrade Linux to 6.4 or later.

### How do I check if I'm affected by CVE-2026-98925?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/cf9aefb26a071cb8b6fdd761c27e022a1184946d>
- other: <https://git.kernel.org/stable/c/dc98def81e3c629e25fcdd5753b1db93aab27ce9>
- other: <https://git.kernel.org/stable/c/ef6f2182fee6b9721c005ccfc6aec0a47f79bbfa>
- other: <https://git.kernel.org/stable/c/ae1ffd04e98beefbe5d83335d506b0bcd5c2a6b3>
- other: <https://git.kernel.org/stable/c/88942054191185c6f8bea5568cbb5614d1e99af9>
- other: <https://git.kernel.org/stable/c/490a83d6386eec1d29f470c8d7331677fb46c3b7>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-98925>

HTML: <https://flawdb.com/CVE-2026-98925> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-98925>
