CVE-2026-138868: Linux kernel · mm/hugetlb: charge folios to the target mm's memcg
Source GCVE Database
Not known to be exploited · fixed in d0497a8491ebe5e8f8b53236e24adb3e9c9c5bd3 : update Linux kernel when convenient.
Data as of 30 Nov 2026, 17:16 UTC
Rated by Threat Radar · CVSS not yet scored by NVD
Thin evidence
One scorer or none- Patch
- Available – fixed in d0497a8491ebe5e8f8b53236e24adb3e9c9c5bd3, ce8381ddd3877529d28b42b11b43ed214b0f5452, c2deb1356d82c9d54bd2fcf1241cc97eb66fd81f +1
Exploitation evidence
Disclosed: evidence found.
CVE published 30 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Nov 2026.
What to do
Upgrade Linux kernel to d0497a8491ebe5e8f8b53236e24adb3e9c9c5bd3, ce8381ddd3877529d28b42b11b43ed214b0f5452, c2deb1356d82c9d54bd2fcf1241cc97eb66fd81f or 0744fbc37eba382754056844253da10d3702babb.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| LinuxLinux | Affected
| Fixed in
|
| LinuxLinux | Affected
| Fixed in
|
| LinuxLinux | Affected
| Fixed in
|
| LinuxLinux | Affected
| Fixed in
|
| LinuxLinux | Affected
| Fixed in– |
Description
In the Linux kernel, the following vulnerability has been resolved: mm/hugetlb: charge folios to the target mm's memcg HugeTLB folios are currently charged to the memcg of the allocating task. This gives the wrong result when a userfaultfd handler populates a HugeTLB VMA that belongs to another process. The UFFDIO_COPY ioctl operates on the userfaultfd context's mm, but get_mem_cgroup_from_current() charges the folio to the handler's memcg instead. This can be reproduced by placing the faulting process and its userfaultfd handler in different memory cgroups. Have the target process register a HugeTLB mapping with userfaultfd, trigger a missing fault, and let the handler resolve it with UFFDIO_COPY. The hugepage usage is then reported in the handler's memory.current instead of the target's. The generic userfaultfd population path avoids this problem by charging folios to dst_vma->vm_mm. Pass the target mm through hugetlb_alloc_folio() and charge the folio by using get_mem_cgroup_from_mm(). This preserves the existing charge timing and error handling while making HugeTLB userfaultfd population consistent with the generic path.
References
- nvd.nist.gov/vuln/detail/CVE-2026-138868 (opens in a new tab)
- git.kernel.org/stable/c/0744fbc37eba382754056844253da10d3702babb (opens in a new tab)
- git.kernel.org/stable/c/c2deb1356d82c9d54bd2fcf1241cc97eb66fd81f (opens in a new tab)
- git.kernel.org/stable/c/ce8381ddd3877529d28b42b11b43ed214b0f5452 (opens in a new tab)
- git.kernel.org/stable/c/d0497a8491ebe5e8f8b53236e24adb3e9c9c5bd3 (opens in a new tab)