
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2022-50225 is a vulnerability discovered in the Linux kernel related to RISC-V architecture's uprobe functionality. The issue was identified in the handling of SR_SPIE (Supervisor Previous Interrupt Enable) flag setting and clearing during uprobe execution (NVD, Wiz).
The vulnerability occurs in the RISC-V uprobe implementation where the process attempts to clear SPIE before executing the original instruction and set SPIE after that. When accessing the page where the original instruction has been placed, a page fault may occur while interrupts are disabled in the arch_uprobe_pre_xol function. This leads to a warning condition in the kernel with the message 'BUG: sleeping function called from invalid context' in the kernel's rwsem.c file (Wiz).
The vulnerability can cause a kernel warning and potential system instability when using uprobes on RISC-V systems. When triggered, it results in a 'BUG: sleeping function called from invalid context' error in the kernel's rwsem.c file (Wiz).
The issue has been resolved by removing the unnecessary SPIE clear/set operations in the arch_uprobe_pre/post/abort_xol functions. The fix involves a simple removal of these operations as they were determined to be unnecessary for proper functionality (Wiz).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."