openvswitch: fix GSO userspace truncation underflow
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ f2a4d086ed4c588d32fe9b7aa67fead7280e7bf1 · < 100a23b1613e9218e0af654ef102352c713f0263| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
openvswitch: fix GSO userspace truncation underflow
OVS_ACTION_ATTR_TRUNC currently stores a delta from the original skb length in OVS_CB(skb)->cutlen. When a later userspace action segments a GSO skb, queue_gso_packets() reuses that delta for each smaller segment. A segment can then reach queue_userspace_packet() with cutlen greater than skb->len, underflowing the length passed to skb_zerocopy().
Store the maximum preserved length instead and bound each consumer against the current skb length. Use U32_MAX as the no-truncation sentinel so the value remains valid if skb geometry changes before a consumer handles it.
From the CVE record · Linux
The Linux kernel's Open vSwitch truncation handling is vulnerable when a userspace action later segments a GSO packet. A segment can pass an underflowed length to skb_zerocopy(). The input does not specify the attacker's required access, authentication, or user interaction.
Engineers running Linux kernels with Open vSwitch should check their deployments; affected versions are not specified.