CVE-2026-98015
net/mlx5: E-Switch: fix use-after-free in mlx5_eswitch_termtbl_put
Reported by linux · Published September 25, 2026
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.
EPSS 0.18% · 7.3th percentile
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel6.12 | Amazon Linux | 1:6.12.111-136.204.amzn2023 |
| python3-perf6.12 | Amazon Linux | 1:6.12.111-136.204.amzn2023 |
| kernel6.18-tools-devel | Amazon Linux | 1:6.18.54-121.166.amzn2023 |
| kernel-livepatch-6.12.111-136.204 | Amazon Linux | 1:1.0-0.amzn2023 |
| kernel6.18-devel | Amazon Linux | 1:6.18.54-121.166.amzn2023 |
| kernel6.18-modules-extra | Amazon Linux | 1:6.18.54-121.166.amzn2023 |
| python3-perf6.18 | Amazon Linux | 1:6.18.54-121.166.amzn2023 |
| kernel-headers | Amazon Linux | 1:6.1.189-236.399.amzn2023 |
| perf6.18 | Amazon Linux | 1:6.18.54-121.166.amzn2023 |
| kernel-tools-devel | Amazon Linux | 1:6.1.189-236.399.amzn2023 |
| kernel6.12-devel | Amazon Linux | 1:6.12.111-136.204.amzn2023 |
| kernel-livepatch-6.18.54-121.166 | Amazon Linux | 1:1.0-0.amzn2023 |
3 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 10caabdaad5ace85577a453da97d1f8d3b944427, 10caabdaad5ace85577a453da97d1f8d3b944427, 10caabdaad5ace85577a453da97d1f8d3b944427 |
| Linux | Linux | 5.3, 0, 5.10.271 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | python3-perf6.12 | 0 |
| amazon:2023 | kernel6.18-tools-devel | 0 |
| amazon:2023 | kernel-livepatch-6.12.111-136.204 | 0 |
| amazon:2023 | kernel6.18-devel | 0 |
| amazon:2023 | kernel6.18-modules-extra | 0 |
| amazon:2023 | python3-perf6.18 | 0 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | perf6.18 | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | kernel6.12-devel | 0 |
| amazon:2023 | kernel-livepatch-6.18.54-121.166 | 0 |
| amazon:2023 | microvm-kernel | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2023 | kernel-livepatch-6.1.189-236.399 | 0 |
| linux | linux_kernel | 5.3, 5.3, 5.3 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel6.12-tools-devel | 0 |
…and 19 more
Timeline
- Sep 25, 2026 CVE Published
- Sep 26, 2026 EPSS Score (8 in total, the first dated here)
- Oct 19, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-98015
vulnetix vdb fixes CVE-2026-98015
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-98015/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart