CVE-2026-139775: Linux kernel on MicroBlaze lets a ptrace tracer rewrite the saved MSR and resume the tracee in supervisor mode

ByLinuxtastic

December 3, 2026 #CVE, #Linux Kernel

MicroBlaze is Xilinx’s soft-core processor for FPGAs, and Linux has run on it since 2.6.30. The kernel CNA record says its ptrace implementation “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.” The fix rejects writes to both fields while keeping reads. The CNA scores it 7.8 and Red Hat rates it Important while noting it “does not support” the architecture. On a MicroBlaze system that runs untrusted local code, upgrade to a kernel at or above 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65 or 7.3.6; every other architecture is unaffected.

CVE-2026-139775 at a glance.

ComponentLinux kernel, MicroBlaze architecture (arch/microblaze/kernel/ptrace.c): arch_ptrace() handling PTRACE_POKEUSR
Affected versionsevery MicroBlaze kernel since the port’s ptrace support (Fixes: 2b4384542691, “microblaze_v8: ptrace support”, 2.6.30): 2.6.30 up to 5.10 before 5.10.275, 5.15 before 5.15.226, 6.1 before 6.1.193, 6.6 before 6.6.163, 6.12 before 6.12.119, 6.18 before 6.18.65, 7.3 before 7.3.6 and 7.4 before 7.4-rc1. Only CONFIG_MICROBLAZE builds contain the code
Fixed inmainline 7.4-rc1 (commit 8518fd17, the one Debian cites) and stable 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6. One file, +3 lines: a PTRACE_POKEUSR to offset PT_MSR or PT_MODE now returns -EIO; reads and every other register are unchanged
SeverityKernel CNA CVSS 3.1 7.8 (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H); NVD shows the CNA metric only; Red Hat Important, 7.8 on the same vector (draft, CWE-1285), bug 2586557 “microblaze: privilege escalation via improper ptrace register modification”, with the statement that no supported Red Hat build contains the architecture
Exploited in the wildNot on the CISA KEV catalogue (2026.11.30). EPSS 0.00327 (28th percentile) on 1 December 2026
Who is exposedA Linux system on a MicroBlaze soft core, typically an embedded FPGA design, where an unprivileged local process can ptrace another process of its own UID, which the default ptrace_scope allows for a child. The tracer flips the tracee into supervisor mode: a local root. No x86, Arm, RISC-V, POWER or s390 kernel contains the code
PublishedCVE record 30 November 2026 (kernel CNA); this page built 2 December 2026, last updated 2 December 2026

What it is

ptrace lets a debugger read and write a stopped tracee’s registers, and on most architectures the user-visible register area is carefully separated from the state the kernel uses to decide what mode the process runs in. On MicroBlaze, the record says, the PTRACE_POKEUSR handler accepted any aligned offset below PT_SIZE, and that range included two fields that are not general registers: the saved machine status register and pt_mode, which records whether the saved frame is kernel or user state.

The record spells out why that is a privilege boundary: when the kernel returns from an exception, the rtbd instruction copies the saved MSR_UMS bit into the live user-mode bit. A tracer that clears MSR_UMS in the tracee’s saved frame therefore makes the tracee resume in supervisor mode, running its own user code with kernel privilege; and pt_mode steers how later entry paths classify the frame. Because an unprivileged process may trace its own children, no capability is needed: fork, trace, poke, continue.

The fix, by Jérémy Jean of ANSSI and committed by Michal Simek, adds a branch in arch_ptrace() that returns -EIO for a PTRACE_POKEUSR whose offset is PT_MSR or PT_MODE, ahead of the generic handler, so debuggers can still read those fields but not write them. The flaw has been in the port since its ptrace support landed in 2.6.30; the general-purpose distributions in the table below build no MicroBlaze kernels, so their “vulnerable” rows describe source they ship rather than binaries they run. git.kernel.org refuses automated readers, so the commit was read on GitHub.

Who is affected on Linux

Each row is what the distribution’s own security tracker said on 2 December 2026; the link in the row is the tracker page, which will be newer than this one. None of these distributions ships a MicroBlaze kernel, so the rows track the source package rather than any binary a user runs; the exposed systems are embedded builds from Yocto, Buildroot or PetaLinux.

DistributionStatusFixed package
AlpineNot consulted for this page: the Alpine tracker refused the automated reader on 2 December 2026—
Debianbookworm (6.1.176-1, security 6.1.192-3) vulnerable; trixie (6.12.117-1, security 6.12.118-1) vulnerable; fixed in forky and sid (7.3.6-1); no DSA (source-level: Debian builds no MicroBlaze kernel)unstable 7.3.6-1
UbuntuNot consulted for this page: the Ubuntu CVE page refused the automated reader on 2 December 2026 (client error); the Ubuntu row will be filled when the page can be read—
RHEL, Rocky, Alma, CentOS StreamImportant, 7.8 (bug 2586557, CWE-1285); every product not affected: “the affected code exists only in the MicroBlaze architecture, which RHEL does not support”—
openSUSE/SLENot consulted: suse.com refused the automated reader on 2 December 2026 (client error)—
Fedora, Arch; self-built kernelsNot consulted; upstream stable versions applyYocto, Buildroot, PetaLinux and other embedded MicroBlaze builds: 5.10.275 / 5.15.226 / 6.1.193 / 6.6.163 / 6.12.119 / 6.18.65 / 7.3.6 or later

How to check

One question decides almost everything: is this a MicroBlaze kernel. If it is, the next two are whether it is below the fixed version for its series and whether unprivileged processes may ptrace at all.

# 1. the architecture: only microblaze is affected
uname -m                       # "microblaze" is the only answer that matters here
grep -m1 '^CPU' /proc/cpuinfo  # MicroBlaze reports its core version

# 2. the running kernel against the fixed version for its series
uname -r        # fixed: 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6 or later

# 3. may an unprivileged process trace a sibling or child (0 or 1 = yes for its own children)
cat /proc/sys/kernel/yama/ptrace_scope 2>/dev/null || echo 'no Yama: tracing own children is allowed'

Anything other than microblaze from uname -m ends the check: the handler is compiled only for that architecture. On a MicroBlaze kernel below the fixed version, any process that can trace another process of its UID can escalate, and the usual ptrace_scope of 0 or 1 permits exactly that for a forked child, so the realistic bar is “can run a binary”. A kernel built without CONFIG_PTRACE-dependent features is rare; ptrace_scope 3 (no tracing at all) closes the path but breaks debuggers.

How to fix it

Rebuild or update the kernel with the fix and reboot. Embedded MicroBlaze kernels come from the board’s BSP rather than a distribution, so the practical step is to move the BSP to a fixed stable release or cherry-pick the three-line patch. The record lists no mitigation; Yama’s strictest setting is the only interim lever.

# Yocto / PetaLinux / Buildroot: bump the kernel recipe to a fixed stable (e.g. 6.6.163 or 6.12.119),
# or add the upstream patch to the kernel's SRC_URI / patch directory:
#   https://git.kernel.org/stable/c/8518fd17ccef4a7d77877ccb0403b722106ad1a4
# then rebuild the image and reflash the board
# Interim on a MicroBlaze host that does not need debuggers: forbid ptrace entirely until the kernel is fixed
# (requires CONFIG_SECURITY_YAMA; this cannot be lowered again without a reboot)
echo 3 > /proc/sys/kernel/yama/ptrace_scope

ptrace_scope 3 stops every PTRACE_ATTACH and PTRACE_TRACEME, which also stops gdb, strace and crash handlers, and it is one-way until reboot, so it fits a sealed appliance image and nothing else. What not to do: do not spend time on this page for any non-MicroBlaze host, however high the score reads; the 7.8 is a local-root on a soft core, and the distribution “vulnerable” rows are about source packages that are never built for it.

Sources

  • CVE-2026-139775 at CVE.org — the kernel CNA record: the “accepts PTRACE_POKEUSR for every aligned offset below PT_SIZE” and “make the tracee resume in supervisor mode” sentences, the 2.6.30 lower bound, the git ranges, the single file (30 November 2026)
  • Fix commit 8518fd17 (mainline, 7.4-rc1) and the stable backports in the record; git.kernel.org refuses automated readers, so it was read on GitHub: Jérémy Jean (ANSSI), committed by Michal Simek, Fixes: 2b4384542691 (“microblaze_v8: ptrace support”), no Cc: stable, one file +3/−0 returning -EIO for pokes to PT_MSR and PT_MODE
  • NVD entry — Received on 30 November 2026; shows the CNA’s 7.8 as its only metric, no NVD score or CWE on 2 December
  • Distribution trackers: Debian (bookworm and trixie vulnerable at source level, forky and sid fixed in 7.3.6-1) · Ubuntu (page refused the automated reader on 2 December) · Red Hat (Important 7.8, bug 2586557, no product affected) · SUSE and Alpine (both refused the automated reader on 2 December)
  • CISA KEV catalogue 2026.11.30, not listed · EPSS 0.00327 (percentile 0.279) on 1 December 2026

Related reading

This advisory page was assembled from the primary sources listed above on 2 December 2026 and is updated when they change. The facts are theirs; the checks and the ordering are ours. If a row in the distribution table is out of date, the tracker link in that row is the current word.