CVE-2026-53085
bpf: fix mm lifecycle in open-coded task_vma iterator
Reported by linux · Published June 24, 2026
In the Linux kernel, the following vulnerability has been resolved: bpf: fix mm lifecycle in open-coded task_vma iterator The open-coded task_vma iterator reads task->mm locklessly and acquires mmap_read_trylock() but never calls mmget(). If the task exits concurrently, the mm_struct can be freed as it is not SLAB_TYPESAFE_BY_RCU, resulting in a use-after-free. Safely read task->mm with a trylock on alloc_lock and acquire an mm reference. Drop the reference via bpf_iter_mmput_async() in _destroy() and error paths. bpf_iter_mmput_async() is a local wrapper around mmput_async() with a fallback to mmput() on !CONFIG_MMU. Reject irqs-disabled contexts (including NMI) up front. Operations used by _next() and _destroy() (mmap_read_unlock, bpf_iter_mmput_async) take spinlocks with IRQs disabled (pool->lock, pi_lock). Running from NMI or from a tracepoint that fires with those locks held could deadlock. A trylock on alloc_lock is used instead of the blocking task_lock() (get_task_mm) to avoid a deadlock when a softirq BPF program iterates a task that already holds its alloc_lock on the same CPU.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| bpftool6.12 | Amazon Linux | 1:6.12.92-122.166.amzn2023 |
| kernel6.12-headers | Amazon Linux | 1:6.12.92-122.166.amzn2023 |
| kernel-livepatch-6.18.33-63.124 | Amazon Linux | 1:1.0-0.amzn2023 |
| kernel6.18-tools | Amazon Linux | 1:6.18.33-63.124.amzn2023 |
| kernel6.12-devel | Amazon Linux | 1:6.12.92-122.166.amzn2023 |
| kernel6.18-tools-devel | Amazon Linux | 1:6.18.33-63.124.amzn2023 |
| kernel6.12-modules-extra-common | Amazon Linux | 1:6.12.92-122.166.amzn2023 |
| kernel6.18-modules-extra-common | Amazon Linux | 1:6.18.33-63.124.amzn2023 |
| kernel6.18 | Amazon Linux | 1:6.18.33-63.124.amzn2023 |
| kernel6.18-devel | Amazon Linux | 1:6.18.33-63.124.amzn2023 |
| kernel6.12-modules-extra | Amazon Linux | 1:6.12.92-122.166.amzn2023 |
| kernel6.18-headers | Amazon Linux | 1:6.18.33-63.124.amzn2023 |
8 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 4ac4546821584736798aaa9e97da9f6eaf689ea3, 4ac4546821584736798aaa9e97da9f6eaf689ea3, 4ac4546821584736798aaa9e97da9f6eaf689ea3 |
| Linux | Linux | 6.7, 0, 6.12.91 |
| amazon:2023 | bpftool6.12 | 0 |
| Red Hat | Red Hat Enterprise Linux 8 | |
| amazon:2023 | kernel6.12-headers | 0 |
| amazon:2023 | kernel-livepatch-6.18.33-63.124 | 0 |
| amazon:2023 | kernel6.18-tools | 0 |
| Red Hat | Red Hat Enterprise Linux 9 | |
| Red Hat | Red Hat Enterprise Linux 7 | |
| Red Hat | Red Hat Enterprise Linux 9 | |
| amazon:2023 | kernel6.12-devel | 0 |
| amazon:2023 | kernel6.18-tools-devel | 0 |
| Red Hat | Red Hat Enterprise Linux 6 | |
| amazon:2023 | kernel6.12-modules-extra-common | 0 |
| Red Hat | Red Hat Enterprise Linux 10 | |
| Red Hat | Red Hat Enterprise Linux 10 | |
| Red Hat | Red Hat Enterprise Linux 8 | |
| amazon:2023 | kernel6.18-modules-extra-common | 0 |
| amazon:2023 | kernel6.18 | 0 |
| Red Hat | Red Hat Enterprise Linux 6 |
…and 19 more
Timeline
- Jun 24, 2026 CVE Published
- Jun 25, 2026 EPSS Score (13 in total, the first dated here)
- Jun 25, 2026 Coalition ESS Score
- Aug 11, 2026 Distribution Patch (63 in total, the first dated here)
- Aug 11, 2026 Security Advisory (63 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-53085
vulnetix vdb fixes CVE-2026-53085
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-53085/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart