CVE-2022-50225

Source
https://cve.org/CVERecord?id=CVE-2022-50225
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50225.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-50225
Downstream
Published
2025-06-18T11:03:58.643Z
Modified
2026-04-02T08:28:19.970428Z
Summary
riscv:uprobe fix SR_SPIE set/clear handling
Details

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

riscv:uprobe fix SR_SPIE 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>] dump_stack+0x18/0x20 [ 31.688653] [<ffffffff8003e454>] __might_resched+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

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50225.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
74784081aac8a0f3636965fc230e2d3b7cc123c6
Fixed
c71e000db8536d27ec410abb3e314896a78b4f19
Fixed
3811d51778900064d27d8c9a98f73410fb3b471d
Fixed
73fc099eaefd9a92c83b6c07dad066411fd5a192
Fixed
3dbe5829408bc1586f75b4667ef60e5aab0209c7

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50225.json"