Description
In the Linux kernel, the following vulnerability has been resolved: net/mlx5e: IPoIB, Fix QPN lookup race The parent RX completion path can load a QPN hash entry before mlx5i_pkey_del_qpn() unlinks and frees it, then dereference freed memory. Use RCU hlist operations and defer freeing with kfree_rcu(). The existing RCU read-side section in mlx5e_napi_poll() covers the lookup. Keep ht_lock for writers and acquire it before looking up the entry to delete.
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
7e7f4780c3402bd181eea82ca6395013623e4fbf to < 3a0d26ac5e0d5ab3c8d5866aea6d7e47e19899f8affected7e7f4780c3402bd181eea82ca6395013623e4fbf to < 7d9dd8bde61233290cd91a3b589413a43bf69269affected7e7f4780c3402bd181eea82ca6395013623e4fbf to < a51761221c8b0ddaf3b9978e9b40eff4d453b5e7affected7e7f4780c3402bd181eea82ca6395013623e4fbf to < c9e7401182593b3bb4942774c72a9bfa391eae04affected7e7f4780c3402bd181eea82ca6395013623e4fbf to < 81baca189fc8455f025027d70cc6e412f2712f7daffected7e7f4780c3402bd181eea82ca6395013623e4fbf to < 29066b0fc046a2965129a74325b98d9abb4647a9affected
Linux Linux
Default version status: affected
4.15affected0 to < 4.15unaffected5.10.276 to ≤ 5.10.*unaffected5.15.227 to ≤ 5.15.*unaffected6.12.120 to ≤ 6.12.*unaffected6.18.66 to ≤ 6.18.*unaffected7.3.7 to ≤ 7.3.*unaffected7.4-rc3 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/3a0d26ac5e0d5ab3c8d5866aea6d7e47e19899f8 ↗
- https://git.kernel.org/stable/c/7d9dd8bde61233290cd91a3b589413a43bf69269 ↗
- https://git.kernel.org/stable/c/a51761221c8b0ddaf3b9978e9b40eff4d453b5e7 ↗
- https://git.kernel.org/stable/c/c9e7401182593b3bb4942774c72a9bfa391eae04 ↗
- https://git.kernel.org/stable/c/81baca189fc8455f025027d70cc6e412f2712f7d ↗
- https://git.kernel.org/stable/c/29066b0fc046a2965129a74325b98d9abb4647a9 ↗