# CVE-2024-27022: fork: defer linking file vma until vma is fully initialized

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.38% (percentile 24, 2026-11-26)
- **CWE:** CWE-908
- **Published:** 2024-05-01T05:35:39.627Z
- **Modified:** 2026-10-30T13:17:25.047Z

## Who should check

- Anyone running Linux \>= 8d9bfb2608145cf3e408428c224099e1585471af, \< 087de0e15e6830ed630c793fa4bebd62e8348da1; \>= 8d9bfb2608145cf3e408428c224099e1585471af, \< 2e5cbab8ccbfc7d4a3d8a21d3c2a1f2c1aa29b5b; \>= 8d9bfb2608145cf3e408428c224099e1585471af, \< abdb88dd272bbeb93efe01d8e0b7b17e24af3a34; \>= 8d9bfb2608145cf3e408428c224099e1585471af, \< 35e351780fa9d8240dd6f7e4f245f9ea37e96c19
- Anyone running Linux 6.1

## 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

- Linux: \>= 8d9bfb2608145cf3e408428c224099e1585471af, \< 087de0e15e6830ed630c793fa4bebd62e8348da1; \>= 8d9bfb2608145cf3e408428c224099e1585471af, \< 2e5cbab8ccbfc7d4a3d8a21d3c2a1f2c1aa29b5b; \>= 8d9bfb2608145cf3e408428c224099e1585471af, \< abdb88dd272bbeb93efe01d8e0b7b17e24af3a34; \>= 8d9bfb2608145cf3e408428c224099e1585471af, \< 35e351780fa9d8240dd6f7e4f245f9ea37e96c19 (cvelist)
- Linux: 6.1 (cvelist)

## Mitigation

- Upgrade Linux to 35e351780fa9d8240dd6f7e4f245f9ea37e96c19 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- patch: <https://git.kernel.org/stable/c/abdb88dd272bbeb93efe01d8e0b7b17e24af3a34>
- patch: <https://git.kernel.org/stable/c/35e351780fa9d8240dd6f7e4f245f9ea37e96c19>
- patch: <https://git.kernel.org/stable/c/0c42f7e039aba3de6d7dbf92da708e2b2ecba557>
- patch: <https://git.kernel.org/stable/c/cec11fa2eb512ebe3a459c185f4aca1d44059bbf>
- other: <https://git.kernel.org/stable/c/087de0e15e6830ed630c793fa4bebd62e8348da1>
- other: <https://git.kernel.org/stable/c/2e5cbab8ccbfc7d4a3d8a21d3c2a1f2c1aa29b5b>
- other: <https://git.kernel.org/stable/c/04b0c41912349aff11a1bbaef6a722bd7fbb90ac>
- other: <https://git.kernel.org/stable/c/dd782da470761077f4d1120e191f1a35787cda6e>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DAMSOZXJEPUOXW33WZYWCVAY7Z5S7OOY/>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4EZ6PJW7VOZ224TD7N4JZNU6KV32ZJ53/>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GCBZZEC7L7KTWWAS2NLJK6SO3IZIL4WW/>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-27022>

HTML: <https://flawdb.com/CVE-2024-27022> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-27022>
