CVE-2024-27022
fork: defer linking file vma until vma is fully initialized
Mitigation
- Upgrade Linux to 35e351780fa9d8240dd6f7e4f245f9ea37e96c19 or later.
Who should check
- Anyone running Linux >= 8d9bfb2608145cf3e408428c224099e1585471af, < 087de0e15e6830ed630c793fa4bebd62e8348da1; >= 8d9bfb2608145cf3e408428c224099e1585471af, < 2e5cbab8ccbfc7d4a3d8a21d3c2a1f2c1aa29b5b; >= 8d9bfb2608145cf3e408428c224099e1585471af, < abdb88dd272bbeb93efe01d8e0b7b17e24af3a34; >= 8d9bfb2608145cf3e408428c224099e1585471af, < 35e351780fa9d8240dd6f7e4f245f9ea37e96c19
- Anyone running Linux 6.1
Vulnerability facts
- Affected
- Linux >= 8d9bfb2608145cf3e408428c224099e1585471af, < 087de0e15e6830ed630c793fa4bebd62e8348da1; >= 8d9bfb2608145cf3e408428c224099e1585471af, < 2e5cbab8ccbfc7d4a3d8a21d3c2a1f2c1aa29b5b; >= 8d9bfb2608145cf3e408428c224099e1585471af, < abdb88dd272bbeb93efe01d8e0b7b17e24af3a34; >= 8d9bfb2608145cf3e408428c224099e1585471af, < 35e351780fa9d8240dd6f7e4f245f9ea37e96c19; Linux 6.1
- Fixed in
- Linux 087de0e15e6830ed630c793fa4bebd62e8348da1, Linux 2e5cbab8ccbfc7d4a3d8a21d3c2a1f2c1aa29b5b, Linux 35e351780fa9d8240dd6f7e4f245f9ea37e96c19
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 0.38% chance of exploitation in 30 days (percentile 24, 2026-11-26)
- CWE
- CWE-908
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 8d9bfb2608145cf3e408428c224099e1585471af, < 087de0e15e6830ed630c793fa4bebd62e8348da1; >= 8d9bfb2608145cf3e408428c224099e1585471af, < 2e5cbab8ccbfc7d4a3d8a21d3c2a1f2c1aa29b5b; >= 8d9bfb2608145cf3e408428c224099e1585471af, < abdb88dd272bbeb93efe01d8e0b7b17e24af3a34; >= 8d9bfb2608145cf3e408428c224099e1585471af, < 35e351780fa9d8240dd6f7e4f245f9ea37e96c19 | — | cvelist |
| Linux | 6.1 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-27022. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-27022.md Affected: Linux >= 8d9bfb2608145cf3e408428c224099e1585471af, < 087de0e15e6830ed630c793fa4bebd62e8348da1; >= 8d9bfb2608145cf3e408428c224099e1585471af, < 2e5cbab8ccbfc7d4a3d8a21d3c2a1f2c1aa29b5b; >= 8d9bfb2608145cf3e408428c224099e1585471af, < abdb88dd272bbeb93efe01d8e0b7b17e24af3a34; >= 8d9bfb2608145cf3e408428… Fixed in: Linux 087de0e15e6830ed630c793fa4bebd62e8348da1, Linux 2e5cbab8ccbfc7d4a3d8a21d3c2a1f2c1aa29b5b, Linux 35e351780fa9d8240dd6f7e4f245f9ea37e96c19 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
Other
- https://git.kernel.org/stable/c/087de0e15e6830ed630c793fa4bebd62e8348da1
- https://git.kernel.org/stable/c/2e5cbab8ccbfc7d4a3d8a21d3c2a1f2c1aa29b5b
- https://git.kernel.org/stable/c/04b0c41912349aff11a1bbaef6a722bd7fbb90ac
- https://git.kernel.org/stable/c/dd782da470761077f4d1120e191f1a35787cda6e
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DAMSOZXJEPUOXW33WZYWCVAY7Z5S7OOY/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4EZ6PJW7VOZ224TD7N4JZNU6KV32ZJ53/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GCBZZEC7L7KTWWAS2NLJK6SO3IZIL4WW/
FAQ
Is CVE-2024-27022 being exploited?
There is no confirmed exploitation: CVE-2024-27022 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.38% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-27022?
High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2024-27022?
Linux >= 8d9bfb2608145cf3e408428c224099e1585471af, < 087de0e15e6830ed630c793fa4bebd62e8348da1; >= 8d9bfb2608145cf3e408428c224099e1585471af, < 2e5cbab8ccbfc7d4a3d8a21d3c2a1f2c1aa29b5b; >= 8d9bfb2608145cf3e408428c224099e1585471af, < abdb88dd272bbeb93efe01d8e0b7b17e24af3a34; >= 8d9bfb2608145cf3e408428c224099e1585471af, < 35e351780fa9d8240dd6f7e4f245f9ea37e96c19; Linux 6.1.
Is there a fix for CVE-2024-27022?
Yes. Fixed in Linux 087de0e15e6830ed630c793fa4bebd62e8348da1, Linux 2e5cbab8ccbfc7d4a3d8a21d3c2a1f2c1aa29b5b, Linux 35e351780fa9d8240dd6f7e4f245f9ea37e96c19. Upgrade Linux to 35e351780fa9d8240dd6f7e4f245f9ea37e96c19 or later.
How do I check if I'm affected by CVE-2024-27022?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.