# CVE-2024-35993: mm: turn folio_test_hugetlb into a PageType

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 12% of CVEs (2026-12-02)
- Published: 2024-05-20T09:47:57.739Z
- Modified: 2026-08-05T11:31:27.140Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

mm: turn folio_test_hugetlb into a PageType

The current folio_test_hugetlb() can be fooled by a concurrent folio split
into returning true for a folio which has never belonged to hugetlbfs. 
This can't happen if the caller holds a refcount on it, but we have a few
places (memory-failure, compaction, procfs) which do not and should not
take a speculative reference.

Since hugetlb pages do not use individual page mapcounts (they are always
fully mapped and use the entire_mapcount field to record the number of
mappings), the PageType field is available now that page_mapcount()
ignores the value in this field.

In compaction and with CONFIG_DEBUG_VM enabled, the current implementation
can result in an oops, as reported by Luis. This happens since 9c5ccf2db04b
("mm: remove HUGETLB_PAGE_DTOR") effectively added some VM_BUG_ON() checks
in the PageHuge() testing path.

[willy@infradead.org: update vmcoreinfo]

(As written by CVE List.)

## Affected

- Linux Linux: from 9c5ccf2db04b8d7c3df363fdd4856c2b79ab2c6a before 2431b5f2650dfc47ce782d1ca7b02d6b3916976f; from 9c5ccf2db04b8d7c3df363fdd4856c2b79ab2c6a before 9fdcc5b6359dfdaa52a55033bf50e2cedd66eb32; from 9c5ccf2db04b8d7c3df363fdd4856c2b79ab2c6a before d99e3140a4d33e26066183ff727d8f02f56bec64; 6.6 (not affected: before 6.6; from 6.6.30 up to 6.6.*; from 6.8.9 up to 6.8.*; from 6.9 up to *)
- linux linux_kernel: from 6.6 before 6.6.30; from 6.7 before 6.8.9; 6.9

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/2431b5f2650dfc47ce782d1ca7b02d6b3916976f> (patch)
- <https://git.kernel.org/stable/c/9fdcc5b6359dfdaa52a55033bf50e2cedd66eb32> (patch)
- <https://git.kernel.org/stable/c/d99e3140a4d33e26066183ff727d8f02f56bec64> (patch)

## Sources

- CVE List: [CVE-2024-35993](https://www.cve.org/CVERecord?id=CVE-2024-35993), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-35993](https://nvd.nist.gov/vuln/detail/CVE-2024-35993), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-35993 · Whole record: https://cve.day/CVE-2024-35993.json · Rebuilt by cve.day 2026-11-25T22:58:40.657Z
