CVE-2026-45837
bpf: Fix use-after-free in arena_vm_close on fork
Reported by linux · Published May 27, 2026
In the Linux kernel, the following vulnerability has been resolved: bpf: Fix use-after-free in arena_vm_close on fork arena_vm_open() only bumps vml->mmap_count but never registers the child VMA in arena->vma_list. The vml->vma always points at the parent VMA, so after parent munmap the pointer dangles. If the child then calls bpf_arena_free_pages(), zap_pages() reads the stale vml->vma triggering use-after-free. Fix this by preventing the arena VMA from being inherited across fork with VM_DONTCOPY, and preventing VMA splits via the may_split callback. Also reject mremap with a .mremap callback returning -EINVAL. A same-size mremap(MREMAP_FIXED) on the full arena VMA reaches copy_vma() through the following path: check_prep_vma() - returns 0 early: new_len == old_len skips VM_DONTEXPAND check prep_move_vma() - vm_start == old_addr and vm_end == old_addr + old_len so may_split is never called move_vma() copy_vma_and_data() copy_vma() vm_area_dup() - copies vm_private_data (vml pointer) vm_ops->open() - bumps vml->mmap_count vm_ops->mremap() - returns -EINVAL, rollback unmaps new VMA The refcount ensures the rollback's arena_vm_close does not free the vml shared with the original VMA.
EPSS 0.12% · 1.6th percentile
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 317460317a02a1af512697e6e964298dedd8a163, 317460317a02a1af512697e6e964298dedd8a163, 317460317a02a1af512697e6e964298dedd8a163 |
| Linux | Linux | 6.9, 0, 6.12.88 |
| linux | linux_kernel | 6.9, 6.9, 6.9 |
| amazon:2023 | kernel6.18-modules-extra | 0 |
| Linux | Linux | 317460317a02a1af512697e6e964298dedd8a163, 7.1, 7.0.7 |
| amazon:2023 | kernel6.18-tools | 0 |
| amazon:2023 | kernel6.12-tools | 0 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | kernel-livepatch-6.12.88-119.157 | 0 |
| amazon:2023 | kernel6.18 | 0 |
| amazon:2023 | kernel6.18-headers | 0 |
| amazon:2023 | perf6.18 | 0 |
| amazon:2023 | kernel6.12-modules-extra-common | 0 |
| amazon:2023 | kernel6.12-headers | 0 |
| amazon:2023 | python3-perf6.18 | 0 |
| amazon:2023 | python3-perf6.12 | 0 |
| amazon:2023 | kernel6.18-devel | 0 |
| amazon:2023 | kernel6.18-tools-devel | 0 |
| amazon:2023 | kernel-livepatch-6.18.30-61.116 | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
…and 6 more
Timeline
- May 26, 2026 CVE Published
- May 27, 2026 EPSS Score (14 in total, the first dated here)
- May 29, 2026 Security Advisory (34 in total, the first dated here)
- Jun 4, 2026 Coalition ESS Score
- Jun 26, 2026 CVE Updated
- Aug 11, 2026 Distribution Patch (29 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-45837
vulnetix vdb fixes CVE-2026-45837
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-45837/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart