CVE-2026-138868: mm/hugetlb: charge folios to the target mm's memcg
Vulnerability summary
CVE-2026-138868 is a vulnerability in linux with no CVSS score yet. EPSS estimates a 0.21% chance of exploitation in the next 30 days, higher than 11.7% of scored vulnerabilities.
No CVSS vector published; no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 1Timeline
- 30-11-2026PublishedVulnerability first disclosed.
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.
CVSS metrics
Risk metrics not yet published.
EPSS trend
Probability
0.21%
Chance of exploitation in the next 30 days
Percentile
12%
Versus all other CVEs
30-day change
Change unavailable
Change unavailable
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeNo weakness data has been published for this record.
Affected systems
Known conditions: not stated in public data.
Ubuntu169 products
- linuxAll versions (No fix recorded)
- linux-allwinner-5.19All versions (No fix recorded)
- linux-awsAll versions (No fix recorded)
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Debian2 products
- linux< 6.12.118-1 | < 7.3.4-1
- linux-6.12< 6.12.118-1~deb12u1
Linux1 product
- linux≥ 8cba9576df601c384abd334a503c3f6e1e29eefb, < d0497a8491ebe5e8f8b53236e24adb3e9c9c5bd3 | ≥ 8cba9576df601c384abd334a503c3f6e1e29eefb, < 0744fbc37eba382754056844253da10d3702babb | ≥ 8cba9576df601c384abd334a503c3f6e1e29eefb, < ce8381ddd3877529d28b42b11b43ed214b0f5452 | ≥ 8cba9576df601c384abd334a503c3f6e1e29eefb, < c2deb1356d82c9d54bd2fcf1241cc97eb66fd81f | 6.7
3 vendors · 172 products