NTB: ntb_netdev: Preserve RX queue depth on allocation failure
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 548c237c0a9972df5d1afaca38aa733ee577128d · < a4e340971fe8ccd245d206db4d43b2a0eec240bd| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
NTB: ntb_netdev: Preserve RX queue depth on allocation failure
ntb_netdev_rx_handler() hands the received skb to the network stack before allocating its replacement. If the allocation fails, nothing is reposted. Every failure therefore takes one buffer out of the RX queue while the interface remains up, and enough failures eventually stall reception.
A retry path could refill the queue later, but ntb_netdev has none. Allocate the replacement first instead. If that fails, drop the packet and repost the same skb. This keeps the queue full and lets packet delivery resume as soon as memory is available again.
From the CVE record · Linux
The Linux kernel's ntb_netdev RX handler can lose a receive buffer when allocation of its replacement fails. Repeated allocation failures can eventually stall reception while the interface remains up. The input does not specify attacker access, authentication requirements, or user interaction.
Engineers running Linux kernels that use ntb_netdev should check their versions against the vendor advisory; affected versions are not specified.