net/mlx5e: Fix use-after-free race in sample_restore_put()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 36a3196256bf3310e5e7142b0e61787f7a201abd · < 1daecd76ab9e5f055fe3970462410ad1d40bd177| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net/mlx5e: Fix use-after-free race in sample_restore_put()
Concurrent teardown of TC sample rules sharing the same restore context may re-read restore->count after dropping restore_lock. At that point another thread may already have completed cleanup and freed the restore object.
Use the result of the refcount decrement while holding restore_lock to determine whether cleanup is needed.
From the CVE record · Linux
A use-after-free race affects the Linux kernel's net/mlx5e sample_restore_put() function. During concurrent teardown of TC sample rules that share a restore context, one thread may read the context after another has freed it. The input does not establish whether an attacker can trigger this race or what access would be required.
Teams running Linux kernels using net/mlx5e should check their versions; affected versions are not specified.