Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2024-27022

published high CVSS 3.1 · 7.8

fork: defer linking file vma until vma is fully initialized

Published
01 May 2024, 05:35:39 UTC
Updated
30 Oct 2026, 12:18:08 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
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 / vendorReleasePackage / productPublisher statusFixed buildSource
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.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

12

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.

Affected vendor and product assertions
VendorProductVersion statusSource
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

0

No weakness assertions.

References

11

Provider assertions

3

Linux · 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

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected