CVE-2026-72028: riscv: probes: save original sp in rethook trampoline

Published Aug 15, 2026
·
Updated

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

riscv: probes: save original sp in rethook trampoline

Reading a word from the stack in a kretprobe crashes a risc-v kernel.

$ cd /sys/kernel/tracing/ $ echo 'r nttywrite $stack0' > dynamicevents $ echo 1 > events/kprobes/enable Unable to handle kernel paging request at virtual address 0000000200000128 ... [<ffffffff80016d16>] regsgetkernelstacknth+0x26/0x38 [<ffffffff80177196>] processfetchinsn+0x3ee/0x760 [<ffffffff80177836>] kretprobetracefunc+0x116/0x1f0 [<ffffffff8017795a>] kretprobedispatcher+0x4a/0x58 [<ffffffff8013572e>] kretproberethookhandler+0x5e/0x90 [<ffffffff80180838>] rethooktrampolinehandler+0x70/0x108 [<ffffffff8001ba32>] archrethooktrampolinecallback+0x12/0x1c [<ffffffff8001ba84>] archrethooktrampoline+0x48/0x94 [<ffffffff8067872a>] ttywrite+0x1a/0x30

In regsgetkernelstacknth, regs->sp contains an arbitrary value.

archrethooktrampoline saves the registers from the probed function in a struct ptregs. sp is not saved. Instead, sp is decremented for archrethooktrampoline's local stack.

Fix this crash and save the original sp along with the other registers. Use a0 as a temporary register, it is overwritten anyway.

[pjw@kernel.org: added Fixes tag; cc'ed stable]

Affected Software

1 affected component
Linux Linux kernel

Event History

Aug 15, 2026
CVE Published
via MITRE·05:51 AM
Data Sourced
via MITRE·05:51 AM
Description
Data Sourced
via NVD·06:21 AM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-72028?

CVE-2026-72028 has been assigned a risk level of 34.

2

How do I fix CVE-2026-72028?

To fix CVE-2026-72028, update to the latest version of the Linux kernel that addresses this issue.

3

What systems are affected by CVE-2026-72028?

CVE-2026-72028 affects Linux kernel versions that implement the RISC-V architecture.

4

What is the impact of CVE-2026-72028?

The impact of CVE-2026-72028 is that it can cause a RISC-V kernel to crash when reading from the stack in a kretprobe.

5

When was CVE-2026-72028 published?

CVE-2026-72028 was published on August 15, 2026.

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