Description
In the Linux kernel, the following vulnerability has been resolved:

net/mlx5: E-Switch: fix use-after-free in mlx5_eswitch_termtbl_put

In mlx5_eswitch_termtbl_put(), the zero-ref cleanup check reads
tt->ref_count after termtbl_mutex has been released. Two concurrent
callers on the same mlx5_termtbl_handle race: one decrements ref_count
to zero, removes the hash entry, and calls kfree(tt) while the other
has already dropped the mutex and is about to evaluate
if (!tt->ref_count), producing a use-after-free.

Fix this by capturing the result of the decrement into a stack-local
last variable before dropping the mutex. The cleanup decision is now
made entirely under termtbl_mutex, and tt is not touched after
kfree.
Published: 2026-09-25
Score: 7.0 High
EPSS: < 1% Very Low
KEV: No
Impact: Kernel Memory Corruption via Use‑After‑Free in mlx5 E‑Switch driver
Action: Patch Immediately
AI Analysis

Impact

If two processes call the mlx5_eswitch_termtbl_put() function concurrently, the reference counter for a terminal table can be decremented to zero, its hash entry removed, and the structure freed while the other process still evaluates the counter. This race creates a use‑after‑free that corrupts kernel memory, potentially leading to a crash or arbitrary code execution with kernel privileges. The flaw stems from a missing synchronization boundary around the reference count check, a concurrency issue.

Affected Systems

All Linux kernel releases that include the mlx5 driver without the commit that restores safe reference handling are affected. Because the data does not provide specific kernel versions, any system running an unpatched kernel with the mlx5 E‑Switch features is at risk. The vulnerability is part of the core kernel networking stack and applies to all distributions shipping the default kernel module.

Risk and Exploitability

The CVSS score of 7.0 signifies a high‑severity flaw. The EPSS score of <1% suggests a low probability of exploitation, and the vulnerability is not listed in the CISA KEV catalog. It is inferred that an attacker could trigger the race condition by manipulating traffic sent to the mlx5 interface, making the vulnerability potentially reachable from a local or remote network context. If successful, the attacker could corrupt system memory, crash the host, or gain kernel‑level privileges, but no public exploitation evidence is currently available.

Generated by OpenCVE AI on October 1, 2026 at 01:43 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest Linux kernel update that incorporates the commit restoring safe reference handling in mlx5_eswitch_termtbl_put.
  • Reboot the affected machines to load the updated kernel and driver modules.
  • If an immediate kernel upgrade is infeasible, disable or unload the mlx5 driver or the E‑Switch feature so that the vulnerable code path remains unreachable.

Generated by OpenCVE AI on October 1, 2026 at 01:43 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4817-1 linux-6.12 security update
Debian DLA Debian DLA DLA-4841-1 linux security update
Debian DSA Debian DSA DSA-6528-1 linux security update
Ubuntu USN Ubuntu USN USN-8961-1 Linux kernel vulnerabilities
History

Sat, 03 Oct 2026 11:15:00 +0000


Wed, 30 Sep 2026 14:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-362
CWE-416

Tue, 29 Sep 2026 13:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-825
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.0, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H'}

threat_severity

Moderate


Fri, 25 Sep 2026 15:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-362
CWE-416

Fri, 25 Sep 2026 10:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: net/mlx5: E-Switch: fix use-after-free in mlx5_eswitch_termtbl_put In mlx5_eswitch_termtbl_put(), the zero-ref cleanup check reads tt->ref_count after termtbl_mutex has been released. Two concurrent callers on the same mlx5_termtbl_handle race: one decrements ref_count to zero, removes the hash entry, and calls kfree(tt) while the other has already dropped the mutex and is about to evaluate if (!tt->ref_count), producing a use-after-free. Fix this by capturing the result of the decrement into a stack-local last variable before dropping the mutex. The cleanup decision is now made entirely under termtbl_mutex, and tt is not touched after kfree.
Title net/mlx5: E-Switch: fix use-after-free in mlx5_eswitch_termtbl_put
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-10-19T09:12:20.637Z

Reserved: 2026-09-25T10:19:56.069Z

Link: CVE-2026-98015

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-25T11:17:29.927

Modified: 2026-10-19T10:17:55.007

Link: CVE-2026-98015

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-09-25T00:00:00Z

Links: CVE-2026-98015 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-01T01:45:16Z

Weaknesses
  • CWE-825

    Expired Pointer Dereference