Description
In the Linux kernel, the following vulnerability has been resolved: RDMA/cxgb4: Cancel reg_work before freeing device on remove c4iw_uld_state_change() queues reg_work to register the RDMA device. c4iw_remove() can free ctx->dev while this work is pending or running, leaving c4iw_register_device() accessing the freed device. Cancel reg_work before removing the device. The registration work can tear down ctx->dev when registration fails, so do not unregister or deallocate it again in that case. This issue was found by an in-house static analysis tool.
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
1c8f1da5d851b92aeb81dbbb9ebd516f6e2588f5 to < e6e79e7be87c5ea92728060a3d7fb56890a91e45affected1c8f1da5d851b92aeb81dbbb9ebd516f6e2588f5 to < 672ee1981db10569ec96030bddb322f18382ec04affected1c8f1da5d851b92aeb81dbbb9ebd516f6e2588f5 to < 4681e731db07769846901cfabdd3e53f765eb9d3affected1c8f1da5d851b92aeb81dbbb9ebd516f6e2588f5 to < 3265d558dfafab8f12f5fba06ebbf15cae9f3225affected1c8f1da5d851b92aeb81dbbb9ebd516f6e2588f5 to < fe9c591026c576d8b1f72aab5e4cd67350530763affected1c8f1da5d851b92aeb81dbbb9ebd516f6e2588f5 to < 85f438382a865a4dc4c50e6b884310bb2b60fc4daffected1c8f1da5d851b92aeb81dbbb9ebd516f6e2588f5 to < 320e5258a53af0abc5abd9eb01519a48bab2dee8affected1c8f1da5d851b92aeb81dbbb9ebd516f6e2588f5 to < a7100601aa1a39f799a566acce10db20eaf4b7f2affected
Linux Linux
Default version status: affected
4.15affected0 to < 4.15unaffected5.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/e6e79e7be87c5ea92728060a3d7fb56890a91e45 ↗
- https://git.kernel.org/stable/c/672ee1981db10569ec96030bddb322f18382ec04 ↗
- https://git.kernel.org/stable/c/4681e731db07769846901cfabdd3e53f765eb9d3 ↗
- https://git.kernel.org/stable/c/3265d558dfafab8f12f5fba06ebbf15cae9f3225 ↗
- https://git.kernel.org/stable/c/fe9c591026c576d8b1f72aab5e4cd67350530763 ↗
- https://git.kernel.org/stable/c/85f438382a865a4dc4c50e6b884310bb2b60fc4d ↗
- https://git.kernel.org/stable/c/320e5258a53af0abc5abd9eb01519a48bab2dee8 ↗
- https://git.kernel.org/stable/c/a7100601aa1a39f799a566acce10db20eaf4b7f2 ↗