high · CVSS v3 7.8
CVE-2026-98015
CVE-2026-98015 is a use-after-free vulnerability within the Linux kernel's Mellanox MLX5 E-Switch implementation. The flaw occurs due to a r
Overview
CVE-2026-98015 is a use-after-free vulnerability within the Linux kernel's Mellanox MLX5 E-Switch implementation. The flaw occurs due to a race condition during termtbl (termination table) cleanup, specifically in how reference counts are handled. This could lead to kernel memory corruption and potential system instability.
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.
Impact
Successful exploitation could lead to a denial of service (DoS) or potentially allow for privilege escalation. Confidentiality, Integrity, and Availability are all potentially impacted. Systems utilizing Mellanox MLX5 E-Switch functionality are at risk, particularly those with high network traffic or concurrent operations on termination tables.
Remediation
Apply the kernel patch provided by your distribution vendor. Ensure kernel modules related to MLX5 E-Switch are updated. Monitor kernel logs for any related errors or crashes after patching.
Risk context
This vulnerability is rated as High severity (CVSS v3: 7.8). While an EPSS score is not available, the potential for kernel-level impact warrants prompt attention. Prioritize patching based on the prevalence of MLX5 E-Switch usage within your environment.
Affected products
- Linux Kernel (net/mlx5)
- Mellanox MLX5 E-Switch
Scores
- Severity
- high
- CVSS v2
- 7.2
- CVSS v3
- 7.8
- CVSS v4
- —
- EPSS
- —