# CVE-2025-21710: tcp: correct handling of extreme memory squeeze

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

- **Severity:** HIGH 8.2
- **CVSS:** 8.2 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: Low; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.47% (percentile 33, 2026-11-26)
- **CWE:** CWE-667
- **Published:** 2025-02-27T02:07:23.112Z
- **Modified:** 2026-08-05T11:53:49.495Z

## Who should check

- Anyone running Linux \>= e2142825c120d4317abf7160a0fc34b3de532586, \< b01e7ceb35dcb7ffad413da657b78c3340a09039; \>= e2142825c120d4317abf7160a0fc34b3de532586, \< 1dd823a46e25ffde1492c391934f69a9e5eb574f; \>= e2142825c120d4317abf7160a0fc34b3de532586, \< b4055e2fe96f4ef101d8af0feb056d78d77514ff; \>= e2142825c120d4317abf7160a0fc34b3de532586, \< 8c670bdfa58e48abad1d5b6ca1ee843ca91f7303
- Anyone running Linux 6.6

## Description

In the Linux kernel, the following vulnerability has been resolved:

tcp: correct handling of extreme memory squeeze

Testing with iperf3 using the "pasta" protocol splicer has revealed
a problem in the way tcp handles window advertising in extreme memory
squeeze situations.

Under memory pressure, a socket endpoint may temporarily advertise
a zero-sized window, but this is not stored as part of the socket data.
The reasoning behind this is that it is considered a temporary setting
which shouldn't influence any further calculations.

However, if we happen to stall at an unfortunate value of the current
window size, the algorithm selecting a new value will consistently fail
to advertise a non-zero window once we have freed up enough memory.
This means that this side's notion of the current window size is
different from the one last advertised to the peer, causing the latter
to not send any data to resolve the sitution.

The problem occurs on the iperf3 server side, and the socket in question
is a completely regular socket with the default settings for the
fedora40 kernel. We do not use SO\_PEEK or SO\_RCVBUF on the socket.

The following excerpt of a logging session, with own comments added,
shows more in detail what is happening:

//              tcp\_v4\_rcv(-\>)
//                tcp\_rcv\_established(-\>)
\[5201\<-\>39222\]:     ==== Activating log @ net/ipv4/tcp\_input.c/tcp\_data\_queue()/5257 ====
\[5201\<-\>39222\]:     tcp\_data\_queue(-\>)
\[5201\<-\>39222\]:        DROPPING skb \[265600160..265665640\], reason: SKB\_DROP\_REASON\_PROTO\_MEM
                       \[rcv\_nxt 265600160, rcv\_wnd 262144, snt\_ack 265469200, win\_now 131184\]
                       \[copied\_seq 259909392-\>260034360 (124968), unread 5565800, qlen 85, ofoq 0\]
                       \[OFO queue: gap: 65480, len: 0\]
\[5201\<-\>39222\]:     tcp\_data\_queue(\<-)
\[5201\<-\>39222\]:     \_\_tcp\_transmit\_skb(-\>)
                        \[tp-\>rcv\_wup: 265469200, tp-\>rcv\_wnd: 262144, tp-\>rcv\_nxt 265600160\]
\[5201\<-\>39222\]:       tcp\_select\_window(-\>)
\[5201\<-\>39222\]:         (inet\_csk(sk)-\>icsk\_ack.pending & ICSK\_ACK\_NOMEM) ? --\> TRUE
                        \[tp-\>rcv\_wup: 265469200, tp-\>rcv\_wnd: 262144, tp-\>rcv\_nxt 265600160\]
                        returning 0
\[5201\<-\>39222\]:       tcp\_select\_window(\<-)
\[5201\<-\>39222\]:       ADVERTISING WIN 0, ACK\_SEQ: 265600160
\[5201\<-\>39222\]:     \[\_\_tcp\_transmit\_skb(\<-)
\[5201\<-\>39222\]:   tcp\_rcv\_established(\<-)
\[5201\<-\>39222\]: tcp\_v4\_rcv(\<-)

// Receive queue is at 85 buffers and we are out of memory.
// We drop the incoming buffer, although it is in sequence, and decide
// to send an advertisement with a window of zero.
// We don't update tp-\>rcv\_wnd and tp-\>rcv\_wup accordingly, which means
// we unconditionally shrink the window.

\[5201\<-\>39222\]: tcp\_recvmsg\_locked(-\>)
\[5201\<-\>39222\]:   \_\_tcp\_cleanup\_rbuf(-\>) tp-\>rcv\_wup: 265469200, tp-\>rcv\_wnd: 262144, tp-\>rcv\_nxt 265600160
\[5201\<-\>39222\]:     \[new\_win = 0, win\_now = 131184, 2 \* win\_now = 262368\]
\[5201\<-\>39222\]:     \[new\_win \>= (2 \* win\_now) ? --\> time\_to\_ack = 0\]
\[5201\<-\>39222\]:     NOT calling tcp\_send\_ack()
                    \[tp-\>rcv\_wup: 265469200, tp-\>rcv\_wnd: 262144, tp-\>rcv\_nxt 265600160\]
\[5201\<-\>39222\]:   \_\_tcp\_cleanup\_rbuf(\<-)
                  \[rcv\_nxt 265600160, rcv\_wnd 262144, snt\_ack 265469200, win\_now 131184\]
                  \[copied\_seq 260040464-\>260040464 (0), unread 5559696, qlen 85, ofoq 0\]
                  returning 6104 bytes
\[5201\<-\>39222\]: tcp\_recvmsg\_locked(\<-)

// After each read, the algorithm for calculating the new receive
// window in \_\_tcp\_cleanup\_rbuf() finds it is too small to advertise
// or to update tp-\>rcv\_wnd.
// Meanwhile, the peer thinks the window is zero, and will not send
// any more data to trigger an update from the interrupt mode side.

\[5201\<-\>39222\]: tcp\_recvmsg\_locked(-\>)
\[5201\<-\>39222\]:   \_\_tcp\_cleanup\_rbuf(-\>) tp-\>rcv\_wup: 265469200, tp-\>rcv\_wnd: 262144, tp-\>rcv\_nxt 265600160
\[5201\<-\>39222\]:     \[new\_win = 262144, win\_now = 131184, 2 \* win\_n
---truncated---

## Affected and fixed versions

- Linux: \>= e2142825c120d4317abf7160a0fc34b3de532586, \< b01e7ceb35dcb7ffad413da657b78c3340a09039; \>= e2142825c120d4317abf7160a0fc34b3de532586, \< 1dd823a46e25ffde1492c391934f69a9e5eb574f; \>= e2142825c120d4317abf7160a0fc34b3de532586, \< b4055e2fe96f4ef101d8af0feb056d78d77514ff; \>= e2142825c120d4317abf7160a0fc34b3de532586, \< 8c670bdfa58e48abad1d5b6ca1ee843ca91f7303 (cvelist)
- Linux: 6.6 (cvelist)

## Mitigation

- Upgrade Linux to 8c670bdfa58e48abad1d5b6ca1ee843ca91f7303 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-21710.md
Affected: Linux >= e2142825c120d4317abf7160a0fc34b3de532586, < b01e7ceb35dcb7ffad413da657b78c3340a09039; >= e2142825c120d4317abf7160a0fc34b3de532586, < 1dd823a46e25ffde1492c391934f69a9e5eb574f; >= e2142825c120d4317abf7160a0fc34b3de532586, < b4055e2fe96f4ef101d8af0feb056d78d77514ff; >= e2142825c120d4317abf716…
Fixed in: Linux 1dd823a46e25ffde1492c391934f69a9e5eb574f, Linux 8c670bdfa58e48abad1d5b6ca1ee843ca91f7303

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-2025-21710 being exploited?

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

### How serious is CVE-2025-21710?

High: CVSS 8.2 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2025-21710?

Linux \>= e2142825c120d4317abf7160a0fc34b3de532586, \< b01e7ceb35dcb7ffad413da657b78c3340a09039; \>= e2142825c120d4317abf7160a0fc34b3de532586, \< 1dd823a46e25ffde1492c391934f69a9e5eb574f; \>= e2142825c120d4317abf7160a0fc34b3de532586, \< b4055e2fe96f4ef101d8af0feb056d78d77514ff; \>= e2142825c120d4317abf7160a0fc34b3de532586, \< 8c670bdfa58e48abad1d5b6ca1ee843ca91f7303; Linux 6.6.

### Is there a fix for CVE-2025-21710?

Yes. Fixed in Linux 1dd823a46e25ffde1492c391934f69a9e5eb574f, Linux 8c670bdfa58e48abad1d5b6ca1ee843ca91f7303. Upgrade Linux to 8c670bdfa58e48abad1d5b6ca1ee843ca91f7303 or later.

### How do I check if I'm affected by CVE-2025-21710?

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

- patch: <https://git.kernel.org/stable/c/b01e7ceb35dcb7ffad413da657b78c3340a09039>
- patch: <https://git.kernel.org/stable/c/1dd823a46e25ffde1492c391934f69a9e5eb574f>
- patch: <https://git.kernel.org/stable/c/b4055e2fe96f4ef101d8af0feb056d78d77514ff>
- patch: <https://git.kernel.org/stable/c/8c670bdfa58e48abad1d5b6ca1ee843ca91f7303>

## 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-2025-21710>

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