Description
In the Linux kernel, the following vulnerability has been resolved: NTB: ntb_transport: Fail TX enqueue when the QP link is down Commit f195a1a6fe41 ("ntb: Drop packets when qp link is down") meant to make ntb_transport_tx_enqueue() drop packets submitted while the QP link is down, but it only returns 0 without consuming the packet. Zero means success by this function's contract, so ntb_netdev reports NETDEV_TX_OK and forgets the skb: nothing queued it, nothing frees it, and it leaks, one skb for every transmit racing a link-down. Return -ENOLINK instead, restoring the contract that a non-zero return leaves the buffer owned by the caller. With the preceding patch, ntb_netdev frees the skb on non-retryable enqueue failures and returns NETDEV_TX_OK, so a packet racing with link-down is dropped without leaking or entering a busy retry loop.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
3cfdc448e8bfa8a7eaa5af87f357330566124b78 to < 76c9ccc0c6bebfc74c0e727eda67687f5103ab06affectedbfa051f650a7708183bd86901ca4645dcf88c486 to < 96d792c65b9d5f7f9dd86a1004315db59e450c07affected4f4af6b8b7a23fa37decaf43b55403e6bfd8e219 to < 45cc11035165918dd1f81796ea98f81ece20d361affectedf195a1a6fe416882984f8bd6c61afc1383171860 to < e6cc541fab01099fd8efadfa4f13afdf118bf536affectedf195a1a6fe416882984f8bd6c61afc1383171860 to < 5eca0d899a3be661a7e2caaaa7467a6fa15d756caffectedf195a1a6fe416882984f8bd6c61afc1383171860 to < 894e136b432da75c0352c80299807a5c4b04f167affectedf195a1a6fe416882984f8bd6c61afc1383171860 to < 89177732fe1653bbfef10cf5d99bf20cf57762c2affectedf195a1a6fe416882984f8bd6c61afc1383171860 to < 873ce713fef5dde0939220f04f3484ec86a16fbaaffectedaa6d6ed213b62cbdb09ea32abbfa085dd987a0c9affecteda8986a61ebee0b54c5d648444fbae09bd1c6dcd2affected94491412a2afc8a5aea4c5b455aed86d3486f0b1affectedc2cd5d993f57f819d46fe62387d3cc34d8468e60affected449b1978d4e50b14b2a4de3a26d0b074593926a3affected5.10.195 to < 5.10.270affected5.15.132 to < 5.15.221affected6.1.53 to < 6.1.188affected4.14.326 to < 4.15affected4.19.295 to < 4.20affected5.4.257 to < 5.5affected6.4.16 to < 6.5affected6.5.3 to < 6.6affected
Linux Linux
Default version status: affected
6.6affected0 to < 6.6unaffected5.10.270 to ≤ 5.10.*unaffected5.15.221 to ≤ 5.15.*unaffected6.1.188 to ≤ 6.1.*unaffected6.6.157 to ≤ 6.6.*unaffected6.12.109 to ≤ 6.12.*unaffected6.18.50 to ≤ 6.18.*unaffected7.2.4 to ≤ 7.2.*unaffected7.3 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/76c9ccc0c6bebfc74c0e727eda67687f5103ab06 ↗
- https://git.kernel.org/stable/c/96d792c65b9d5f7f9dd86a1004315db59e450c07 ↗
- https://git.kernel.org/stable/c/45cc11035165918dd1f81796ea98f81ece20d361 ↗
- https://git.kernel.org/stable/c/e6cc541fab01099fd8efadfa4f13afdf118bf536 ↗
- https://git.kernel.org/stable/c/5eca0d899a3be661a7e2caaaa7467a6fa15d756c ↗
- https://git.kernel.org/stable/c/894e136b432da75c0352c80299807a5c4b04f167 ↗
- https://git.kernel.org/stable/c/89177732fe1653bbfef10cf5d99bf20cf57762c2 ↗
- https://git.kernel.org/stable/c/873ce713fef5dde0939220f04f3484ec86a16fba ↗