NTB: ntb_transport: Reject oversized TX buffers
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ fce8a7bb5b4bfb8a27324703fd5b002ee9247e90 · < 6b6bbc6c878d64eacc60877df49fce7b1b6a08d0| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
NTB: ntb_transport: Reject oversized TX buffers
ntb_process_tx() handles an oversized buffer by calling tx_handler() with a NULL data pointer and returning success. ntb_netdev therefore neither frees the skb in its completion callback nor takes its enqueue error path, leaking it.
Reject oversized buffers in ntb_transport_tx_enqueue() before acquiring a queue entry and return -EMSGSIZE. The caller retains ownership of the buffer, and the preceding netdev patch frees the skb when enqueue returns this permanent error.
From the CVE record · Linux
The Linux kernel's ntb_transport can report success for an oversized transmit buffer without completing it, causing ntb_netdev to leak the associated skb. The input does not specify whether an attacker can trigger this remotely or locally, or whether authentication or user interaction is required.
Engineers running Linux kernels with ntb_transport and ntb_netdev should check their exposure; affected versions are not specified.