CVE-2022-50225
Linux Debian vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Mitigation and workarounds

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).

Additional resources


SourceThis report was generated using AI

Related Linux Debian vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-33230HIGH7.3
  • Linux DebianLinux Debian
  • nvidia-cuda-toolkit
NoNoJan 20, 2026
CVE-2025-33229HIGH7.3
  • Linux DebianLinux Debian
  • nvidia-cuda-toolkit
NoNoJan 20, 2026
CVE-2025-33228HIGH7.3
  • Linux DebianLinux Debian
  • nvidia-cuda-toolkit
NoNoJan 20, 2026
CVE-2025-33231MEDIUM6.7
  • Linux DebianLinux Debian
  • nvidia-cuda-toolkit
NoNoJan 20, 2026
CVE-2025-15281N/AN/A
  • WolfiWolfi
  • glibc-langpack-anp
NoYesJan 20, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management