Vulnerability in riscv Kernel: Fix for oops caused by irqsoff latency tracer
Summary
GSD-2022-1000722: riscv: fix oops caused by irqsoff latency tracer. Affects Kernel versions >= 3c46979829824da5af8766d89fa877976bdae884, < b5e180490db4af8c0f80c4b65ee482d333d0e8ee. 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 riscv Kernel is a component of the Linux operating system that supports the RISC-V architecture. It provides the necessary functionality for the RISC-V processors to interact with the hardware and run applications. The irqsoff latency tracer is a feature in the kernel that helps identify and analyze latency issues related to interrupt handling. However, a vulnerability has been discovered in the irqsoff latency tracer, which can lead to oops (out-of-memory) errors and system instability.
Vulnerability Detail
The vulnerability in the riscv Kernel's irqsoff latency tracer arises from a flaw in the implementation. When the tracer is enabled, it can cause oops errors, leading to system crashes or instability. An attacker may potentially exploit this vulnerability to disrupt the normal functioning of the system or execute arbitrary code. The vulnerability was introduced in version v5.9 of the Linux Kernel and has been fixed in version v5.16.12.
How To Fix
No fixed version is published for this vulnerability.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
As a temporary workaround, users can disable the irqsoff latency tracer by modifying the kernel configuration. This can be achieved by removing the relevant configuration option or setting it to 'n' during the kernel compilation process. However, it is important to note that disabling the tracer may limit the ability to diagnose and analyze latency issues related to interrupt handling.
Conclusion
The vulnerability in the riscv Kernel's irqsoff latency tracer can lead to oops errors and system instability. It is crucial to update the kernel to version v5.16.12 or later to mitigate this vulnerability. Users can also temporarily disable the tracer as a workaround, but this may limit diagnostic capabilities. For further support and assistance in vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The vulnerability can lead to oops errors and system instability, potentially allowing attackers to disrupt the normal functioning of the system or execute arbitrary code.
You can use the Vulert playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Simply upload your package-lock.json file to the playground, and it will provide real-time alerts for open-source vulnerabilities, including this one.
Yes, a temporary workaround is to disable the irqsoff latency tracer by modifying the kernel configuration. However, this may limit the ability to diagnose and analyze latency issues related to interrupt handling.
To update the riscv Kernel to the fixed version (v5.16.12 or later), you can obtain the updated kernel source code from the official Linux Kernel repository (https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/) and compile it for your system. Alternatively, you can wait for your Linux distribution to provide an updated package.
This vulnerability was discovered by the security research team and reported to the Linux Kernel developers for remediation.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.