CVE-2026-93137
bpf: Fix use-after-free on mm_struct in bpf_find_vma()
Reported by linux · Published September 17, 2026
In the Linux kernel, the following vulnerability has been resolved: bpf: Fix use-after-free on mm_struct in bpf_find_vma() bpf_find_vma() reads task->mm and calls mmap_read_trylock(mm) without holding a reference on the mm. On a foreign task, a concurrent exit_mm() can free the mm_struct between the lockless read and the trylock, resulting in a use-after-free. mm_struct is not SLAB_TYPESAFE_BY_RCU. For the current task, task->mm is stable. For a foreign task, pin the mm under task->alloc_lock and release it with mmput_async(), mirroring commit d8e27d2d22b6 ("bpf: fix mm lifecycle in open-coded task_vma iterator"). Use spin_trylock() instead of get_task_mm() so BPF context does not block on alloc_lock. Reject irqs-disabled contexts and !CONFIG_MMU on the foreign-task path because dropping the mm reference is not safe there. Race: CPU0 (BPF program) CPU1 (exiting task) ============================ ========================== bpf_find_vma(foreign_task): mm = task->mm exit_mm(): task->mm = NULL mmput(mm) -> frees mm_struct mmap_read_trylock(mm) // UAF on mm
EPSS 0.16% · 5.2th 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 |
|---|---|---|
| kernel | Amazon Linux | 1:6.1.188-233.385.amzn2023 |
| bpftool6.12 | Amazon Linux | 1:6.12.110-135.201.amzn2023 |
| kernel6.12-tools | Amazon Linux | 1:6.12.110-135.201.amzn2023 |
| kernel6.18-modules-extra | Amazon Linux | 1:6.18.54-121.166.amzn2023 |
| kernel6.12-modules-extra-common | Amazon Linux | 1:6.12.110-135.201.amzn2023 |
| kernel6.12 | Amazon Linux | 1:6.12.110-135.201.amzn2023 |
| kernel6.18-tools | Amazon Linux | 1:6.18.54-121.166.amzn2023 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 7c7e3d31e7856a8260a254f8c71db416f7f9f5a1, 7c7e3d31e7856a8260a254f8c71db416f7f9f5a1, 7c7e3d31e7856a8260a254f8c71db416f7f9f5a1 |
| Linux | Linux | 5.17, 0, 6.1.188 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | bpftool6.12 | 0 |
| amazon:2023 | kernel6.12-tools | 0 |
| amazon:2023 | kernel6.18-modules-extra | 0 |
| amazon:2023 | kernel6.12-modules-extra-common | 0 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | kernel6.18-tools | 0 |
| linux | linux_kernel | 5.17, 5.17, 5.17 |
| amazon:2023 | kernel6.18-devel | 0 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | python3-perf6.18 | 0 |
| amazon:2023 | bpftool6.18 | 0 |
| amazon:2023 | kernel6.18-modules-extra-common | 0 |
| amazon:2023 | perf6.12 | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | kernel6.12-headers | 0 |
| amazon:2023 | kernel6.18-headers | 0 |
| amazon:2023 | perf6.18 | 0 |
…and 19 more
Timeline
- Sep 17, 2026 CVE Published
- Sep 18, 2026 EPSS Score (9 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-93137
vulnetix vdb fixes CVE-2026-93137
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-93137/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart