Description
In the Linux kernel, the following vulnerability has been resolved: ibmveth: wait for in-flight transmits in ibmveth_close() ibmveth_close() frees the TX buffers after netif_tx_stop_all_queues(), which does not wait for an ibmveth_start_xmit() already running on another CPU. That transmit can copy into a freed buffer and hand PHYP a stale DMA address. MTU, csum/TSO and buffer pool changes call ibmveth_close() directly while traffic flows. ifdown and the reset work go through dev_close(), which waits for running transmits only when the qdisc has an enqueue function, so with noqueue they race the same way. Use netif_tx_disable(), which waits for running transmits. Found in review of the ibmveth multi-queue RX series and confirmed by code inspection; the race was not reproduced. Tested on a POWER10 LPAR with MTU changes during a ping flood, with no warnings. No kernel selftests cover ibmveth.
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
d6832ca48d8af0ec3d02d93c17027304c429c087 to < d7999e006c272428ca8c6d0db22a3888b484d2a7affectedd6832ca48d8af0ec3d02d93c17027304c429c087 to < 982237f281052b39c69e3ae18d77e74f8c58173eaffectedd6832ca48d8af0ec3d02d93c17027304c429c087 to < 1bb9efcc92ee9496516d107cc59c22223af1d21eaffectedd6832ca48d8af0ec3d02d93c17027304c429c087 to < 3b1db871cf3b107a6847750a15b33df95d3c3440affectedd6832ca48d8af0ec3d02d93c17027304c429c087 to < 112246361e6a7cdc8a4cc4e5c71d1e2f50e86e60affectedd6832ca48d8af0ec3d02d93c17027304c429c087 to < c807573ea58e615339a9c72675c45c157ffe245caffected
Linux Linux
Default version status: affected
6.1affected0 to < 6.1unaffected6.1.193 to ≤ 6.1.*unaffected6.6.163 to ≤ 6.6.*unaffected6.12.119 to ≤ 6.12.*unaffected6.18.65 to ≤ 6.18.*unaffected7.3.6 to ≤ 7.3.*unaffected7.4-rc1 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/d7999e006c272428ca8c6d0db22a3888b484d2a7 ↗
- https://git.kernel.org/stable/c/982237f281052b39c69e3ae18d77e74f8c58173e ↗
- https://git.kernel.org/stable/c/1bb9efcc92ee9496516d107cc59c22223af1d21e ↗
- https://git.kernel.org/stable/c/3b1db871cf3b107a6847750a15b33df95d3c3440 ↗
- https://git.kernel.org/stable/c/112246361e6a7cdc8a4cc4e5c71d1e2f50e86e60 ↗
- https://git.kernel.org/stable/c/c807573ea58e615339a9c72675c45c157ffe245c ↗