# CVE-2023-52881: tcp: do not accept ACK of bytes we never sent

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

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.97% (percentile 61, 2026-11-26)
- **Published:** 2024-05-29T10:15:14.186Z
- **Modified:** 2026-08-05T09:11:50.594Z

## Who should check

- Anyone running Linux \>= 354e4aa391ed50a4d827ff6fc11e0667d0859b25, \< 69eae75ca5255e876628ac5cee9eaab31f644b57; \>= 354e4aa391ed50a4d827ff6fc11e0667d0859b25, \< 458f07ffeccd17f99942311e09ef574ddf4a414a; \>= 354e4aa391ed50a4d827ff6fc11e0667d0859b25, \< 7ffff0cc929fdfc62a74b384c4903d6496c910f0; \>= 354e4aa391ed50a4d827ff6fc11e0667d0859b25, \< b17a886ed29f3b70b78ccf632dad03e0c69e3c1a; \>= 354e4aa391ed50a4d827ff6fc11e0667d0859b25, \< 0d4e0afdd6658cd21dd5be61880411a2553fd1fc; \>= 354e4aa391ed50a4d827ff6fc11e0667d0859b25, \< 008b807fe487e0b15a3a6c39add4eb477f73e440; \>= 354e4aa391ed50a4d827ff6fc11e0667d0859b25, \< 2087d53a66e97a5eb5d1bf558d5bef9e5f891757; \>= 354e4aa391ed50a4d827ff6fc11e0667d0859b25, \< 3d501dd326fb1c73f1b8206d4c6e1d7b15c07e27; 8d15569e14cfcf9151e9e3b4c0cb98369943a2bb; e252bbd8c87b95e9cecdc01350fbb0b46a0f9bf1; …
- Anyone running Linux 3.8

## Description

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

tcp: do not accept ACK of bytes we never sent

This patch is based on a detailed report and ideas from Yepeng Pan
and Christian Rossow.

ACK seq validation is currently following RFC 5961 5.2 guidelines:

   The ACK value is considered acceptable only if
   it is in the range of ((SND.UNA - MAX.SND.WND) \<= SEG.ACK \<=
   SND.NXT).  All incoming segments whose ACK value doesn't satisfy the
   above condition MUST be discarded and an ACK sent back.  It needs to
   be noted that RFC 793 on page 72 (fifth check) says: "If the ACK is a
   duplicate (SEG.ACK \< SND.UNA), it can be ignored.  If the ACK
   acknowledges something not yet sent (SEG.ACK \> SND.NXT) then send an
   ACK, drop the segment, and return".  The "ignored" above implies that
   the processing of the incoming data segment continues, which means
   the ACK value is treated as acceptable.  This mitigation makes the
   ACK check more stringent since any ACK \< SND.UNA wouldn't be
   accepted, instead only ACKs that are in the range ((SND.UNA -
   MAX.SND.WND) \<= SEG.ACK \<= SND.NXT) get through.

This can be refined for new (and possibly spoofed) flows,
by not accepting ACK for bytes that were never sent.

This greatly improves TCP security at a little cost.

I added a Fixes: tag to make sure this patch will reach stable trees,
even if the 'blamed' patch was adhering to the RFC.

tp-\>bytes\_acked was added in linux-4.2

Following packetdrill test (courtesy of Yepeng Pan) shows
the issue at hand:

0 socket(..., SOCK\_STREAM, IPPROTO\_TCP) = 3
+0 setsockopt(3, SOL\_SOCKET, SO\_REUSEADDR, \[1\], 4) = 0
+0 bind(3, ..., ...) = 0
+0 listen(3, 1024) = 0

// ---------------- Handshake ------------------- //

// when window scale is set to 14 the window size can be extended to
// 65535 \* (2^14) = 1073725440. Linux would accept an ACK packet
// with ack number in (Server\_ISN+1-1073725440. Server\_ISN+1)
// ,though this ack number acknowledges some data never
// sent by the server.

+0 \< S 0:0(0) win 65535 \<mss 1400,nop,wscale 14\>
+0 \> S. 0:0(0) ack 1 \<...\>
+0 \< . 1:1(0) ack 1 win 65535
+0 accept(3, ..., ...) = 4

// For the established connection, we send an ACK packet,
// the ack packet uses ack number 1 - 1073725300 + 2^32,
// where 2^32 is used to wrap around.
// Note: we used 1073725300 instead of 1073725440 to avoid possible
// edge cases.
// 1 - 1073725300 + 2^32 = 3221241997

// Oops, old kernels happily accept this packet.
+0 \< . 1:1001(1000) ack 3221241997 win 65535

// After the kernel fix the following will be replaced by a challenge ACK,
// and prior malicious frame would be dropped.
+0 \> . 1:1(0) ack 1001

## Affected and fixed versions

- Linux: \>= 354e4aa391ed50a4d827ff6fc11e0667d0859b25, \< 69eae75ca5255e876628ac5cee9eaab31f644b57; \>= 354e4aa391ed50a4d827ff6fc11e0667d0859b25, \< 458f07ffeccd17f99942311e09ef574ddf4a414a; \>= 354e4aa391ed50a4d827ff6fc11e0667d0859b25, \< 7ffff0cc929fdfc62a74b384c4903d6496c910f0; \>= 354e4aa391ed50a4d827ff6fc11e0667d0859b25, \< b17a886ed29f3b70b78ccf632dad03e0c69e3c1a; \>= 354e4aa391ed50a4d827ff6fc11e0667d0859b25, \< 0d4e0afdd6658cd21dd5be61880411a2553fd1fc; \>= 354e4aa391ed50a4d827ff6fc11e0667d0859b25, \< 008b807fe487e0b15a3a6c39add4eb477f73e440; \>= 354e4aa391ed50a4d827ff6fc11e0667d0859b25, \< 2087d53a66e97a5eb5d1bf558d5bef9e5f891757; \>= 354e4aa391ed50a4d827ff6fc11e0667d0859b25, \< 3d501dd326fb1c73f1b8206d4c6e1d7b15c07e27; 8d15569e14cfcf9151e9e3b4c0cb98369943a2bb; e252bbd8c87b95e9cecdc01350fbb0b46a0f9bf1; … (cvelist)
- Linux: 3.8 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2023-52881.md
Affected: Linux >= 354e4aa391ed50a4d827ff6fc11e0667d0859b25, < 69eae75ca5255e876628ac5cee9eaab31f644b57; >= 354e4aa391ed50a4d827ff6fc11e0667d0859b25, < 458f07ffeccd17f99942311e09ef574ddf4a414a; >= 354e4aa391ed50a4d827ff6fc11e0667d0859b25, < 7ffff0cc929fdfc62a74b384c4903d6496c910f0; >= 354e4aa391ed50a4d827ff6…
Fixed in: Linux 69eae75ca5255e876628ac5cee9eaab31f644b57, Linux 458f07ffeccd17f99942311e09ef574ddf4a414a, Linux 7ffff0cc929fdfc62a74b384c4903d6496c910f0, Linux 0d4e0afdd6658cd21dd5be61880411a2553fd1fc, Linux 008b807fe487e0b15a3a6c39add4eb477f73e440, Linux 2087d53a66e97a5eb5d1bf558d5bef9e5f891757, Linux 3d501…

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-2023-52881 being exploited?

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

### How serious is CVE-2023-52881?

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2023-52881?

Linux \>= 354e4aa391ed50a4d827ff6fc11e0667d0859b25, \< 69eae75ca5255e876628ac5cee9eaab31f644b57; \>= 354e4aa391ed50a4d827ff6fc11e0667d0859b25, \< 458f07ffeccd17f99942311e09ef574ddf4a414a; \>= 354e4aa391ed50a4d827ff6fc11e0667d0859b25, \< 7ffff0cc929fdfc62a74b384c4903d6496c910f0; \>= 354e4aa391ed50a4d827ff6fc11e0667d0859b25, \< b17a886ed29f3b70b78ccf632dad03e0c69e3c1a; \>= 354e4aa391ed50a4d827ff6fc11e0667d0859b25, \< 0d4e0afdd6658cd21dd5be61880411a2553fd1fc; \>= 354e4aa391ed50a4d827ff6fc11e0667d0859b25, \< 008b807fe487e0b15a3a6c39add4eb477f73e440; \>= 354e4aa391ed50a4d827ff6fc11e0667d0859b25, \< 2087d53a66e97a5eb5d1bf558d5bef9e5f891757; \>= 354e4aa391ed50a4d827ff6fc11e0667d0859b25, \< 3d501dd326fb1c73f1b8206d4c6e1d7b15c07e27; 8d15569e14cfcf9151e9e3b4c0cb98369943a2bb; e252bbd8c87b95e9cecdc01350fbb0b46a0f9bf1; …; Linux 3.8.

### Is there a fix for CVE-2023-52881?

Yes. Fixed in Linux 69eae75ca5255e876628ac5cee9eaab31f644b57, Linux 458f07ffeccd17f99942311e09ef574ddf4a414a, Linux 7ffff0cc929fdfc62a74b384c4903d6496c910f0, Linux 0d4e0afdd6658cd21dd5be61880411a2553fd1fc, Linux 008b807fe487e0b15a3a6c39add4eb477f73e440, Linux 2087d53a66e97a5eb5d1bf558d5bef9e5f891757, Linux 3d501dd326fb1c73f1b8206d4c6e1d7b15c07e27. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2023-52881?

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/69eae75ca5255e876628ac5cee9eaab31f644b57>
- patch: <https://git.kernel.org/stable/c/458f07ffeccd17f99942311e09ef574ddf4a414a>
- patch: <https://git.kernel.org/stable/c/7ffff0cc929fdfc62a74b384c4903d6496c910f0>
- patch: <https://git.kernel.org/stable/c/b17a886ed29f3b70b78ccf632dad03e0c69e3c1a>
- patch: <https://git.kernel.org/stable/c/0d4e0afdd6658cd21dd5be61880411a2553fd1fc>
- patch: <https://git.kernel.org/stable/c/008b807fe487e0b15a3a6c39add4eb477f73e440>
- patch: <https://git.kernel.org/stable/c/2087d53a66e97a5eb5d1bf558d5bef9e5f891757>
- patch: <https://git.kernel.org/stable/c/3d501dd326fb1c73f1b8206d4c6e1d7b15c07e27>

## 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-2023-52881>

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