CVE-2022-49172
Published: 26 February 2025
Summary
CVE-2022-49172 is a high-severity an unspecified weakness vulnerability in Linux Linux Kernel. Its CVSS base score is 7.1 (High).
Operationally, exploitation aligns with the MITRE ATT&CK technique Exploitation for Privilege Escalation (T1068); ranked at the 30.8th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.
The strongest mitigations our analysis identified are NIST 800-53 RA-5 (Vulnerability Monitoring and Scanning) and SI-2 (Flaw Remediation).
Deeper analysis
CVE-2022-49172 is a vulnerability in the Linux kernel's PA-RISC (parisc) architecture implementation, specifically affecting the flush_user_dcache_range_asm and flush_user_icache_range_asm functions. When flushing cache ranges for pages that are not present, non-access data TLB faults occur from fdc and fic instructions, preventing proper cache line invalidation and leading to potential memory corruption. This issue was masked by nullification of the flush instructions but also caused performance degradation, with up to 32 faults per 4 KB page on pa8800/pa8900 processors due to 128-byte cache lines. Additionally, flush_cache_range() flushed excessively large ranges.
A local attacker with low privileges (AV:L/AC:L/PR:L/UI:N) can exploit this vulnerability to trigger the faulty cache flushes, resulting in memory corruption. The CVSS v3.1 base score of 7.1 reflects high impact on integrity (I:H) and availability (A:H) with no confidentiality impact (C:N), potentially enabling denial-of-service or further privilege escalation through corrupted memory states in user space cache operations.
Mitigation requires applying stable kernel patches, as detailed in the referenced commits: b3d6adb3a49d82e4e557c5fc16f50c9ff731da5d, ddca4b82027e2a66333dd40fab21a4beff435c7e, and f839e5f1cef36ce268950c387129b1bfefdaebc9. These replace the faulty flush instructions with flush_cache_pages(), which uses a temporary alias mapping for safe flushing, corrects the range in flush_cache_range(), and removes unnecessary preempt_disable/enable calls in version 2 of the patch.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2022-55053
Vulnerability details
In the Linux kernel, the following vulnerability has been resolved: parisc: Fix non-access data TLB cache flush faults When a page is not present, we get non-access data TLB faults from the fdc and fic instructions in flush_user_dcache_range_asm and flush_user_icache_range_asm.…
more
When these occur, the cache line is not invalidated and potentially we get memory corruption. The problem was hidden by the nullification of the flush instructions. These faults also affect performance. With pa8800/pa8900 processors, there will be 32 faults per 4 KB page since the cache line is 128 bytes. There will be more faults with earlier processors. The problem is fixed by using flush_cache_pages(). It does the flush using a tmp alias mapping. The flush_cache_pages() call in flush_cache_range() flushed too large a range. V2: Remove unnecessary preempt_disable() and preempt_enable() calls.
- CWE(s)
Related Threats
MITRE ATT&CK Enterprise TechniquesAI
Why these techniques?
Local kernel memory corruption vulnerability directly enables exploitation for privilege escalation from low-privileged user space.
CVEs Like This One
Affected Assets
Mitigating Controls
Mitigating Controls (NIST 800-53 r5) AI
Timely remediation through applying the specified Linux kernel patches directly corrects the faulty flush_user_dcache_range_asm and flush_user_icache_range_asm functions, preventing TLB faults and memory corruption on non-present pages in PA-RISC architecture.
Vulnerability scanning identifies unpatched Linux kernels on PA-RISC systems affected by CVE-2022-49172, enabling prompt flaw remediation.
Establishing and enforcing secure configuration settings for Linux kernels ensures use of patched versions that fix improper cache flushing ranges and absent page handling.