net/mlx5: Fix rev_entry reference leak in mlx5_tc_ct_shared_counter_get()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1edae2335adfa7006853e8b427f0c7c3f46b51dd · < 99d8dc51663747078c031acac32edc6d90c8f1f7| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net/mlx5: Fix rev_entry reference leak in mlx5_tc_ct_shared_counter_get()
When the reverse entry is found but its counter is already being released, refcount_inc_not_zero() fails and the reference taken by mlx5_tc_ct_entry_get() is never dropped before falling through to create_counter. Drop it so the reverse entry is not kept alive forever by a shared counter lookup that did not use it.
From the CVE record · Linux
The Linux kernel's net/mlx5 shared counter lookup can leak a reference to a reverse entry when that entry's counter is already being released. This can keep the reverse entry alive indefinitely. The input does not describe an attacker path, authentication requirement, or user interaction.
Operators running the Linux kernel with net/mlx5 should check their vendor's advisory for affected versions.