CVE-2026-139775

microblaze: prevent ptrace writes to MSR and pt_mode

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

microblaze: prevent ptrace writes to MSR and pt_mode

arch_ptrace() accepts PTRACE_POKEUSR for every aligned offset below
PT_SIZE. This includes the saved machine status register and pt_mode,
which are kernel-owned execution state rather than general registers.

On return from an exception, rtbd copies MSR_UMS to the live MSR_UM bit.
An unprivileged same-UID tracer can therefore clear MSR_UMS in its
tracee's saved register frame and make the tracee resume in supervisor
mode. pt_mode also controls whether later entry paths classify the frame
as kernel or user state.

Reject PTRACE_POKEUSR writes to both fields while retaining read access.

Analysis

AI-generated

Technical impact

An error in the Linux kernel's Microblaze architecture allows a process to write to privileged register fields via ptrace. The arch_ptrace() routine incorrectly accepts the PTRACE_POKEUSR request for any aligned offset below PT_SIZE, which includes the machine status register (MSR) and pt_mode that define the kernel's execution state. When an unprivileged tracer with the same user ID modifies these fields, the tracee can be forced to resume in supervisor mode, effectively granting the tracer kernel‑level privileges. This vulnerability is a pure privilege escalation vector that permits any process that can attach to another one as the same UID to gain elevated rights.

Affected Systems

The flaw has been identified in all Linux kernel releases that target the Microblaze architecture. The affected product is the Linux kernel itself, across all flavors where the kernel is built for the Microblaze target. No specific version ranges are listed in the CVE, and the references provide commit patches for the canonical mainline kernel, implying the vulnerability existed before those patches were merged. System admins should therefore verify the kernel version and architecture used in their deployments.

Risk and Exploitability

The advisory does not provide a CVSS score or EPSS value, and the vulnerability is not listed in CISA’s Known Exploited Vulnerabilities catalog. Nevertheless, the attack requires only that a process is running with the same user ID and that ptrace is permitted, both common in many Linux environments. A local attacker can attach to a target process and manipulate its MSR and pt_mode fields, forcing the target to execute with supervisor privileges. This constitutes a high‑risk privilege escalation that could compromise entire systems in multi‑tenant or shared‑user scenarios.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the kernel patch that rejects PTRACE_POKEUSR writes to MSR and pt_mode (see the commit hash 015b67c5eb14aa9efc07df84573583b2d867568d).
  • Verify that the kernel is compiled with standard security mitigations and that ptrace capabilities are limited to processes with appropriate privileges.
  • For environments where the patch cannot be applied immediately, restrict or revoke the CAP_SYS_PTRACE capability from unprivileged processes or disable ptrace for same‑UID attachments.

Generated by OpenCVE AI on December 1, 2026 at 01:16 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-269
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: microblaze: prevent ptrace writes to MSR and pt_mode arch_ptrace() accepts PTRACE_POKEUSR for every aligned offset below PT_SIZE. This includes the saved machine status register and pt_mode, which are kernel-owned execution state rather than general registers. On return from an exception, rtbd copies MSR_UMS to the live MSR_UM bit. An unprivileged same-UID tracer can therefore clear MSR_UMS in its tracee's saved register frame and make the tracee resume in supervisor mode. pt_mode also controls whether later entry paths classify the frame as kernel or user state. Reject PTRACE_POKEUSR writes to both fields while retaining read access.
Title microblaze: prevent ptrace writes to MSR and pt_mode
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-269

    Improper Privilege Management

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:37 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:20 PM
Modified
Nov 30, 2026, 2:20 PM