CVE-2021-47492: mm, thp: bail out early in collapse_file for writeback page
Noroxi assessment
Priority: Monitor (action score 22/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 0.21% (FIRST EPSS).
- Someone with local access to the system can trigger it. A low-privileged account is enough. No user action is required. No special conditions are required; it is repeatable.
- Fixed version: Linux Linux 5e669d8ab30ab61dec3c36e27b4711f07611e6fc, 69a7fa5cb0de06c8956b040f19a7248c8c8308ca, 74c42e1baacf206338b1dd6b6199ac964512b5bb.
- Severity is disputed: the assigning authority (CNA) scores it 7.8, NVD 5.5.
- Mentioned 1 time in Turkish national cyber security advisories (siberguvenlik.gov.tr).
Low priority for now. Upgrade to Linux Linux 5e669d8ab30ab61dec3c36e27b4711f07611e6fc, 69a7fa5cb0de06c8956b040f19a7248c8c8308ca, 74c42e1baacf206338b1dd6b6199ac964512b5bb or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
In the Linux kernel, the following vulnerability has been resolved: mm, thp: bail out early in collapse_file for writeback page Currently collapse_file does not explicitly check PG_writeback, instead, page_has_private and try_to_release_page are used to filter writeback pages. This does not work for xfs with blocksize equal to or larger than pagesize, because in such case xfs has no page->private. This makes collapse_file bail out early for writeback page. Otherwise, xfs end_page_writeback will panic as follows. page:fffffe00201bcc80 refcount:0 mapcount:0 mapping:ffff0003f88c86a8 index:0x0 pfn:0x84ef32 aops:xfs_address_space_operations [xfs] ino:30000b7 dentry name:"libtest.so" flags: 0x57fffe0000008027(locked|referenced|uptodate|active|writeback) raw: 57fffe0000008027 ffff80001b48bc28 ffff80001b48bc28 ffff0003f88c86a8 raw: 0000000000000000 0000000000000000 00000000ffffffff ffff0000c3e9a000 page dumped because: VM_BUG_ON_PAGE(((unsigned int) page_ref_count(page) + 127u <= 127u)) page->mem_cgroup:ffff0000c3e9a000 ------------[ cut here ]------------ kernel BUG at include/linux/mm.h:1212! Internal error: Oops - BUG: 0 [#1] SMP Modules linked in: BUG: Bad page state in process khugepaged pfn:84ef32 xfs(E) page:fffffe00201bcc80 refcount:0 mapcount:0 mapping:0 index:0x0 pfn:0x84ef32 libcrc32c(E) rfkill(E) aes_ce_blk(E) crypto_simd(E) ... CPU: 25 PID: 0 Comm: swapper/25 Kdump: loaded Tainted: ... pstate: 60400005 (nZCv daif +PAN -UAO -TCO BTYPE=--) Call trace: end_page_writeback+0x1c0/0x214 iomap_finish_page_writeback+0x13c/0x204 iomap_finish_ioend+0xe8/0x19c iomap_writepage_end_bio+0x38/0x50 bio_endio+0x168/0x1ec blk_update_request+0x278/0x3f0 blk_mq_end_request+0x34/0x15c virtblk_request_done+0x38/0x74 [virtio_blk] blk_done_softirq+0xc4/0x110 __do_softirq+0x128/0x38c __irq_exit_rcu+0x118/0x150 irq_exit+0x1c/0x30 __handle_domain_irq+0x8c/0xf0 gic_handle_irq+0x84/0x108 el1_irq+0xcc/0x180 arch_cpu_idle+0x18/0x40 default_idle_call+0x4c/0x1a0 cpuidle_idle_call+0x168/0x1e0 do_idle+0xb4/0x104 cpu_startup_entry+0x30/0x9c secondary_start_kernel+0x104/0x180 Code: d4210000 b0006161 910c8021 94013f4d (d4210000) ---[ end trace 4a88c6a074082f8c ]--- Kernel panic - not syncing: Oops - BUG: Fatal exception in interrupt
- Published
- May 22, 2024
- Updated
- Aug 5, 2026
- EPSS
- 0.2% · 12th percentile
- CWE
- —
Report tools
Action score
22
Low priority for now.
- CVSS
- 22 / 40 · 5.5 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 0.2%
CISA SSVC decision
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
Vulnrichment: CISA's decision-tree inputs.
CNA vs NVD score
- NVD
- 5.5
- CNA · Linux
- 7.8
- 2.3 point gap
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| linux | linux kernel | cpe:2.3:o:linux:linux_kernel |
Versions reported by the vendor
Affected version ranges reported by the assigning authority (Linux). Independent of NVD's CPE analysis and usually ahead of it.
Linux Linux
- 5.4affected
- 99cb0dbd47a15d395bf3faa78dc122bc5efe3fc0 and later · before 69a7fa5cb0de06c8956b040f19a7248c8c8308caaffected · git
- 99cb0dbd47a15d395bf3faa78dc122bc5efe3fc0 and later · before 5e669d8ab30ab61dec3c36e27b4711f07611e6fcaffected · git
- 99cb0dbd47a15d395bf3faa78dc122bc5efe3fc0 and later · before 74c42e1baacf206338b1dd6b6199ac964512b5bbaffected · git
- before 5.4not affected · semver
- 5.10.77 and later · up to and including 5.10.*not affected · semver
- 5.14.16 and later · up to and including 5.14.*not affected · semver
- 5.15 and laternot affected · original_commit_for_fix
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- linux linux kernel5.4 and later · before 5.10.77
- linux linux kernel5.11 and later · before 5.14.16
- linux linux kernel5.15
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:12 | linux | before 5.15.3-1 | 5.15.3-1 |
| Red Hat:rhel_aus:8.6::baseos | bpftool | before 0:4.18.0-372.123.1.el8_6 | 0:4.18.0-372.123.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | bpftool-debuginfo | before 0:4.18.0-372.123.1.el8_6 | 0:4.18.0-372.123.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel | before 0:4.18.0-372.123.1.el8_6 | 0:4.18.0-372.123.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-abi-stablelists | before 0:4.18.0-372.123.1.el8_6 | 0:4.18.0-372.123.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-core | before 0:4.18.0-372.123.1.el8_6 | 0:4.18.0-372.123.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-debug | before 0:4.18.0-372.123.1.el8_6 | 0:4.18.0-372.123.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-debug-core | before 0:4.18.0-372.123.1.el8_6 | 0:4.18.0-372.123.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-debug-debuginfo | before 0:4.18.0-372.123.1.el8_6 | 0:4.18.0-372.123.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-debug-devel | before 0:4.18.0-372.123.1.el8_6 | 0:4.18.0-372.123.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-debug-modules | before 0:4.18.0-372.123.1.el8_6 | 0:4.18.0-372.123.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-debug-modules-extra | before 0:4.18.0-372.123.1.el8_6 | 0:4.18.0-372.123.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-debuginfo | before 0:4.18.0-372.123.1.el8_6 | 0:4.18.0-372.123.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-debuginfo-common-x86_64 | before 0:4.18.0-372.123.1.el8_6 | 0:4.18.0-372.123.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-devel | before 0:4.18.0-372.123.1.el8_6 | 0:4.18.0-372.123.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-doc | before 0:4.18.0-372.123.1.el8_6 | 0:4.18.0-372.123.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-modules | before 0:4.18.0-372.123.1.el8_6 | 0:4.18.0-372.123.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-modules-extra | before 0:4.18.0-372.123.1.el8_6 | 0:4.18.0-372.123.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-tools | before 0:4.18.0-372.123.1.el8_6 | 0:4.18.0-372.123.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-tools-debuginfo | before 0:4.18.0-372.123.1.el8_6 | 0:4.18.0-372.123.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-tools-libs | before 0:4.18.0-372.123.1.el8_6 | 0:4.18.0-372.123.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | perf | before 0:4.18.0-372.123.1.el8_6 | 0:4.18.0-372.123.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | perf-debuginfo | before 0:4.18.0-372.123.1.el8_6 | 0:4.18.0-372.123.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | python3-perf | before 0:4.18.0-372.123.1.el8_6 | 0:4.18.0-372.123.1.el8_6 |
+12
Same product
linux: all recordsOther highest-scoring records for the same primary product.
- CVE-2026-31431crypto: algif_aead - Revert to operating out-of-placeKEV90Now
- CVE-2022-0847A flaw was found in the way the "flags" member of the new pipe buffer structure was lacking proper initialization in copy_page_to_iter_pipe…KEV89Now
- CVE-2021-22555Heap Out-Of-Bounds Write in Netfilter IP6T_SO_SET_REPLACEKEV85Now
Published before and after this one in the same product
- ← EarlierCVE-2021-47490May 22, 2024 · drm/ttm: fix memleak in ttm_transfered_destroy22Monitor
- ← EarlierCVE-2021-47491May 22, 2024 · mm: khugepaged: skip huge page collapse for special files22Monitor
- Later →CVE-2021-47493May 22, 2024 · ocfs2: fix race between searching chunks and release journal_head from buffer_head18Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| Linux Linux | 5e669d8ab30ab61dec3c36e27b4711f07611e6fc | Vendor (CNA) |
| Linux Linux | 69a7fa5cb0de06c8956b040f19a7248c8c8308ca | Vendor (CNA) |
| Linux Linux | 74c42e1baacf206338b1dd6b6199ac964512b5bb | Vendor (CNA) |
| debian:linux | 5.15.3-1 · Debian:12 | Package registry (OSV) |
| red hat:bpftool | 0:4.18.0-372.123.1.el8_6 · Red Hat:rhel_aus:8.6::baseos | Package registry (OSV) |
| red hat:bpftool-debuginfo | 0:4.18.0-372.123.1.el8_6 · Red Hat:rhel_aus:8.6::baseos | Package registry (OSV) |
| red hat:kernel | 0:4.18.0-372.123.1.el8_6 · Red Hat:rhel_aus:8.6::baseos | Package registry (OSV) |
| red hat:kernel-abi-stablelists | 0:4.18.0-372.123.1.el8_6 · Red Hat:rhel_aus:8.6::baseos | Package registry (OSV) |
| red hat:kernel-core | 0:4.18.0-372.123.1.el8_6 · Red Hat:rhel_aus:8.6::baseos | Package registry (OSV) |
| red hat:kernel-debug | 0:4.18.0-372.123.1.el8_6 · Red Hat:rhel_aus:8.6::baseos | Package registry (OSV) |
| red hat:kernel-debug-core | 0:4.18.0-372.123.1.el8_6 · Red Hat:rhel_aus:8.6::baseos | Package registry (OSV) |
| red hat:kernel-debug-debuginfo | 0:4.18.0-372.123.1.el8_6 · Red Hat:rhel_aus:8.6::baseos | Package registry (OSV) |
| red hat:kernel-debug-devel | 0:4.18.0-372.123.1.el8_6 · Red Hat:rhel_aus:8.6::baseos | Package registry (OSV) |
| red hat:kernel-debug-modules | 0:4.18.0-372.123.1.el8_6 · Red Hat:rhel_aus:8.6::baseos | Package registry (OSV) |
| red hat:kernel-debug-modules-extra | 0:4.18.0-372.123.1.el8_6 · Red Hat:rhel_aus:8.6::baseos | Package registry (OSV) |
| red hat:kernel-debuginfo | 0:4.18.0-372.123.1.el8_6 · Red Hat:rhel_aus:8.6::baseos | Package registry (OSV) |
| suse:kernel-rt | 5.14.21-150400.15.106.1 · SUSE:Linux Enterprise Micro 5.3 | Package registry (OSV) |
| suse:kernel-source-rt | 5.14.21-150400.15.106.1 · SUSE:Linux Enterprise Micro 5.3 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
National notice (Türkiye Cybersecurity Directorate / USOM)
Official security notices citing this record; remediation advice is on the agency's page.
- TR-24-0527 · May 23, 2024(Linux Kernel Güncellemesi)
Not on record for this CVE: EPSS history · patch commit or PR link · researcher credit · variant or chain candidate · public bounty program.
Technical details
Attack conditions
- Someone with local access to the system can trigger it.
- A low-privileged account is enough.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- none
- Integrity
- none
- Availability
- high · the service can be disrupted
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- None
- Integrity impact
- None
- Availability impact
- High
Weakness class (CWE)
—
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
MITRE has no CAPEC/ATT&CK mapping for this CWE.
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (2 more)Show less
Vendor advisories and official records. Exploit/PoC links are deliberately left out.