Overview
About vulnerability
In the Linux kernel, the following vulnerability has been resolved:
xen/privcmd: fix double free via VMA splitting
privcmd_vm_ops defines .close (privcmd_close), but neither .may_split nor .open. When userspace does a partial munmap() on a privcmd mapping, the kernel splits the VMA via __split_vma(). Since may_split is NULL, the split is allowed. vm_area_dup() copies vm_private_data (a pages array allocated in alloc_empty_pages()) into the new VMA without any fixup, because there is no .open callback.
Both VMAs now point to the same pages array. When the unmapped portion is closed, privcmd_close() calls:
- xen_unmap_domain_gfn_range()
- xen_free_unpopulated_pages()
- kvfree(pages)
The surviving VMA still holds the dangling pointer. When it is later destroyed, the same sequence runs again, which leads to a double free.
Fix this issue by adding a .may_split callback denying the VMA split.
This is XSA-487 / CVE-2026-31787
Details
- Affected product:
- AlmaLinux 9.2 ESU , Amazon Linux 2 ELS , CentOS 7 ELS , CentOS 8.4 ELS , CentOS 8.5 ELS , CentOS Stream 8 ELS , CloudLinux 7 ELS , Debian 10 ELS , Oracle Linux 7 ELS , RHEL 7 ELS , TuxCare 9.6 ESU , Ubuntu 16.04 ELS , Ubuntu 18.04 ELS , Ubuntu 20.04 ELS
- Affected packages:
- kernel @ 3.10.0 (+15 more)
Fixes
KernelCare state
Live-patch status from KernelCare for each operating system.
| Operating system | Status | Covered kernels |
|---|---|---|
| AlmaLinux 10 | Released |
33 kernels
|
| AlmaLinux 8 | Released |
109 kernels
|
| AlmaLinux 9 | Released |
110 kernels
|
| AlmaLinux 9.2 ESU | Ready For Release | — |
| Amazon Linux 2023 | Planned | — |
| CentOS 7 ELS | Planned | — |
| CentOS 8 | Released |
21 kernels
|
| CloudLinux OS 7h | Released |
104 kernels
|
| CloudLinux OS 8 | Released |
101 kernels
|
| Debian 11 | Planned | — |
| Debian 11 cloud | Planned | — |
| Debian 12 | Planned | — |
| Debian 13 | Planned | — |
| Oracle Linux 8 | Released |
118 kernels
|
| Oracle Linux 9 | Released |
109 kernels
|
| RHEL 10 | Released |
37 kernels
|
| RHEL 8 | Released |
113 kernels
|
| RHEL 9 | Released |
108 kernels
|
| Rocky Linux 10 | Released |
27 kernels
|
| Rocky Linux 8 | Released |
91 kernels
|
| Rocky Linux 9 | Released |
88 kernels
|