Skip to content
DoS Write-up Advanced

CVE-2019-11477 TCP: Make sack processing more robust

The Linux TCP sender-side SACK processing could be abused by a malicious peer advertising a very small MSS, causing a 16-bit counter overflow and a kernel crash, or forcing the retransmit queue to fragment into tiny skbs that inflate memory use and overflow 32-bit counters. A third issue was that the hardcoded minimum MSS of 48 allowed peers to force very high per-packet overhead.

lore.kernel.org

Published on lore.kernel.org

Jonathan Looney brought to our attention multiple problems in TCP stack at the sender side.

The author, on lore.kernel.org

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the sender trusted the peer's advertised MSS and did not bound the number of segments or payload size stored per skb, so 16-bit and 32-bit counters could overflow and memory could be inflated.

Impact

A malicious peer could crash the kernel or inflate memory usage and overflow 32-bit counters on the sending side.

What the attacker needed

Malicious TCP peer; SACK enabled for the overflow issue; sender is a Linux host

The fix

The patches were applied to cap the payload and segment count per skb, refuse fragmentation when the socket already uses more than half its allowed space, and add a configurable minimum MSS enforced during MTU probing.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

When computers talk over TCP, the receiver tells the sender how big each chunk of data can be, called the MSS. A malicious machine could claim a tiny chunk size and then use a feature called SACK, which helps recover lost data, to make the sender's bookkeeping numbers wrap around or its memory grow. That could crash the machine or exhaust its memory.

What is DoS?

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.