tcp: fix skb_copy_ubufs() vs BIG TCP
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
tcp: fix skb_copy_ubufs() vs BIG TCP
David Ahern reported crashes in skb_copy_ubufs() caused by TCP tx zerocopy using hugepages, and skb length bigger than ~68 KB.
skb_copy_ubufs() assumed it could copy all payload using up to MAX_SKB_FRAGS order-0 pages.
This assumption broke when BIG TCP was able to put up to 512 KB per skb.
We did not hit this bug at Google because we use CONFIG_MAX_SKB_FRAGS=45 and limit gso_max_size to 180000.
A solution is to use higher order pages if needed.
v2: add missing __GFP_COMP, or we leak memory.
From the CVE record · Linux
The Linux kernel's skb_copy_ubufs() can crash when TCP transmit zerocopy uses hugepages and an skb exceeds about 68 KB with BIG TCP. The input does not specify whether triggering this requires local or network access, authentication, or user interaction.
Engineers running Linux kernels with TCP transmit zerocopy and BIG TCP should check their exposure; affected versions are not specified.