VDB

CVE-2026-45837

CVE-2026-45837 PUBLISHED

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

EPSS Score
0.12%
1.6th percentile

Affected products

VendorProductVersions
LinuxLinux317460317a02a1af512697e6e964298dedd8a163, 317460317a02a1af512697e6e964298dedd8a163, 317460317a02a1af512697e6e964298dedd8a163
LinuxLinux6.9, 0, 6.12.88
linuxlinux_kernel6.9, 6.9, 6.9
amazon:2023kernel6.18-modules-extra0
LinuxLinux317460317a02a1af512697e6e964298dedd8a163, 7.1, 7.0.7
amazon:2023kernel6.18-tools0
amazon:2023kernel6.12-tools0
amazon:2023kernel6.120
amazon:2023kernel-livepatch-6.12.88-119.1570
amazon:2023kernel6.180
amazon:2023kernel6.18-headers0
amazon:2023perf6.180
amazon:2023kernel6.12-modules-extra-common0
amazon:2023kernel6.12-headers0
amazon:2023python3-perf6.180
amazon:2023python3-perf6.120
amazon:2023kernel6.18-devel0
amazon:2023kernel6.18-tools-devel0
amazon:2023kernel-livepatch-6.18.30-61.1160
amazon:2023kernel6.12-modules-extra0

…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

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›