Kernel compromise via writeback page use-after-free
Published May 22, 2024 · Updated Aug 5, 2026
Use-after-free in Linux kernel collapse_file allows local users to compromise the kernel through executable mappings on XFS. collapse_file frees a page that is still under writeback because its indirect page_has_private check misses XFS filesystems whose block size is at least the system page size. An unprivileged local process can exercise the path through MADV_HUGEPAGE retries, causing a kernel panic or enabling kernel-memory read, write, and control-flow primitives.
Summary
What happened
Use-after-free in Linux kernel collapse_file allows local users to compromise the kernel through executable mappings on XFS. collapse_file frees a page that is still under writeback because its indirect page_has_private check misses XFS filesystems whose block size is at least the system page size. An unprivileged local process can exercise the path through MADV_HUGEPAGE retries, causing a kernel panic or enabling kernel-memory read, write, and control-flow primitives.
The record
- CVE
- CVE-2021-47492
- Published
- May 22, 2024
- Updated
- Aug 5, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- T1068, T1499.004
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- May 22, 2024CVE publishedPublication date reported by the CVE source.
- Aug 5, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=5.4
- Affected versionversion=99cb0dbd47a15d395bf3faa78dc122bc5efe3fc0 <5e669d8ab30ab61dec3c36e27b4711f07611e6fc
- Affected versionversion=99cb0dbd47a15d395bf3faa78dc122bc5efe3fc0 <69a7fa5cb0de06c8956b040f19a7248c8c8308ca
- Affected versionversion=99cb0dbd47a15d395bf3faa78dc122bc5efe3fc0 <74c42e1baacf206338b1dd6b6199ac964512b5bb
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo