Kernel - riscv/kprobe: fix kernel panic when invoking sys_read traced by kprobe
Summary
GSD-2021-1000074: riscv/kprobe: fix kernel panic when invoking sys_read traced by kprobe. Affects Kernel versions >= c22b0bcb1dd024cb9caad9230e3a387d8b061df5, < fd0f06590d35c99f98d12c7984897ec4201a6263. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The Kernel is a critical component of the Linux operating system that provides core functionalities and interfaces between hardware and software. It manages system resources, facilitates communication between processes, and ensures security and stability. The riscv/kprobe module is a feature in the Kernel that allows tracing and debugging of system calls. However, a vulnerability exists in the riscv/kprobe module when invoking the sys_read system call, leading to a kernel panic.
Vulnerability Detail
The vulnerability in the riscv/kprobe module occurs when sys_read is traced by kprobe. This can trigger a kernel panic, resulting in a system crash. The vulnerability was introduced in Linux Kernel version v5.12 and is fixed in version v5.12.3. The impact and attack plausibility of this vulnerability have not been proven yet.
How To Fix
No fixed version is published for this vulnerability.
To fix this vulnerability, it is recommended to update the Linux Kernel to version v5.12.3 or later. This can be done by downloading the latest stable version of the Kernel from the official Git repository (https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/) and following the installation instructions provided.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
There is no specific workaround mentioned for this vulnerability.
Conclusion
The riscv/kprobe vulnerability in the Kernel can result in a kernel panic when invoking sys_read traced by kprobe. It is crucial to update the Linux Kernel to version v5.12.3 or later to mitigate this vulnerability. For further support and assistance in vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The riscv/kprobe module is a feature in the Linux Kernel that allows tracing and debugging of system calls.
sys_read is a system call in the Linux Kernel that is used for reading data from a file descriptor.
A kernel panic is a critical error in the operating system kernel that causes the system to crash and become unresponsive.
The impact of this vulnerability is a kernel panic, which can lead to a system crash and loss of data.
You can use Vulert Playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Simply upload your package-lock.json file and Vulert will analyze it for vulnerabilities.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.
Follow Vulert in Google
Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.