# CVE-2026-98016: net/mlx5e: Fix use-after-free race in sample_restore_put()

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 7% of CVEs (2026-11-30)
- Published: 2026-09-25T10:23:38.316Z
- Modified: 2026-10-19T10:17:55.230Z
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from 36a3196256bf3310e5e7142b0e61787f7a201abd before cdf920e44cbbee1900c66f002fb50afee20977d4; from 36a3196256bf3310e5e7142b0e61787f7a201abd before 308e1cbb0d9712081f90860fe839ccb47bc196ee; from 36a3196256bf3310e5e7142b0e61787f7a201abd before 8267e46d14e847e80e0aebe366d348e8a484a619; from 36a3196256bf3310e5e7142b0e61787f7a201abd before 3efd1a1938cbb33c53b0d75e55b6c0fe2ebad79a; from 36a3196256bf3310e5e7142b0e61787f7a201abd before 72324da8eeca269db9196c2a555abf72eb0385c5; from 36a3196256bf3310e5e7142b0e61787f7a201abd before 1daecd76ab9e5f055fe3970462410ad1d40bd177; from 36a3196256bf3310e5e7142b0e61787f7a201abd before af3aef0245abbab5e9f6302e7a7d6407187afb71; 5.13 (not affected: before 5.13; from 5.15.222 up to 5.15.*; from 6.1.189 up to 6.1.*; from 6.6.158 up to 6.6.*; from 6.12.111 up to 6.12.*; from 6.18.53 up to 6.18.*; from 7.2.7 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/cdf920e44cbbee1900c66f002fb50afee20977d4>
- <https://git.kernel.org/stable/c/308e1cbb0d9712081f90860fe839ccb47bc196ee>
- <https://git.kernel.org/stable/c/8267e46d14e847e80e0aebe366d348e8a484a619>
- <https://git.kernel.org/stable/c/3efd1a1938cbb33c53b0d75e55b6c0fe2ebad79a>
- <https://git.kernel.org/stable/c/72324da8eeca269db9196c2a555abf72eb0385c5>
- <https://git.kernel.org/stable/c/1daecd76ab9e5f055fe3970462410ad1d40bd177>
- <https://git.kernel.org/stable/c/af3aef0245abbab5e9f6302e7a7d6407187afb71>

## Sources

- CVE List: [CVE-2026-98016](https://www.cve.org/CVERecord?id=CVE-2026-98016), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-98016](https://nvd.nist.gov/vuln/detail/CVE-2026-98016), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2026-98016 · Whole record: https://cve.day/CVE-2026-98016.json · Rebuilt by cve.day 2026-11-25T22:59:41.024Z
