Kernel crash via migration-entry mapcount race
Published Jul 16, 2024 · Updated May 11, 2026
Race condition in the Linux kernel allows local users to crash the kernel by racing a procfs smaps read with MADV_FREE. In fs/proc/task_mmu.c, smaps_account() calls page_mapcount() on a migration entry while a partial transparent huge page can be split, leaving PageDoubleMap() to inspect a page that is no longer a tail page and trigger a BUG. The race requires local execution that can read /proc/$PID/smaps while issuing MADV_FREE; the demonstrated consequence is a kernel crash, with no reported confidentiality or integrity impact.
Summary
What happened
Race condition in the Linux kernel allows local users to crash the kernel by racing a procfs smaps read with MADV_FREE. In fs/proc/task_mmu.c, smaps_account() calls page_mapcount() on a migration entry while a partial transparent huge page can be split, leaving PageDoubleMap() to inspect a page that is no longer a tail page and trigger a BUG. The race requires local execution that can read /proc/$PID/smaps while issuing MADV_FREE; the demonstrated consequence is a kernel crash, with no reported confidentiality or integrity impact.
The record
- CVE
- CVE-2022-48802
- Published
- Jul 16, 2024
- Updated
- May 11, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- T1499.004
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Jul 16, 2024CVE publishedPublication date reported by the CVE source.
- May 11, 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=4.5
- Affected versionversion=e9b61f19858a5d6c42ce2298cf138279375d0d9b <05d3f8045efa59457b323caf00bdb9273b7962fa
- Affected versionversion=e9b61f19858a5d6c42ce2298cf138279375d0d9b <24d7275ce2791829953ed4e72f68277ceb2571c6
- Affected versionversion=e9b61f19858a5d6c42ce2298cf138279375d0d9b <a8dd0cfa37792863b6c4bf9542975212a6715d49
- Affected versionversion=e9b61f19858a5d6c42ce2298cf138279375d0d9b <db3f3636e4aed2cba3e4e7897a053323f7a62249
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
- syzbot kernel BUG in __page_mapcount reproducerproof of concept · demonstrated
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