# CVE-2026-98015: net/mlx5: E-Switch: fix use-after-free in mlx5\_eswitch\_termtbl\_put

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.22% (percentile 7, 2026-11-26)
- **Published:** 2026-09-25T10:23:37.724Z
- **Modified:** 2026-10-19T10:17:55.007Z

## Who should check

- Anyone running Linux \>= 10caabdaad5ace85577a453da97d1f8d3b944427, \< e3ee194a790896fa92fea20b5385a354be2f2c12; \>= 10caabdaad5ace85577a453da97d1f8d3b944427, \< b1398c9dfb5d3d4faaf6905ff7d98110a5d2c797; \>= 10caabdaad5ace85577a453da97d1f8d3b944427, \< 92f581cac93a71723456ac79ef54d9f60a251b42; \>= 10caabdaad5ace85577a453da97d1f8d3b944427, \< a5833fdf53350b8b95a558fcf0056ddb1c0fe154; \>= 10caabdaad5ace85577a453da97d1f8d3b944427, \< 304ea40ef4561671503c36e47da44a0a31b71e36; \>= 10caabdaad5ace85577a453da97d1f8d3b944427, \< e393789e92310d7c66f57c876101779c90816a12; \>= 10caabdaad5ace85577a453da97d1f8d3b944427, \< 18b2969073879b9cce24e1a78b118bdad54518d1; \>= 10caabdaad5ace85577a453da97d1f8d3b944427, \< 7ee07f601f8f507c9faf25c68a49396ab8950596
- Anyone running Linux 5.3

## 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.

## Affected and fixed versions

- Linux: \>= 10caabdaad5ace85577a453da97d1f8d3b944427, \< e3ee194a790896fa92fea20b5385a354be2f2c12; \>= 10caabdaad5ace85577a453da97d1f8d3b944427, \< b1398c9dfb5d3d4faaf6905ff7d98110a5d2c797; \>= 10caabdaad5ace85577a453da97d1f8d3b944427, \< 92f581cac93a71723456ac79ef54d9f60a251b42; \>= 10caabdaad5ace85577a453da97d1f8d3b944427, \< a5833fdf53350b8b95a558fcf0056ddb1c0fe154; \>= 10caabdaad5ace85577a453da97d1f8d3b944427, \< 304ea40ef4561671503c36e47da44a0a31b71e36; \>= 10caabdaad5ace85577a453da97d1f8d3b944427, \< e393789e92310d7c66f57c876101779c90816a12; \>= 10caabdaad5ace85577a453da97d1f8d3b944427, \< 18b2969073879b9cce24e1a78b118bdad54518d1; \>= 10caabdaad5ace85577a453da97d1f8d3b944427, \< 7ee07f601f8f507c9faf25c68a49396ab8950596 (cvelist)
- Linux: 5.3 (cvelist)

## Mitigation

- Upgrade Linux to 7ee07f601f8f507c9faf25c68a49396ab8950596 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-98015. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-98015.md
Affected: Linux >= 10caabdaad5ace85577a453da97d1f8d3b944427, < e3ee194a790896fa92fea20b5385a354be2f2c12; >= 10caabdaad5ace85577a453da97d1f8d3b944427, < b1398c9dfb5d3d4faaf6905ff7d98110a5d2c797; >= 10caabdaad5ace85577a453da97d1f8d3b944427, < 92f581cac93a71723456ac79ef54d9f60a251b42; >= 10caabdaad5ace85577a453…
Fixed in: Linux 92f581cac93a71723456ac79ef54d9f60a251b42, Linux 304ea40ef4561671503c36e47da44a0a31b71e36, Linux 18b2969073879b9cce24e1a78b118bdad54518d1, Linux 7ee07f601f8f507c9faf25c68a49396ab8950596

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-98015 being exploited?

There is no confirmed exploitation: CVE-2026-98015 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-98015?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-98015?

Linux \>= 10caabdaad5ace85577a453da97d1f8d3b944427, \< e3ee194a790896fa92fea20b5385a354be2f2c12; \>= 10caabdaad5ace85577a453da97d1f8d3b944427, \< b1398c9dfb5d3d4faaf6905ff7d98110a5d2c797; \>= 10caabdaad5ace85577a453da97d1f8d3b944427, \< 92f581cac93a71723456ac79ef54d9f60a251b42; \>= 10caabdaad5ace85577a453da97d1f8d3b944427, \< a5833fdf53350b8b95a558fcf0056ddb1c0fe154; \>= 10caabdaad5ace85577a453da97d1f8d3b944427, \< 304ea40ef4561671503c36e47da44a0a31b71e36; \>= 10caabdaad5ace85577a453da97d1f8d3b944427, \< e393789e92310d7c66f57c876101779c90816a12; \>= 10caabdaad5ace85577a453da97d1f8d3b944427, \< 18b2969073879b9cce24e1a78b118bdad54518d1; \>= 10caabdaad5ace85577a453da97d1f8d3b944427, \< 7ee07f601f8f507c9faf25c68a49396ab8950596; Linux 5.3.

### Is there a fix for CVE-2026-98015?

Yes. Fixed in Linux 92f581cac93a71723456ac79ef54d9f60a251b42, Linux 304ea40ef4561671503c36e47da44a0a31b71e36, Linux 18b2969073879b9cce24e1a78b118bdad54518d1, Linux 7ee07f601f8f507c9faf25c68a49396ab8950596. Upgrade Linux to 7ee07f601f8f507c9faf25c68a49396ab8950596 or later.

### How do I check if I'm affected by CVE-2026-98015?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/e3ee194a790896fa92fea20b5385a354be2f2c12>
- other: <https://git.kernel.org/stable/c/b1398c9dfb5d3d4faaf6905ff7d98110a5d2c797>
- other: <https://git.kernel.org/stable/c/92f581cac93a71723456ac79ef54d9f60a251b42>
- other: <https://git.kernel.org/stable/c/a5833fdf53350b8b95a558fcf0056ddb1c0fe154>
- other: <https://git.kernel.org/stable/c/304ea40ef4561671503c36e47da44a0a31b71e36>
- other: <https://git.kernel.org/stable/c/e393789e92310d7c66f57c876101779c90816a12>
- other: <https://git.kernel.org/stable/c/18b2969073879b9cce24e1a78b118bdad54518d1>
- other: <https://git.kernel.org/stable/c/7ee07f601f8f507c9faf25c68a49396ab8950596>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-98015>

HTML: <https://flawdb.com/CVE-2026-98015> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-98015>
