xsk: Free skb when TX metadata options are invalid
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 |
|
|
6.11.116.12.26.13In the Linux kernel, the following vulnerability has been resolved:
xsk: Free skb when TX metadata options are invalid
When a new skb is allocated for transmitting an xsk descriptor, i.e., for every non-multibuf descriptor or the first frag of a multibuf descriptor, but the descriptor is later found to have invalid options set for the TX metadata, the new skb is never freed. This can leak skbs until the send buffer is full which makes sending more packets impossible.
Fix this by freeing the skb in the error path if we are currently dealing with the first frag, i.e., an skb allocated in this iteration of xsk_build_skb.
From the CVE record · Linux
The Linux kernel's xsk transmit path can leak packet buffers when a descriptor has invalid TX metadata options. The leak can fill the send buffer and prevent further packets from being sent. The input does not specify whether triggering this requires network or local access, authentication, or user interaction.
Engineers running Linux kernels with xsk support should check their versions; affected versions are not specified in the input.