xsk: drain continuation descs after overflow in xsk_build_skb()
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:
xsk: drain continuation descs after overflow in xsk_build_skb()
Fix generic xmit path multi-buffer logic when packets are either too big (count of descriptors exceed MAX_SKB_FRAGS) or an invalid descriptor is included in fragmented packet. Introduce xdp_sock::drain_cont and act upon this flag - when it is set, keep on consuming descriptors from AF_XDP Tx ring and put them directly onto Cq. Previously these descriptors were silently lost and could never be reached again.
From the CVE record · Linux
The Linux kernel’s AF_XDP generic transmit path can lose continuation descriptors when a fragmented packet has too many descriptors or includes an invalid descriptor. The lost descriptors cannot be reached again. The input does not specify an attacker, authentication requirements, or user interaction.
Engineers running Linux kernels that use AF_XDP transmit should check their kernel versions against the vendor advisory; affected versions are not specified.