CVE-2022-50225: riscv:uprobe fix SR_SPIE set/clear handling

Published Jun 18, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

riscv:uprobe fix SRSPIE set/clear handling

In riscv the process of uprobe going to clear spie before exec the origin insn,and set spie after that.But When access the page which origin insn has been placed a page fault may happen and irq was disabled in archuprobeprexol function,It cause a WARN as follows. There is no need to clear/set spie in archuprobepre/post/abortxol. We can just remove it.

[ 31.684157] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1488 [ 31.684677] inatomic(): 0, irqsdisabled(): 1, nonblock: 0, pid: 76, name: work [ 31.684929] preemptcount: 0, expected: 0 [ 31.685969] CPU: 2 PID: 76 Comm: work Tainted: G [ 31.686542] Hardware name: riscv-virtio,qemu (DT) [ 31.686797] Call Trace: [ 31.687053] [<ffffffff80006442>] dumpbacktrace+0x30/0x38 [ 31.687699] [<ffffffff80812118>] showstack+0x40/0x4c [ 31.688141] [<ffffffff8081817a>] dumpstacklvl+0x44/0x5c [ 31.688396] [<ffffffff808181aa>] dumpstack+0x18/0x20 [ 31.688653] [<ffffffff8003e454>] mightresched+0x114/0x122 [ 31.688948] [<ffffffff8003e4b2>] mightsleep+0x50/0x7a [ 31.689435] [<ffffffff80822676>] downread+0x30/0x130 [ 31.689728] [<ffffffff8000b650>] dopagefault+0x166/x446 [ 31.689997] [<ffffffff80003c0c>] retfromexception+0x0/0xc

Affected Software

4 affected components
Linux Linux kernel
Linux Linux kernel>=5.12<5.15.61
Linux Linux kernel>=5.16<5.18.18
Linux Linux kernel>=5.19<5.19.2

Event History

Jun 18, 2025
CVE Published
via MITRE·11:03 AM
Data Sourced
via MITRE·11:03 AM
Description
Data Sourced
via NVD·11:15 AM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2022-50225?

CVE-2022-50225 has been classified with a moderate severity level.

2

How do I fix CVE-2022-50225?

To fix CVE-2022-50225, update to the latest version of the Linux kernel where the vulnerability has been addressed.

3

What systems are impacted by CVE-2022-50225?

CVE-2022-50225 affects systems running the Linux kernel on riscv architecture.

4

What kind of vulnerability is CVE-2022-50225?

CVE-2022-50225 is a vulnerability related to improper handling of the SR_SPIE register in the riscv architecture.

5

Is CVE-2022-50225 publicly known?

Yes, CVE-2022-50225 is a publicly disclosed vulnerability.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203