CVE-2024-27022
published high CVSS 3.1 · 7.8fork: defer linking file vma until vma is fully initialized
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux8d9bfb2608145cf3e408428c224099e1585471af to < 087de0e15e6830ed630c793fa4bebd62e8348da1 · 8d9bfb2608145cf3e408428c224099e1585471af to < 2e5cbab8ccbfc7d4a3d8a21d3c2a1f2c1aa29b5b · 8d9bfb2608145cf3e408428c224099e1585471af to < abdb88dd272bbeb93efe01d8e0b7b17e24af3a34 · 8d9bfb2608145cf3e408428c224099e1585471af to < 35e351780fa9d8240dd6f7e4f245f9ea37e96c19 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.1 (affected) · 0 to < 6.1 (unaffected · semver) · 6.1.191 through 6.1.* (unaffected · semver) · 6.6.134 through 6.6.* (unaffected · semver) · 6.8.8 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 evaluationALAS2023-2024-695 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 9 | bpftool | Advisory build | 7.3.0-427.37.1.el9_4 | ALSA-2024:6997 |
| Debian | bookworm | linux | Advisory build | 6.1.192-1 | DLA-4906-1 |
| Oracle Linux | 9 | bpftoolaarch64 | Advisory build | 0:7.3.0-427.37.1.el9_4 | ELSA-2024-6997 |
| AlmaLinux | 9 | kernel | Advisory build | 5.14.0-427.37.1.el9_4 | ALSA-2024:6997 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| AlmaLinux | 9 | kernel-64k | Advisory build | 5.14.0-427.37.1.el9_4 | ALSA-2024:6997 |
| AlmaLinux | 9 | kernel-64k-core | Advisory build | 5.14.0-427.37.1.el9_4 | ALSA-2024:6997 |
| AlmaLinux | 9 | kernel-64k-debug | Advisory build | 5.14.0-427.37.1.el9_4 | ALSA-2024:6997 |
| AlmaLinux | 9 | kernel-64k-debug-core | Advisory build | 5.14.0-427.37.1.el9_4 | ALSA-2024:6997 |
| AlmaLinux | 9 | kernel-64k-debug-devel | Advisory build | 5.14.0-427.37.1.el9_4 | ALSA-2024:6997 |
| AlmaLinux | 9 | kernel-64k-debug-devel-matched | Advisory build | 5.14.0-427.37.1.el9_4 | ALSA-2024:6997 |
| AlmaLinux | 9 | kernel-64k-debug-modules | Advisory build | 5.14.0-427.37.1.el9_4 | ALSA-2024:6997 |
| AlmaLinux | 9 | kernel-64k-debug-modules-core | Advisory build | 5.14.0-427.37.1.el9_4 | ALSA-2024:6997 |
| AlmaLinux | 9 | kernel-64k-debug-modules-extra | Advisory build | 5.14.0-427.37.1.el9_4 | ALSA-2024:6997 |
| AlmaLinux | 9 | kernel-64k-devel | Advisory build | 5.14.0-427.37.1.el9_4 | ALSA-2024:6997 |
| AlmaLinux | 9 | kernel-64k-devel-matched | Advisory build | 5.14.0-427.37.1.el9_4 | ALSA-2024:6997 |
| AlmaLinux | 9 | kernel-64k-modules | Advisory build | 5.14.0-427.37.1.el9_4 | ALSA-2024:6997 |
| AlmaLinux | 9 | kernel-64k-modules-core | Advisory build | 5.14.0-427.37.1.el9_4 | ALSA-2024:6997 |
| AlmaLinux | 9 | kernel-64k-modules-extra | Advisory build | 5.14.0-427.37.1.el9_4 | ALSA-2024:6997 |
| AlmaLinux | 9 | kernel-abi-stablelists | Advisory build | 5.14.0-427.37.1.el9_4 | ALSA-2024:6997 |
| AlmaLinux | 9 | kernel-core | Advisory build | 5.14.0-427.37.1.el9_4 | ALSA-2024:6997 |
| AlmaLinux | 9 | kernel-cross-headers | Advisory build | 5.14.0-427.37.1.el9_4 | ALSA-2024:6997 |
| AlmaLinux | 9 | kernel-debug | Advisory build | 5.14.0-427.37.1.el9_4 | ALSA-2024:6997 |
| AlmaLinux | 9 | kernel-debug-core | Advisory build | 5.14.0-427.37.1.el9_4 | ALSA-2024:6997 |
| AlmaLinux | 9 | kernel-debug-devel | Advisory build | 5.14.0-427.37.1.el9_4 | ALSA-2024:6997 |
| AlmaLinux | 9 | kernel-debug-devel-matched | Advisory build | 5.14.0-427.37.1.el9_4 | ALSA-2024:6997 |
| AlmaLinux | 9 | kernel-debug-modules | Advisory build | 5.14.0-427.37.1.el9_4 | ALSA-2024:6997 |
| AlmaLinux | 9 | kernel-debug-modules-core | Advisory build | 5.14.0-427.37.1.el9_4 | ALSA-2024:6997 |
| AlmaLinux | 9 | kernel-debug-modules-extra | Advisory build | 5.14.0-427.37.1.el9_4 | ALSA-2024:6997 |
| AlmaLinux | 9 | kernel-debug-uki-virt | Advisory build | 5.14.0-427.37.1.el9_4 | ALSA-2024:6997 |
| AlmaLinux | 9 | kernel-devel | Advisory build | 5.14.0-427.37.1.el9_4 | ALSA-2024:6997 |
| AlmaLinux | 9 | kernel-devel-matched | Advisory build | 5.14.0-427.37.1.el9_4 | ALSA-2024:6997 |
| AlmaLinux | 9 | kernel-doc | Advisory build | 5.14.0-427.37.1.el9_4 | ALSA-2024:6997 |
| AlmaLinux | 9 | kernel-headers | Advisory build | 5.14.0-427.37.1.el9_4 | ALSA-2024:6997 |
| AlmaLinux | 9 | kernel-modules | Advisory build | 5.14.0-427.37.1.el9_4 | ALSA-2024:6997 |
| AlmaLinux | 9 | kernel-modules-core | Advisory build | 5.14.0-427.37.1.el9_4 | ALSA-2024:6997 |
| AlmaLinux | 9 | kernel-modules-extra | Advisory build | 5.14.0-427.37.1.el9_4 | ALSA-2024:6997 |
| AlmaLinux | 9 | kernel-rt | Advisory build | 5.14.0-427.37.1.el9_4 | ALSA-2024:6997 |
| AlmaLinux | 9 | kernel-rt-core | Advisory build | 5.14.0-427.37.1.el9_4 | ALSA-2024:6997 |
| AlmaLinux | 9 | kernel-rt-debug | Advisory build | 5.14.0-427.37.1.el9_4 | ALSA-2024:6997 |
| AlmaLinux | 9 | kernel-rt-debug-core | Advisory build | 5.14.0-427.37.1.el9_4 | ALSA-2024:6997 |
| AlmaLinux | 9 | kernel-rt-debug-devel | Advisory build | 5.14.0-427.37.1.el9_4 | ALSA-2024:6997 |
| AlmaLinux | 9 | kernel-rt-debug-modules | Advisory build | 5.14.0-427.37.1.el9_4 | ALSA-2024:6997 |
| AlmaLinux | 9 | kernel-rt-debug-modules-core | Advisory build | 5.14.0-427.37.1.el9_4 | ALSA-2024:6997 |
| AlmaLinux | 9 | kernel-rt-debug-modules-extra | Advisory build | 5.14.0-427.37.1.el9_4 | ALSA-2024:6997 |
| AlmaLinux | 9 | kernel-rt-devel | Advisory build | 5.14.0-427.37.1.el9_4 | ALSA-2024:6997 |
| AlmaLinux | 9 | kernel-rt-modules | Advisory build | 5.14.0-427.37.1.el9_4 | ALSA-2024:6997 |
| AlmaLinux | 9 | kernel-rt-modules-core | Advisory build | 5.14.0-427.37.1.el9_4 | ALSA-2024:6997 |
| AlmaLinux | 9 | kernel-rt-modules-extra | Advisory build | 5.14.0-427.37.1.el9_4 | ALSA-2024:6997 |
| AlmaLinux | 9 | kernel-tools | Advisory build | 5.14.0-427.37.1.el9_4 | ALSA-2024:6997 |
| AlmaLinux | 9 | kernel-tools-libs | Advisory build | 5.14.0-427.37.1.el9_4 | ALSA-2024:6997 |
| AlmaLinux | 9 | kernel-tools-libs-devel | Advisory build | 5.14.0-427.37.1.el9_4 | ALSA-2024:6997 |
| AlmaLinux | 9 | kernel-uki-virt | Advisory build | 5.14.0-427.37.1.el9_4 | ALSA-2024:6997 |
| AlmaLinux | 9 | kernel-zfcpdump | Advisory build | 5.14.0-427.37.1.el9_4 | ALSA-2024:6997 |
| AlmaLinux | 9 | kernel-zfcpdump-core | Advisory build | 5.14.0-427.37.1.el9_4 | ALSA-2024:6997 |
| AlmaLinux | 9 | kernel-zfcpdump-devel | Advisory build | 5.14.0-427.37.1.el9_4 | ALSA-2024:6997 |
| AlmaLinux | 9 | kernel-zfcpdump-devel-matched | Advisory build | 5.14.0-427.37.1.el9_4 | ALSA-2024:6997 |
| AlmaLinux | 9 | kernel-zfcpdump-modules | Advisory build | 5.14.0-427.37.1.el9_4 | ALSA-2024:6997 |
| AlmaLinux | 9 | kernel-zfcpdump-modules-core | Advisory build | 5.14.0-427.37.1.el9_4 | ALSA-2024:6997 |
| AlmaLinux | 9 | kernel-zfcpdump-modules-extra | Advisory build | 5.14.0-427.37.1.el9_4 | ALSA-2024:6997 |
| AlmaLinux | 9 | libperf | Advisory build | 5.14.0-427.37.1.el9_4 | ALSA-2024:6997 |
| AlmaLinux | 9 | perf | Advisory build | 5.14.0-427.37.1.el9_4 | ALSA-2024:6997 |
| AlmaLinux | 9 | python3-perf | Advisory build | 5.14.0-427.37.1.el9_4 | ALSA-2024:6997 |
| AlmaLinux | 9 | rtla | Advisory build | 5.14.0-427.37.1.el9_4 | ALSA-2024:6997 |
| AlmaLinux | 9 | rv | Advisory build | 5.14.0-427.37.1.el9_4 | ALSA-2024:6997 |
| Debian | bookworm | linux | Advisory build | 6.1.90-1 | DSA-5680-1 |
| Oracle Linux | 9 | bpftoolx86_64 | Advisory build | 0:7.3.0-427.37.1.el9_4 | ELSA-2024-6997 |
| Oracle Linux | 9 | kernelx86_64 | Advisory build | 0:5.14.0-427.37.1.el9_4 | ELSA-2024-6997 |
| Oracle Linux | 9 | kernel-abi-stablelistsx86_64 | Advisory build | 0:5.14.0-427.37.1.el9_4 | ELSA-2024-6997 |
| Oracle Linux | 9 | kernel-corex86_64 | Advisory build | 0:5.14.0-427.37.1.el9_4 | ELSA-2024-6997 |
| Oracle Linux | 9 | kernel-cross-headersaarch64 | Advisory build | 0:5.14.0-427.37.1.el9_4 | ELSA-2024-6997 |
| Oracle Linux | 9 | kernel-cross-headersx86_64 | Advisory build | 0:5.14.0-427.37.1.el9_4 | ELSA-2024-6997 |
| Oracle Linux | 9 | kernel-debugx86_64 | Advisory build | 0:5.14.0-427.37.1.el9_4 | ELSA-2024-6997 |
| Oracle Linux | 9 | kernel-debug-corex86_64 | Advisory build | 0:5.14.0-427.37.1.el9_4 | ELSA-2024-6997 |
| Oracle Linux | 9 | kernel-debug-develx86_64 | Advisory build | 0:5.14.0-427.37.1.el9_4 | ELSA-2024-6997 |
| Oracle Linux | 9 | kernel-debug-devel-matchedx86_64 | Advisory build | 0:5.14.0-427.37.1.el9_4 | ELSA-2024-6997 |
| Oracle Linux | 9 | kernel-debug-modulesx86_64 | Advisory build | 0:5.14.0-427.37.1.el9_4 | ELSA-2024-6997 |
| Oracle Linux | 9 | kernel-debug-modules-corex86_64 | Advisory build | 0:5.14.0-427.37.1.el9_4 | ELSA-2024-6997 |
| Oracle Linux | 9 | kernel-debug-modules-extrax86_64 | Advisory build | 0:5.14.0-427.37.1.el9_4 | ELSA-2024-6997 |
| Oracle Linux | 9 | kernel-debug-uki-virtx86_64 | Advisory build | 0:5.14.0-427.37.1.el9_4 | ELSA-2024-6997 |
| Oracle Linux | 9 | kernel-develx86_64 | Advisory build | 0:5.14.0-427.37.1.el9_4 | ELSA-2024-6997 |
| Oracle Linux | 9 | kernel-devel-matchedx86_64 | Advisory build | 0:5.14.0-427.37.1.el9_4 | ELSA-2024-6997 |
| Oracle Linux | 9 | kernel-docx86_64 | Advisory build | 0:5.14.0-427.37.1.el9_4 | ELSA-2024-6997 |
| Oracle Linux | 9 | kernel-headersaarch64 | Advisory build | 0:5.14.0-427.37.1.el9_4 | ELSA-2024-6997 |
| Oracle Linux | 9 | kernel-headersx86_64 | Advisory build | 0:5.14.0-427.37.1.el9_4 | ELSA-2024-6997 |
| Oracle Linux | 9 | kernel-modulesx86_64 | Advisory build | 0:5.14.0-427.37.1.el9_4 | ELSA-2024-6997 |
| Oracle Linux | 9 | kernel-modules-corex86_64 | Advisory build | 0:5.14.0-427.37.1.el9_4 | ELSA-2024-6997 |
| Oracle Linux | 9 | kernel-modules-extrax86_64 | Advisory build | 0:5.14.0-427.37.1.el9_4 | ELSA-2024-6997 |
| Oracle Linux | 9 | kernel-toolsaarch64 | Advisory build | 0:5.14.0-427.37.1.el9_4 | ELSA-2024-6997 |
| Oracle Linux | 9 | kernel-toolsx86_64 | Advisory build | 0:5.14.0-427.37.1.el9_4 | ELSA-2024-6997 |
| Oracle Linux | 9 | kernel-tools-libsaarch64 | Advisory build | 0:5.14.0-427.37.1.el9_4 | ELSA-2024-6997 |
| Oracle Linux | 9 | kernel-tools-libsx86_64 | Advisory build | 0:5.14.0-427.37.1.el9_4 | ELSA-2024-6997 |
| Oracle Linux | 9 | kernel-tools-libs-develaarch64 | Advisory build | 0:5.14.0-427.37.1.el9_4 | ELSA-2024-6997 |
| Oracle Linux | 9 | kernel-tools-libs-develx86_64 | Advisory build | 0:5.14.0-427.37.1.el9_4 | ELSA-2024-6997 |
| Oracle Linux | 9 | kernel-uki-virtx86_64 | Advisory build | 0:5.14.0-427.37.1.el9_4 | ELSA-2024-6997 |
| Oracle Linux | 9 | libperfx86_64 | Advisory build | 0:5.14.0-427.37.1.el9_4 | ELSA-2024-6997 |
| Oracle Linux | 9 | perfaarch64 | Advisory build | 0:5.14.0-427.37.1.el9_4 | ELSA-2024-6997 |
| Oracle Linux | 9 | perfx86_64 | Advisory build | 0:5.14.0-427.37.1.el9_4 | ELSA-2024-6997 |
| Oracle Linux | 9 | python3-perfaarch64 | Advisory build | 0:5.14.0-427.37.1.el9_4 | ELSA-2024-6997 |
| Oracle Linux | 9 | python3-perfx86_64 | Advisory build | 0:5.14.0-427.37.1.el9_4 | ELSA-2024-6997 |
| Oracle Linux | 9 | rtlax86_64 | Advisory build | 0:5.14.0-427.37.1.el9_4 | ELSA-2024-6997 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
In the Linux kernel, the following vulnerability has been resolved: fork: defer linking file vma until vma is fully initialized Thorvald reported a WARNING [1]. And the root cause is below race: CPU 1 CPU 2 fork hugetlbfs_fallocate dup_mmap hugetlbfs_punch_hole i_mmap_lock_write(mapping); vma_interval_tree_insert_after -- Child vma is visible through i_mmap tree. i_mmap_unlock_write(mapping); hugetlb_dup_vma_private -- Clear vma_lock outside i_mmap_rwsem! i_mmap_lock_write(mapping); hugetlb_vmdelete_list vma_interval_tree_foreach hugetlb_vma_trylock_write -- Vma_lock is cleared. tmp->vm_ops->open -- Alloc new vma_lock outside i_mmap_rwsem! hugetlb_vma_unlock_write -- Vma_lock is assigned!!! i_mmap_unlock_write(mapping); hugetlb_dup_vma_private() and hugetlb_vm_op_open() are called outside i_mmap_rwsem lock while vma lock can be used in the same time. Fix this by deferring linking file vma until vma is fully initialized. Those vmas should be initialized first before they can be used.
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 race is driven entirely through local syscalls — `memfd_create(MFD_HUGETLB)`/`ftruncate`/`mmap`, `fork()`, and `fallocate(FALLOC_FL_PUNCH_HOLE)` — on the attacker's own process. There is no network or remote-peer input path into `dup_mmap()` or `hugetlbfs_punch_hole()`. AC:L - The attacker controls both sides of the race, looping `fork()` in one thread while another loops hole-punch/truncate on the same hugetlbfs fd, and the vulnerable window spans `hugetlb_dup_vma_private()` through `copy_page_range()` to `vm_ops->open()`, which is widened to milliseconds simply by using a multi-GB mapping. No condition outside the attacker's influence is required. PR:L - Any unprivileged local user can reach this: `memfd_create(name, MFD_HUGETLB)` uses `HUGETLB_ANONHUGE_INODE`, which bypasses the `can_do_hugetlb_shm()`/`CAP_IPC_LOCK` check, and `MAP_NORESERVE` lets the mapping succeed even with no huge pages configured. No hugetlbfs mount, capability, or namespace privilege is needed. UI:N - The attacker's own process performs both the `fork()` and the `fallocate()`/`ftruncate()` that collide; no victim action, mount, or file open by another user is involved. S:U - The corruption is confined to kernel memory-management state (rwsem counters and hugetlb page tables) within the same kernel security authority, with no crossing of a VM, IOMMU, or sandbox boundary. C:H - Running `huge_pmd_unshare()` without the VMA lock reintroduces the shared-PMD page-table use-after-free that lock was added to prevent, letting a freed page-table page remain installed in another mm's PUD and be reallocated — yielding arbitrary physical memory read. Per kernel guidance, memory corruption of this class scores High. I:H - The same PMD page-table UAF gives an arbitrary-write primitive (attacker-controlled PTEs written into freed-and-reallocated memory map arbitrary physical frames), and the unbalanced `up_write()` underflows `sem->count`, destroying mutual exclusion on the lock that guards hugetlb page-table teardown. A:H - The mismatched lock/unlock leaves the parent's `hugetlb_vma_lock->rw_sema` permanently write-held, so every subsequent hugetlb fault, unmap, or `exit_mmap()` on that VMA blocks forever in D state — unkillable tasks and hung-task panic — in addition to the reported WARNING and UAF-induced oopses.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 8d9bfb2608145cf3e408428c224099e1585471af to < 087de0e15e6830ed630c793fa4bebd62e8348da1 (affected · git)8d9bfb2608145cf3e408428c224099e1585471af to < 2e5cbab8ccbfc7d4a3d8a21d3c2a1f2c1aa29b5b (affected · git)8d9bfb2608145cf3e408428c224099e1585471af to < abdb88dd272bbeb93efe01d8e0b7b17e24af3a34 (affected · git)8d9bfb2608145cf3e408428c224099e1585471af to < 35e351780fa9d8240dd6f7e4f245f9ea37e96c19 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.1 (affected)0 to < 6.1 (unaffected · semver)6.1.191 through 6.1.* (unaffected · semver)6.6.134 through 6.6.* (unaffected · semver)6.8.8 through 6.8.* (unaffected · semver)6.9 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
11- https://git.kernel.org/stable/c/04b0c41912349aff11a1bbaef6a722bd7fbb90ac
- https://git.kernel.org/stable/c/087de0e15e6830ed630c793fa4bebd62e8348da1
- https://git.kernel.org/stable/c/0c42f7e039aba3de6d7dbf92da708e2b2ecba557
- https://git.kernel.org/stable/c/2e5cbab8ccbfc7d4a3d8a21d3c2a1f2c1aa29b5b
- https://git.kernel.org/stable/c/35e351780fa9d8240dd6f7e4f245f9ea37e96c19
- https://git.kernel.org/stable/c/abdb88dd272bbeb93efe01d8e0b7b17e24af3a34
- https://git.kernel.org/stable/c/cec11fa2eb512ebe3a459c185f4aca1d44059bbf
- https://git.kernel.org/stable/c/dd782da470761077f4d1120e191f1a35787cda6e
- https://lists.fedoraproject.org/archives/list/[email protected]/message/4EZ6PJW7VOZ224TD7N4JZNU6KV32ZJ53/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/DAMSOZXJEPUOXW33WZYWCVAY7Z5S7OOY/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/GCBZZEC7L7KTWWAS2NLJK6SO3IZIL4WW/
Provider assertions
3Linux · cna
fork: defer linking file vma until vma is fully initialized
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 9544a1f86ccc8f8d8bcefc35b7b657314a5694d440445bbf3e938b716ee5adcb
- Ingested
- 30 Oct 2026, 12:31:36 UTC
- Source record
- Official CVE record