# CVE-2025-37966: riscv: Fix kernel crash due to PR_SET_TAGGED_ADDR_CTRL

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2025-05-20T16:47:14.815Z
- Modified: 2026-06-17T09:15:47.550Z
- Assigned by: Linux

## Description

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

riscv: Fix kernel crash due to PR_SET_TAGGED_ADDR_CTRL

When userspace does PR_SET_TAGGED_ADDR_CTRL, but Supm extension is not
available, the kernel crashes:

Oops - illegal instruction [#1]
    [snip]
epc : set_tagged_addr_ctrl+0x112/0x15a
 ra : set_tagged_addr_ctrl+0x74/0x15a
epc : ffffffff80011ace ra : ffffffff80011a30 sp : ffffffc60039be10
    [snip]
status: 0000000200000120 badaddr: 0000000010a79073 cause: 0000000000000002
    set_tagged_addr_ctrl+0x112/0x15a
    __riscv_sys_prctl+0x352/0x73c
    do_trap_ecall_u+0x17c/0x20c
    andle_exception+0x150/0x15c

Fix it by checking if Supm is available.

(As written by CVE List.)

## Affected

- Linux Linux: from 09d6775f503b393d0457c7126aa43208e1724004 before 4b595a2f5656cd45d534ed2160c94f7662adefe5; from 09d6775f503b393d0457c7126aa43208e1724004 before ae08d55807c099357c047dba17624b09414635dd; 6.13 (not affected: before 6.13; from 6.14.7 up to 6.14.*; from 6.15 up to *)
- linux linux_kernel: from 6.13 before 6.14.7; 6.15

## References

- <https://git.kernel.org/stable/c/4b595a2f5656cd45d534ed2160c94f7662adefe5> (patch)
- <https://git.kernel.org/stable/c/ae08d55807c099357c047dba17624b09414635dd> (patch)

## Sources

- CVE List: [CVE-2025-37966](https://www.cve.org/CVERecord?id=CVE-2025-37966), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-37966](https://nvd.nist.gov/vuln/detail/CVE-2025-37966), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-37966 · Whole record: https://cve.day/CVE-2025-37966.json · Rebuilt by cve.day 2026-11-25T22:58:58.313Z
