CVE-2021-47491mm: khugepaged: skip huge page collapse for special files
- 5.5MediumCVSS base score
- 0.21%Exploitation in 30 daysEPSS · top 89% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
Description
In the Linux kernel, the following vulnerability has been resolved: mm: khugepaged: skip huge page collapse for special files The read-only THP for filesystems will collapse THP for files opened readonly and mapped with VM_EXEC. The intended usecase is to avoid TLB misses for large text segments. But it doesn't restrict the file types so a THP could be collapsed for a non-regular file, for example, block device, if it is opened readonly and mapped with EXEC permission. This may cause bugs, like [1] and [2]. This is definitely not the intended usecase, so just collapse THP for regular files in order to close the attack surface. [[email protected]: fix vm_file check [3]]
Timeline
ID reserved
By Linux
Published
- 24 months later
· 24 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Analyzed | 3.1 | Medium5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
- EPSS (exploitation in 30 days)
- 0.21% · top 89% of all CVEs (16 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.5.
Affected products
- affected 99cb0dbd47a15d395bf3faa78dc122bc5efe3fc0 – < 6d67b2a73b8e3a079c355bab3c1aef7d85a044b8
- affected 99cb0dbd47a15d395bf3faa78dc122bc5efe3fc0 – < 5fcb6fce74ffa614d964667110cf1a516c48c6d9
- affected 99cb0dbd47a15d395bf3faa78dc122bc5efe3fc0 – < a4aeaa06d45e90f9b279f0b09de84bd00006e733
- affected 5.4
- unaffected < 5.4
- unaffected 5.10.78 – ≤ 5.10.*
- unaffected 5.14.16 – ≤ 5.14.*
- unaffected 5.15 – ≤ *
References
References3
- https://git.kernel.org/stable/c/6d67b2a73b8e3a079c355bab3c1aef7d85a044b8 (opens in a new tab)x_transferred
- https://git.kernel.org/stable/c/5fcb6fce74ffa614d964667110cf1a516c48c6d9 (opens in a new tab)x_transferred
- https://git.kernel.org/stable/c/a4aeaa06d45e90f9b279f0b09de84bd00006e733 (opens in a new tab)x_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2021-34495 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2021-47491)Record last updated .