PT-2024-11410 · Linux+2 · Linux Kernel+2
Published
2021-09-18
·
Updated
2024-06-25
·
CVE-2021-47414
CVSS v3.1
5.5
Medium
| Vector | AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Name of the Vulnerable Software and Affected Versions
Linux kernel versions 5.13.1 and earlier
Description
The issue arises when ftrace is looping over a list of addresses to patch and fails when patching the function
riscv cpuid to hartid mask. The patch text nosync function, after patching the instructions, calls flush icache range, which in turn calls flush icache all, sbi remote fence i, sbi rfence v02, and finally riscv cpuid to hartid mask. However, the icache and dcache of the current CPU are never synchronized between the patching of riscv cpuid to hartid mask and the call to this same function, resulting in an illegal instruction error.Recommendations
To resolve this issue, update the Linux kernel to a version that includes the fix for flushing the current CPU's icache before asking other CPUs to do the same. Specifically, ensure that the
riscv cpuid to hartid mask function is properly synchronized to prevent illegal instruction errors.Note: The provided information does not specify the exact version that includes the fix, so it is recommended to update to the latest available version of the Linux kernel.
Fix
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Astra Linux
Linux Kernel
Suse