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

openrisc: signal: do not restore privileged SR bits on sigreturn

restore_sigcontext() copies the whole supervision register (SR) from the
signal frame and only clears SPR_SR_SM before the value is reloaded into
the hardware SR (through ESR and l.rfe) on the return to user space. All
other SR bits are left under user control.

An unprivileged task can thus return from a signal handler through a
crafted sigframe that clears SPR_SR_DME. With the data MMU disabled the
CPU performs no translation or protection on data accesses, so the task
gains read and write access to arbitrary physical memory, a local
privilege escalation. SPR_SR_IME, SPR_SR_SUMRA, SPR_SR_LEE, SPR_SR_EPH
and the cache-enable bits are exposed the same way. The ptrace GPR regset
already refuses any change to SR for exactly this reason.

Restore only the arithmetic flag bits (F, CY, OV) from the signal frame
and take every privileged control bit from the SR the kernel saved on
signal entry.

Verified with qemu-system-or1k -M or1k-sim: before this change an
unprivileged PoC clears SPR_SR_DME in rt_sigreturn and writes a marker to
physical address 0x03000000 (beyond the kernel's mem=32M); afterwards the
same PoC receives SIGSEGV and physical memory is unchanged.
Published: 2026-08-26
Score: n/a
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A signed but unprivileged task can craft a signal frame that clears privileged Supervisor Register (SR) bits such as SPR_SR_DME during signal return. The kernel copies the entire SR from the frame and only clears the SM bit before reloading it, leaving other privileged bits under user control. An attacker can therefore gain read and write access to any physical memory address by disabling data MMU translations, which is a local privilege escalation. All other privileged SR bits (IME, SUMRA, LEE, EPH, cache‑enable) are exposed in the same way, expanding the potential impact. The fix restores only arithmetic flag bits from the frame and reloads all privileged bits from the kernel saved SR, preserving proper privilege boundaries.

Affected Systems

All Linux kernel builds that include the OpenRISC architecture (openrisc) are affected. This includes any distribution kernel that has not yet incorporated the commit that restores privileged SR bits during signal return. The exact kernel version range is not specified, so any kernel older than the patch commit is vulnerable.

Risk and Exploitability

The CVSS score is not available in the current data, and the EPSS score is unknown, so the exposure likelihood cannot be quantified. The vulnerability is of high impact because it enables local privilege escalation on the OpenRISC platform. Attackers need only an unprivileged process capable of sending a signal and creating a custom sigframe, which is a feasible local attack vector. A public PoC demonstrates that an attacker can clear privileged SR bits and write to arbitrary physical memory, confirming exploitability. The vulnerability is not listed in CISA’s KEV catalog. However, the risk remains significant until the kernel is patched or the SR bits are properly restored as described in the introduced commit.

Generated by OpenCVE AI on August 26, 2026 at 16:51 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade your Linux kernel to a version that includes the openrisc signal return fix. This is the only definitive fix for the vulnerability.
  • Ensure that the kernel is configured to preserve privileged SR bits on signal return; this is handled automatically in the patched code.
  • Monitor system logs for abnormal SIGSEGVs or unexpected memory mappings that could indicate an attempted exploitation of this defect.

Generated by OpenCVE AI on August 26, 2026 at 16:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 26 Aug 2026 17:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-732

Wed, 26 Aug 2026 14:45:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: openrisc: signal: do not restore privileged SR bits on sigreturn restore_sigcontext() copies the whole supervision register (SR) from the signal frame and only clears SPR_SR_SM before the value is reloaded into the hardware SR (through ESR and l.rfe) on the return to user space. All other SR bits are left under user control. An unprivileged task can thus return from a signal handler through a crafted sigframe that clears SPR_SR_DME. With the data MMU disabled the CPU performs no translation or protection on data accesses, so the task gains read and write access to arbitrary physical memory, a local privilege escalation. SPR_SR_IME, SPR_SR_SUMRA, SPR_SR_LEE, SPR_SR_EPH and the cache-enable bits are exposed the same way. The ptrace GPR regset already refuses any change to SR for exactly this reason. Restore only the arithmetic flag bits (F, CY, OV) from the signal frame and take every privileged control bit from the SR the kernel saved on signal entry. Verified with qemu-system-or1k -M or1k-sim: before this change an unprivileged PoC clears SPR_SR_DME in rt_sigreturn and writes a marker to physical address 0x03000000 (beyond the kernel's mem=32M); afterwards the same PoC receives SIGSEGV and physical memory is unchanged.
Title openrisc: signal: do not restore privileged SR bits on sigreturn
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-26T14:37:25.971Z

Reserved: 2026-08-26T14:34:25.767Z

Link: CVE-2026-80560

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-26T15:17:10.850

Modified: 2026-08-26T15:17:10.850

Link: CVE-2026-80560

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-26T17:45:03Z

Weaknesses
  • CWE-732

    Incorrect Permission Assignment for Critical Resource