net: prevent mss overflow in skb_segment()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 3953c46c3ac7eef31a9935427371c6f54a22f1ba · < 95b3904a261a9f810205da560e802cc326f50d77| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: prevent mss overflow in skb_segment()
Once again syzbot is able to crash the kernel in skb_segment() [1]
GSO_BY_FRAGS is a forbidden value, but unfortunately the following computation in skb_segment() can reach it quite easily :
mss = mss * partial_segs;
65535 = 3 * 5 * 17 * 257, so many initial values of mss can lead to a bad final result.
Make sure to limit segmentation so that the new mss value is smaller than GSO_BY_FRAGS.
[1]
From the CVE record · Linux
The Linux kernel can calculate a forbidden segmentation value in skb_segment() when multiplying the maximum segment size by the number of partial segments. This can crash the kernel; the supplied trace shows the crash during a local packet-send operation. The input does not specify authentication requirements or user interaction.
Engineers running Linux kernels should check whether their kernel includes the fix; affected versions are not specified.