CVE-2026-45837

Source
https://cve.org/CVERecord?id=CVE-2026-45837
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-45837.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-45837
Downstream
Related
Published
2026-05-27T09:24:32.833Z
Modified
2026-07-08T07:01:43.137934171Z
Summary
bpf: Fix use-after-free in arena_vm_close on fork
Details

In the Linux kernel, the following vulnerability has been resolved:

bpf: Fix use-after-free in arenavmclose on fork

arenavmopen() only bumps vml->mmapcount but never registers the child VMA in arena->vmalist. The vml->vma always points at the parent VMA, so after parent munmap the pointer dangles. If the child then calls bpfarenafreepages(), zappages() reads the stale vml->vma triggering use-after-free.

Fix this by preventing the arena VMA from being inherited across fork with VMDONTCOPY, and preventing VMA splits via the maysplit callback.

Also reject mremap with a .mremap callback returning -EINVAL. A same-size mremap(MREMAPFIXED) on the full arena VMA reaches copyvma() through the following path:

checkprepvma() - returns 0 early: newlen == oldlen skips VMDONTEXPAND check prepmovevma() - vmstart == oldaddr and vmend == oldaddr + oldlen so maysplit is never called movevma() copyvmaanddata() copyvma() vmareadup() - copies vmprivatedata (vml pointer) vmops->open() - bumps vml->mmapcount vm_ops->mremap() - returns -EINVAL, rollback unmaps new VMA

The refcount ensures the rollback's arenavmclose does not free the vml shared with the original VMA.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45837.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
317460317a02a1af512697e6e964298dedd8a163
Fixed
723b9fa930cc277c15ce6b9ec9feec828cfac9d7
Fixed
d18099f19e53250f8ad2801498b88cec29d9107a
Fixed
201128fcc7b213d27ab77bc4e89488b41796480f
Fixed
4fddde2a732de60bb97e3307d4eb69ac5f1d2b74

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-45837.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.9.0
Fixed
6.12.88
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.30
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.0.7

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-45837.json"