{"id":"CVE-2026-138895","sourceIdentifier":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","published":"2026-11-30T14:17:47.383","lastModified":"2026-11-30T14:17:47.383","vulnStatus":"Received","cveTags":[],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm: hugetlb: drop refcount before freeing on memcg charge failure\n\nWhen mem_cgroup_charge_hugetlb(folio, gfp) returns -ENOMEM, the folio has\nits refcount set to 1 via folio_ref_unfreeze(folio, 1).\n\nThe error path calls free_huge_folio(folio) directly, which expects a\nrefcount of 0.  Hence, VM_BUG_ON_FOLIO(folio_ref_count(folio), folio) is\ntriggered.\n\nEven with CONFIG_DEBUG_VM disabled, returning a folio with refcount 1 to\nthe freelist can corrupt allocator state later.\n\nUse folio_put(folio) instead of free_huge_folio(folio) to properly drop\nthe reference before freeing it."}],"affected":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","affectedData":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","programFiles":["mm/hugetlb.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"991135774c0e05a4734e6d32aa03b00355e4cac9","lessThan":"eeb9425606f386f726b47ee323687ee02c7b34f8","versionType":"git","status":"affected"},{"version":"991135774c0e05a4734e6d32aa03b00355e4cac9","lessThan":"3f87063217efc3b0198e49ec1a9b262ff81ac406","versionType":"git","status":"affected"},{"version":"991135774c0e05a4734e6d32aa03b00355e4cac9","lessThan":"e95d29c5df84f19881cd30b491fc81aa98f44b45","versionType":"git","status":"affected"}]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","programFiles":["mm/hugetlb.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"6.14","status":"affected"},{"version":"0","lessThan":"6.14","versionType":"semver","status":"unaffected"},{"version":"6.18.64","lessThanOrEqual":"6.18.*","versionType":"semver","status":"unaffected"},{"version":"7.3.4","lessThanOrEqual":"7.3.*","versionType":"semver","status":"unaffected"},{"version":"7.4-rc1","lessThanOrEqual":"*","versionType":"original_commit_for_fix","status":"unaffected"}]}]}],"metrics":{},"references":[{"url":"https://git.kernel.org/stable/c/3f87063217efc3b0198e49ec1a9b262ff81ac406","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/e95d29c5df84f19881cd30b491fc81aa98f44b45","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/eeb9425606f386f726b47ee323687ee02c7b34f8","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}]}