Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-138868

published

mm/hugetlb: charge folios to the target mm's memcg

Published
30 Nov 2026, 13:25:44 UTC
Updated
30 Nov 2026, 13:25:44 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux8cba9576df601c384abd334a503c3f6e1e29eefb to < d0497a8491ebe5e8f8b53236e24adb3e9c9c5bd3 · 8cba9576df601c384abd334a503c3f6e1e29eefb to < 0744fbc37eba382754056844253da10d3702babb · 8cba9576df601c384abd334a503c3f6e1e29eefb to < ce8381ddd3877529d28b42b11b43ed214b0f5452 · 8cba9576df601c384abd334a503c3f6e1e29eefb to < c2deb1356d82c9d54bd2fcf1241cc97eb66fd81f · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.7 (affected) · 0 to < 6.7 (unaffected · semver) · 6.12.118 through 6.12.* (unaffected · semver) · 6.18.64 through 6.18.* (unaffected · semver) · 7.3.4 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux

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.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

No normalized assessments.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 8cba9576df601c384abd334a503c3f6e1e29eefb to < d0497a8491ebe5e8f8b53236e24adb3e9c9c5bd3 (affected · git)8cba9576df601c384abd334a503c3f6e1e29eefb to < 0744fbc37eba382754056844253da10d3702babb (affected · git)8cba9576df601c384abd334a503c3f6e1e29eefb to < ce8381ddd3877529d28b42b11b43ed214b0f5452 (affected · git)8cba9576df601c384abd334a503c3f6e1e29eefb to < c2deb1356d82c9d54bd2fcf1241cc97eb66fd81f (affected · git)Default: unaffected Linux · cna
Linux Linux 6.7 (affected)0 to < 6.7 (unaffected · semver)6.12.118 through 6.12.* (unaffected · semver)6.18.64 through 6.18.* (unaffected · semver)7.3.4 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

4

Provider assertions

1

Linux · cna

mm/hugetlb: charge folios to the target mm's memcg

Provenance

Schema
5.2
Searchable
yes
Content hash
0b661a68eda1f4ef5119c191acbb77686867c443763a3b125ab6bbe2be90df59
Ingested
30 Nov 2026, 13:30:06 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected