CVE-2022-50225

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-50225
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50225.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-50225
Downstream
Published
2025-06-18T11:15:53Z
Modified
2025-06-18T16:01:33Z
Summary
[none]
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>] 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

References

Affected packages

Debian:12 / linux

Package

Name
linux
Purl
pkg:deb/debian/linux?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.0.2-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:13 / linux

Package

Name
linux
Purl
pkg:deb/debian/linux?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.0.2-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}