CVE-2025-37966: riscv: Fix kernel crash due to PR_SET_TAGGED_ADDR_CTRL
In the Linux kernel, the following vulnerability has been resolved:
riscv: Fix kernel crash due to PRSETTAGGEDADDRCTRL
When userspace does PRSETTAGGEDADDRCTRL, but Supm extension is not available, the kernel crashes:
Oops - illegal instruction [#1] [snip] epc : settaggedaddrctrl+0x112/0x15a ra : settaggedaddrctrl+0x74/0x15a epc : ffffffff80011ace ra : ffffffff80011a30 sp : ffffffc60039be10 [snip] status: 0000000200000120 badaddr: 0000000010a79073 cause: 0000000000000002 settaggedaddrctrl+0x112/0x15a riscvsysprctl+0x352/0x73c dotrapecallu+0x17c/0x20c andleexception+0x150/0x15c
Fix it by checking if Supm is available.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
Before handling userspace PR_SET_TAGGED_ADDR_CTRL, check whether the RISC-V Supm extension is available to prevent the kernel from executing an unsupported instruction.
Event History
Frequently Asked Questions
What is the severity of CVE-2025-37966?
CVE-2025-37966 is a high severity vulnerability due to the potential for kernel crashes.
How do I fix CVE-2025-37966?
To fix CVE-2025-37966, update the Linux kernel to a version that includes the patch for this vulnerability.
What is the impact of CVE-2025-37966 on systems?
The impact of CVE-2025-37966 is a kernel crash when userspace executes PR_SET_TAGGED_ADDR_CTRL without the Supm extension.
Which versions of the Linux kernel are affected by CVE-2025-37966?
CVE-2025-37966 affects versions of the Linux kernel prior to the implementation of the patch that resolves this issue.
Is CVE-2025-37966 a local or remote vulnerability?
CVE-2025-37966 is considered a local vulnerability as it requires userspace access to trigger the issue.