{"id":"CVE-2024-35993","published":"2024-05-20T09:47:57Z","modified":"2026-08-05T11:31:27Z","title":"mm: turn folio_test_hugetlb into a PageType","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm: turn folio_test_hugetlb into a PageType\n\nThe current folio_test_hugetlb() can be fooled by a concurrent folio split\ninto returning true for a folio which has never belonged to hugetlbfs. \nThis can't happen if the caller holds a refcount on it, but we have a few\nplaces (memory-failure, compaction, procfs) which do not and should not\ntake a speculative reference.\n\nSince hugetlb pages do not use individual page mapcounts (they are always\nfully mapped and use the entire_mapcount field to record the number of\nmappings), the PageType field is available now that page_mapcount()\nignores the value in this field.\n\nIn compaction and with CONFIG_DEBUG_VM enabled, the current implementation\ncan result in an oops, as reported by Luis. This happens since 9c5ccf2db04b\n(\"mm: remove HUGETLB_PAGE_DTOR\") effectively added some VM_BUG_ON() checks\nin the PageHuge() testing path.\n\n[willy@infradead.org: update vmcoreinfo]","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00217,"percentile":0.12373,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/2431b5f2650dfc47ce782d1ca7b02d6b3916976f","tags":[]},{"url":"https://git.kernel.org/stable/c/9fdcc5b6359dfdaa52a55033bf50e2cedd66eb32","tags":[]},{"url":"https://git.kernel.org/stable/c/d99e3140a4d33e26066183ff727d8f02f56bec64","tags":[]}],"priority":{"score":7.9,"factors":[{"name":"EPSS percentile","points":2.47},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 9c5ccf2db04b8d7c3df363fdd4856c2b79ab2c6a, < 2431b5f2650dfc47ce782d1ca7b02d6b3916976f",">= 9c5ccf2db04b8d7c3df363fdd4856c2b79ab2c6a, < 9fdcc5b6359dfdaa52a55033bf50e2cedd66eb32",">= 9c5ccf2db04b8d7c3df363fdd4856c2b79ab2c6a, < d99e3140a4d33e26066183ff727d8f02f56bec64"]},{"vendor":"Linux","product":"Linux","versions":["6.6"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-05-20T14:06:03.625705Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-35711","exploited":false,"provenance":"source"}}