---
id: CVE-2026-98016
title: |-
  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 dro…
summary: |-
  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 dro…
severity: high
cvss: 7
cvssVector: 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-825
  - CWE-416
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= 36a3196256bf3310e5e7142b0e61787f7a201abd <
    cdf920e44cbbee1900c66f002fb50afee20977d4
  - >-
    Linux >= 36a3196256bf3310e5e7142b0e61787f7a201abd <
    308e1cbb0d9712081f90860fe839ccb47bc196ee
  - >-
    Linux >= 36a3196256bf3310e5e7142b0e61787f7a201abd <
    8267e46d14e847e80e0aebe366d348e8a484a619
  - >-
    Linux >= 36a3196256bf3310e5e7142b0e61787f7a201abd <
    3efd1a1938cbb33c53b0d75e55b6c0fe2ebad79a
  - >-
    Linux >= 36a3196256bf3310e5e7142b0e61787f7a201abd <
    72324da8eeca269db9196c2a555abf72eb0385c5
  - >-
    Linux >= 36a3196256bf3310e5e7142b0e61787f7a201abd <
    1daecd76ab9e5f055fe3970462410ad1d40bd177
  - >-
    Linux >= 36a3196256bf3310e5e7142b0e61787f7a201abd <
    af3aef0245abbab5e9f6302e7a7d6407187afb71
  - Linux 5.13
published: '2026-09-25'
updated: '2026-10-03'
sourceUpdated: '2026-10-03T11:18:24.777'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-98016'
references:
  - url: 'https://git.kernel.org/stable/c/1daecd76ab9e5f055fe3970462410ad1d40bd177'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/308e1cbb0d9712081f90860fe839ccb47bc196ee'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/3efd1a1938cbb33c53b0d75e55b6c0fe2ebad79a'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/72324da8eeca269db9196c2a555abf72eb0385c5'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/8267e46d14e847e80e0aebe366d348e8a484a619'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/af3aef0245abbab5e9f6302e7a7d6407187afb71'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/cdf920e44cbbee1900c66f002fb50afee20977d4'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-98016.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-98016'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2541171'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-98016'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-98016'
  - url: >-
      https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2026/CVE-2026-98016.mbox
  - url: 'https://kernelcve.org/list/?q=CVE-2026-98016'
tags:
  - nvd
  - cve.org
  - csaf
  - vex
  - red-hat
epss: 0.00173
epssPercentile: 0.06632
cvssSource: vendor
ingestedAt: '2026-09-25T11:06:38.857Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Vendor advisories

- **Red Hat VEX** · Moderate · affected: Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 6, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9, Red Hat OpenShift Container Platform 4 · no fix planned: Red Hat Enterprise Linux 6, Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9, … · updated 2026-10-21 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-98016.json)
