parisc: Fix non-access data TLB cache flush faults
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
5.16.195.17.25.18In 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. 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.
From the CVE record · Linux
The Linux kernel’s parisc cache-flushing routines can fault when a page is not present, leaving a cache line uninvalidated and potentially causing memory corruption. The input does not specify how an attacker could trigger this condition or whether access or user interaction is required.
Engineers running Linux kernels on parisc systems should check their kernel versions; affected versions are not specified.