Nixpkgs security tracker

Try the new UI
Login with GitHub
⚠️ You are using a production deployment that is still only suitable for demo purposes. Any work done in this might be wiped later without notice.

Suggestion detail

Dismissed
(max. allowed matches exceeded)
created 1 week, 4 days ago Activity log
  • Created & dismissed (max. allowed matches exceeded) suggestion
NTB: ntb_transport: Fail TX enqueue when the QP link is down

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

Linux
  • <4.20
  • ==3cfdc448e8bfa8a7eaa5af87f357330566124b78
  • ==449b1978d4e50b14b2a4de3a26d0b074593926a3
  • <4.15
  • ==bfa051f650a7708183bd86901ca4645dcf88c486
  • <6.2
  • ==4f4af6b8b7a23fa37decaf43b55403e6bfd8e219
  • ==6.6
  • <5.16
  • <5eca0d899a3be661a7e2caaaa7467a6fa15d756c
  • =<6.18.*
  • <89177732fe1653bbfef10cf5d99bf20cf57762c2
  • <6.6
  • =<7.2.*
  • <5.5
  • =<6.12.*
  • ==c2cd5d993f57f819d46fe62387d3cc34d8468e60
  • =<*
  • <894e136b432da75c0352c80299807a5c4b04f167
  • ==94491412a2afc8a5aea4c5b455aed86d3486f0b1
  • <6.6
  • <5.11
  • <6.5
  • <873ce713fef5dde0939220f04f3484ec86a16fba
  • ==aa6d6ed213b62cbdb09ea32abbfa085dd987a0c9
  • ==a8986a61ebee0b54c5d648444fbae09bd1c6dcd2