CVE-2024-35993
published high CVSS 3.1 · 7.8mm: turn folio_test_hugetlb into a PageType
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux9c5ccf2db04b8d7c3df363fdd4856c2b79ab2c6a to < 2431b5f2650dfc47ce782d1ca7b02d6b3916976f · 9c5ccf2db04b8d7c3df363fdd4856c2b79ab2c6a to < 9fdcc5b6359dfdaa52a55033bf50e2cedd66eb32 · 9c5ccf2db04b8d7c3df363fdd4856c2b79ab2c6a to < d99e3140a4d33e26066183ff727d8f02f56bec64 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.6 (affected) · 0 to < 6.6 (unaffected · semver) · 6.6.30 through 6.6.* (unaffected · semver) · 6.8.9 through 6.8.* (unaffected · semver) · 6.9 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1011-nvidia | Advisory build | 6.8.0-1011.11~22.04.1 | USN-6949-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1011-nvidia-64k | Advisory build | 6.8.0-1011.11~22.04.1 | USN-6949-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1011-nvidia | Advisory build | 6.8.0-1011.11~22.04.1 | USN-6949-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1011-nvidia-64k | Advisory build | 6.8.0-1011.11~22.04.1 | USN-6949-1 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1011-nvidia | Advisory build | 6.8.0-1011.11~22.04.1 | USN-6949-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1011-nvidia-64k | Advisory build | 6.8.0-1011.11~22.04.1 | USN-6949-1 |
| Ubuntu | jammy | linux-modules-6.8.0-1011-nvidia | Advisory build | 6.8.0-1011.11~22.04.1 | USN-6949-1 |
| Ubuntu | jammy | linux-modules-6.8.0-1011-nvidia-64k | Advisory build | 6.8.0-1011.11~22.04.1 | USN-6949-1 |
| Ubuntu | jammy | linux-modules-extra-6.8.0-1011-nvidia | Advisory build | 6.8.0-1011.11~22.04.1 | USN-6949-1 |
| Ubuntu | jammy | linux-modules-nvidia-fs-6.8.0-1011-nvidia | Advisory build | 6.8.0-1011.11~22.04.1 | USN-6949-1 |
| Ubuntu | jammy | linux-modules-nvidia-fs-6.8.0-1011-nvidia-64k | Advisory build | 6.8.0-1011.11~22.04.1 | USN-6949-1 |
| Ubuntu | jammy | linux-nvidia-6.8 | Advisory build | 6.8.0-1011.11~22.04.1 | USN-6949-1 |
| Ubuntu | jammy | linux-nvidia-6.8-headers-6.8.0-1011 | Advisory build | 6.8.0-1011.11~22.04.1 | USN-6949-1 |
| Ubuntu | jammy | linux-nvidia-6.8-tools-6.8.0-1011 | Advisory build | 6.8.0-1011.11~22.04.1 | USN-6949-1 |
| Ubuntu | jammy | linux-nvidia-6.8-tools-host | Advisory build | 6.8.0-1011.11~22.04.1 | USN-6949-1 |
| Ubuntu | jammy | linux-tools-6.8.0-1011-nvidia | Advisory build | 6.8.0-1011.11~22.04.1 | USN-6949-1 |
| Ubuntu | jammy | linux-tools-6.8.0-1011-nvidia-64k | Advisory build | 6.8.0-1011.11~22.04.1 | USN-6949-1 |
| Ubuntu | noble | linux | Advisory build | 6.8.0-40.40 | USN-6949-1 |
| Ubuntu | noble | linux-aws | Advisory build | 6.8.0-1013.14 | USN-6949-1 |
| Ubuntu | noble | linux-aws-cloud-tools-6.8.0-1013 | Advisory build | 6.8.0-1013.14 | USN-6949-1 |
| Ubuntu | noble | linux-aws-headers-6.8.0-1013 | Advisory build | 6.8.0-1013.14 | USN-6949-1 |
| Ubuntu | noble | linux-aws-tools-6.8.0-1013 | Advisory build | 6.8.0-1013.14 | USN-6949-1 |
| Ubuntu | noble | linux-azure | Advisory build | 6.8.0-1012.14 | USN-6952-2 |
| Ubuntu | noble | linux-azure-cloud-tools-6.8.0-1012 | Advisory build | 6.8.0-1012.14 | USN-6952-2 |
| Ubuntu | noble | linux-azure-headers-6.8.0-1012 | Advisory build | 6.8.0-1012.14 | USN-6952-2 |
| Ubuntu | noble | linux-azure-tools-6.8.0-1012 | Advisory build | 6.8.0-1012.14 | USN-6952-2 |
| Ubuntu | noble | linux-buildinfo-6.8.0-1008-gke | Advisory build | 6.8.0-1008.11 | USN-6949-1 |
| Ubuntu | noble | linux-buildinfo-6.8.0-1009-raspi | Advisory build | 6.8.0-1009.10 | USN-6949-2 |
| Ubuntu | noble | linux-buildinfo-6.8.0-1010-ibm | Advisory build | 6.8.0-1010.10 | USN-6949-1 |
| Ubuntu | noble | linux-buildinfo-6.8.0-1010-oem | Advisory build | 6.8.0-1010.10 | USN-6955-1 |
| Ubuntu | noble | linux-buildinfo-6.8.0-1010-oracle | Advisory build | 6.8.0-1010.10 | USN-6952-1 |
| Ubuntu | noble | linux-buildinfo-6.8.0-1010-oracle-64k | Advisory build | 6.8.0-1010.10 | USN-6952-1 |
| Ubuntu | noble | linux-buildinfo-6.8.0-1011-nvidia | Advisory build | 6.8.0-1011.11 | USN-6949-1 |
| Ubuntu | noble | linux-buildinfo-6.8.0-1011-nvidia-64k | Advisory build | 6.8.0-1011.11 | USN-6949-1 |
| Ubuntu | noble | linux-buildinfo-6.8.0-1011-nvidia-lowlatency | Advisory build | 6.8.0-1011.11.1 | USN-6952-1 |
| Ubuntu | noble | linux-buildinfo-6.8.0-1011-nvidia-lowlatency-64k | Advisory build | 6.8.0-1011.11.1 | USN-6952-1 |
| Ubuntu | noble | linux-buildinfo-6.8.0-1012-azure | Advisory build | 6.8.0-1012.14 | USN-6952-2 |
| Ubuntu | noble | linux-buildinfo-6.8.0-1012-gcp | Advisory build | 6.8.0-1012.13 | USN-6949-1 |
| Ubuntu | noble | linux-buildinfo-6.8.0-1013-aws | Advisory build | 6.8.0-1013.14 | USN-6949-1 |
| Ubuntu | noble | linux-buildinfo-6.8.0-40-generic | Advisory build | 6.8.0-40.40 | USN-6949-1 |
| Ubuntu | noble | linux-buildinfo-6.8.0-40-generic-64k | Advisory build | 6.8.0-40.40 | USN-6949-1 |
| Ubuntu | noble | linux-buildinfo-6.8.0-40-lowlatency | Advisory build | 6.8.0-40.40.1 | USN-6949-2 |
| Ubuntu | noble | linux-buildinfo-6.8.0-40-lowlatency-64k | Advisory build | 6.8.0-40.40.1 | USN-6949-2 |
| Ubuntu | noble | linux-cloud-tools-6.8.0-1012-azure | Advisory build | 6.8.0-1012.14 | USN-6952-2 |
| Ubuntu | noble | linux-cloud-tools-6.8.0-1013-aws | Advisory build | 6.8.0-1013.14 | USN-6949-1 |
| Ubuntu | noble | linux-cloud-tools-6.8.0-40 | Advisory build | 6.8.0-40.40 | USN-6949-1 |
| Ubuntu | noble | linux-cloud-tools-6.8.0-40-generic | Advisory build | 6.8.0-40.40 | USN-6949-1 |
| Ubuntu | noble | linux-cloud-tools-6.8.0-40-lowlatency | Advisory build | 6.8.0-40.40.1 | USN-6949-2 |
| Ubuntu | noble | linux-cloud-tools-common | Advisory build | 6.8.0-40.40 | USN-6949-1 |
| Ubuntu | noble | linux-gcp | Advisory build | 6.8.0-1012.13 | USN-6949-1 |
| Ubuntu | noble | linux-gcp-headers-6.8.0-1012 | Advisory build | 6.8.0-1012.13 | USN-6949-1 |
| Ubuntu | noble | linux-gcp-tools-6.8.0-1012 | Advisory build | 6.8.0-1012.13 | USN-6949-1 |
| Ubuntu | noble | linux-gke | Advisory build | 6.8.0-1008.11 | USN-6949-1 |
| Ubuntu | noble | linux-gke-headers-6.8.0-1008 | Advisory build | 6.8.0-1008.11 | USN-6949-1 |
| Ubuntu | noble | linux-gke-tools-6.8.0-1008 | Advisory build | 6.8.0-1008.11 | USN-6949-1 |
| Ubuntu | noble | linux-headers-6.8.0-1008-gke | Advisory build | 6.8.0-1008.11 | USN-6949-1 |
| Ubuntu | noble | linux-headers-6.8.0-1009-raspi | Advisory build | 6.8.0-1009.10 | USN-6949-2 |
| Ubuntu | noble | linux-headers-6.8.0-1010-ibm | Advisory build | 6.8.0-1010.10 | USN-6949-1 |
| Ubuntu | noble | linux-headers-6.8.0-1010-oem | Advisory build | 6.8.0-1010.10 | USN-6955-1 |
| Ubuntu | noble | linux-headers-6.8.0-1010-oracle | Advisory build | 6.8.0-1010.10 | USN-6952-1 |
| Ubuntu | noble | linux-headers-6.8.0-1010-oracle-64k | Advisory build | 6.8.0-1010.10 | USN-6952-1 |
| Ubuntu | noble | linux-headers-6.8.0-1011-nvidia | Advisory build | 6.8.0-1011.11 | USN-6949-1 |
| Ubuntu | noble | linux-headers-6.8.0-1011-nvidia-64k | Advisory build | 6.8.0-1011.11 | USN-6949-1 |
| Ubuntu | noble | linux-headers-6.8.0-1011-nvidia-lowlatency | Advisory build | 6.8.0-1011.11.1 | USN-6952-1 |
| Ubuntu | noble | linux-headers-6.8.0-1011-nvidia-lowlatency-64k | Advisory build | 6.8.0-1011.11.1 | USN-6952-1 |
| Ubuntu | noble | linux-headers-6.8.0-1012-azure | Advisory build | 6.8.0-1012.14 | USN-6952-2 |
| Ubuntu | noble | linux-headers-6.8.0-1012-gcp | Advisory build | 6.8.0-1012.13 | USN-6949-1 |
| Ubuntu | noble | linux-headers-6.8.0-1013-aws | Advisory build | 6.8.0-1013.14 | USN-6949-1 |
| Ubuntu | noble | linux-headers-6.8.0-40 | Advisory build | 6.8.0-40.40 | USN-6949-1 |
| Ubuntu | noble | linux-headers-6.8.0-40-generic | Advisory build | 6.8.0-40.40 | USN-6949-1 |
| Ubuntu | noble | linux-headers-6.8.0-40-generic-64k | Advisory build | 6.8.0-40.40 | USN-6949-1 |
| Ubuntu | noble | linux-headers-6.8.0-40-lowlatency | Advisory build | 6.8.0-40.40.1 | USN-6949-2 |
| Ubuntu | noble | linux-headers-6.8.0-40-lowlatency-64k | Advisory build | 6.8.0-40.40.1 | USN-6949-2 |
| Ubuntu | noble | linux-ibm | Advisory build | 6.8.0-1010.10 | USN-6949-1 |
| Ubuntu | noble | linux-ibm-cloud-tools-common | Advisory build | 6.8.0-1010.10 | USN-6949-1 |
| Ubuntu | noble | linux-ibm-headers-6.8.0-1010 | Advisory build | 6.8.0-1010.10 | USN-6949-1 |
| Ubuntu | noble | linux-ibm-source-6.8.0 | Advisory build | 6.8.0-1010.10 | USN-6949-1 |
| Ubuntu | noble | linux-ibm-tools-6.8.0-1010 | Advisory build | 6.8.0-1010.10 | USN-6949-1 |
| Ubuntu | noble | linux-image-6.8.0-1009-raspi | Advisory build | 6.8.0-1009.10 | USN-6949-2 |
| Ubuntu | noble | linux-image-6.8.0-40-generic | Advisory build | 6.8.0-40.40 | USN-6949-1 |
| Ubuntu | noble | linux-image-unsigned-6.8.0-1008-gke | Advisory build | 6.8.0-1008.11 | USN-6949-1 |
| Ubuntu | noble | linux-image-unsigned-6.8.0-1010-ibm | Advisory build | 6.8.0-1010.10 | USN-6949-1 |
| Ubuntu | noble | linux-image-unsigned-6.8.0-1010-oem | Advisory build | 6.8.0-1010.10 | USN-6955-1 |
| Ubuntu | noble | linux-image-unsigned-6.8.0-1010-oracle | Advisory build | 6.8.0-1010.10 | USN-6952-1 |
| Ubuntu | noble | linux-image-unsigned-6.8.0-1010-oracle-64k | Advisory build | 6.8.0-1010.10 | USN-6952-1 |
| Ubuntu | noble | linux-image-unsigned-6.8.0-1011-nvidia | Advisory build | 6.8.0-1011.11 | USN-6949-1 |
| Ubuntu | noble | linux-image-unsigned-6.8.0-1011-nvidia-64k | Advisory build | 6.8.0-1011.11 | USN-6949-1 |
| Ubuntu | noble | linux-image-unsigned-6.8.0-1011-nvidia-lowlatency | Advisory build | 6.8.0-1011.11.1 | USN-6952-1 |
| Ubuntu | noble | linux-image-unsigned-6.8.0-1011-nvidia-lowlatency-64k | Advisory build | 6.8.0-1011.11.1 | USN-6952-1 |
| Ubuntu | noble | linux-image-unsigned-6.8.0-1012-azure | Advisory build | 6.8.0-1012.14 | USN-6952-2 |
| Ubuntu | noble | linux-image-unsigned-6.8.0-1012-gcp | Advisory build | 6.8.0-1012.13 | USN-6949-1 |
| Ubuntu | noble | linux-image-unsigned-6.8.0-1013-aws | Advisory build | 6.8.0-1013.14 | USN-6949-1 |
| Ubuntu | noble | linux-image-unsigned-6.8.0-40-generic | Advisory build | 6.8.0-40.40 | USN-6949-1 |
| Ubuntu | noble | linux-image-unsigned-6.8.0-40-generic-64k | Advisory build | 6.8.0-40.40 | USN-6949-1 |
| Ubuntu | noble | linux-image-unsigned-6.8.0-40-lowlatency | Advisory build | 6.8.0-40.40.1 | USN-6949-2 |
| Ubuntu | noble | linux-image-unsigned-6.8.0-40-lowlatency-64k | Advisory build | 6.8.0-40.40.1 | USN-6949-2 |
| Ubuntu | noble | linux-lib-rust-6.8.0-40-generic | Advisory build | 6.8.0-40.40 | USN-6949-1 |
| Ubuntu | noble | linux-lowlatency | Advisory build | 6.8.0-40.40.1 | USN-6949-2 |
| Ubuntu | noble | linux-lowlatency-cloud-tools-6.8.0-40 | Advisory build | 6.8.0-40.40.1 | USN-6949-2 |
| Ubuntu | noble | linux-lowlatency-cloud-tools-common | Advisory build | 6.8.0-40.40.1 | USN-6949-2 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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. [[email protected]: update vmcoreinfo]
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The vulnerability is in core MM page-flag accessors reached via compaction, memory-failure and procfs; triggering it requires local execution to allocate/split THPs and drive compaction scans. There is no remote or adjacent-network path to this code. AC:L - This is a race the attacker creates on both sides — one set of threads forces THP splits via madvise(MADV_DONTNEED)/partial munmap while another drives compaction (memory pressure, THP faults, or CMA/dma-buf allocations), and compaction scans millions of PFNs per second, so the narrow window between the two loads is retried continuously at no cost. PR:L - Only an ordinary unprivileged local user is needed: THP allocation and splitting are unprivileged operations, and direct compaction plus alloc_contig_range (CMA/dma-buf heap, v4l2 videobuf2) are reachable from normal userspace on Android and embedded systems without any capability. UI:N - The attacker's own threads generate both the folio split and the compaction scan; no victim action or cooperation is required. S:U - The type confusion and resulting corruption stay within the kernel's own security authority; no VM, IOMMU or sandbox boundary is crossed. C:H - folio_test_hugetlb() misidentifies a THP as a hugetlb folio, causing the kernel to read and interpret THP tail-page fields (_flags_1/_flags_2, _hugetlb_subpool, _hugetlb_hwpoison) as hugetlb metadata; this type confusion and the resulting list/metadata corruption are leverageable for disclosure of kernel memory contents. I:H - Type confusion leads to hugetlb machinery mutating non-hugetlb state — isolate_hugetlb() performs list_move_tail() on a THP still on an LRU list and clears bits in folio->private, and folio_set_hugetlb_hwpoison() does llist_add() into fields overlapping a THP's _deferred_list, giving linked-list corruption and a write primitive. A:H - isolate_or_dissolve_huge_page() dereferences the NULL hstate returned by size_to_hstate() in hstate_is_gigantic() (h->order), producing a kernel oops, and with CONFIG_DEBUG_VM_PGFLAGS the VM_BUG_ON_PGFLAGS in folio_flags() panics the kernel — the originally reported symptom.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 9c5ccf2db04b8d7c3df363fdd4856c2b79ab2c6a to < 2431b5f2650dfc47ce782d1ca7b02d6b3916976f (affected · git)9c5ccf2db04b8d7c3df363fdd4856c2b79ab2c6a to < 9fdcc5b6359dfdaa52a55033bf50e2cedd66eb32 (affected · git)9c5ccf2db04b8d7c3df363fdd4856c2b79ab2c6a to < d99e3140a4d33e26066183ff727d8f02f56bec64 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.6 (affected)0 to < 6.6 (unaffected · semver)6.6.30 through 6.6.* (unaffected · semver)6.8.9 through 6.8.* (unaffected · semver)6.9 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
3Provider assertions
3Linux · cna
mm: turn folio_test_hugetlb into a PageType
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 7acbae20a3df295d21e9e93f0ee75d9e5fedbf323066500bdace9d1590530937
- Ingested
- 23 Sep 2026, 08:23:51 UTC
- Source record
- Official CVE record