CVE-2023-52881: tcp: do not accept ACK of bytes we never sent
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
Security readout for executives and security teams
Plain-English summary
CVE-2023-52881 is a Linux kernel TCP flaw where the system could accept acknowledgements for data it never sent. The issue is rated critical in the provided CVSS data because it is network-reachable and requires no privileges or user interaction. There is no provided evidence of active exploitation or CISA KEV listing.
Executive priority
Treat as high-priority infrastructure remediation, especially for internet-facing Linux hosts. The issue is kernel-level and remotely reachable, but current provided evidence does not confirm active exploitation. Patch through normal emergency kernel update processes where exposure is material.
Technical view
The vulnerability is in Linux TCP ACK sequence validation. The fix tightens handling for new or possibly spoofed flows so ACKs for unsent bytes are not accepted. The source notes this improves TCP security and was marked for stable kernel trees. Public references are Linux stable commits for multiple maintained branches.
Likely exposure
Exposure is most relevant to Linux systems using affected kernel versions or distribution kernels that have not backported the referenced TCP fix. Internet-facing services increase practical concern because the vulnerable logic is in the network stack, not a single application.
Exploitation context
The CVSS vector is network, low complexity, no privileges, and no user interaction. The source includes a packetdrill test demonstrating the issue, but the provided bundle does not show real-world exploitation, public weaponization, or KEV status.
Researcher notes
The record centers on stricter TCP ACK validation against acknowledgements for bytes never sent. The affected-version data in the bundle is incomplete and branch-specific, so validation should rely on vendor kernel advisories, package changelogs, and the listed stable commits rather than version strings alone.
Mitigation direction
Prioritize kernel updates from your Linux distribution or kernel vendor.
Confirm updates include the referenced stable TCP ACK validation fix.
For unsupported kernels, plan migration to a maintained kernel branch.
Monitor vendor advisories for backported fixes and reboot requirements.
Validation and detection
Inventory Linux kernel versions across servers, appliances, containers hosts, and cloud images.
Map each kernel to vendor advisory status or referenced stable commits.
Check whether distribution packages backport the fix without changing major kernel version.
Prioritize externally reachable Linux systems for remediation verification.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cve · low confidence lookup
CVE-2023-52881 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.