CVE-2026-139775
published high CVSS 3.1 · 7.8microblaze: prevent ptrace writes to MSR and pt_mode
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux2b4384542691fddd309f9324b5a9af976b75e918 to < 709a5c11b298f80c9c6ef389dd28b6664c553a01 · 2b4384542691fddd309f9324b5a9af976b75e918 to < 015b67c5eb14aa9efc07df84573583b2d867568d · 2b4384542691fddd309f9324b5a9af976b75e918 to < b452438f3a3974dd12ad44ab05dd3489610f3022 · 2b4384542691fddd309f9324b5a9af976b75e918 to < 27cbad56ff9967c5e1976719ded8e74e008691e9 · 2b4384542691fddd309f9324b5a9af976b75e918 to < 7373a9b732c0efb6b6e1f2385baa2acd6be20c58 · 2b4384542691fddd309f9324b5a9af976b75e918 to < d370cedaaad61c397ecf89f055df5a5a02da5ebc · 2b4384542691fddd309f9324b5a9af976b75e918 to < b65017801ed2cae46af8af16d91b6bb9eccbcd55 · 2b4384542691fddd309f9324b5a9af976b75e918 to < 8518fd17ccef4a7d77877ccb0403b722106ad1a4 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux2.6.30 (affected) · 0 to < 2.6.30 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.119 through 6.12.* (unaffected · semver) · 6.18.65 through 6.18.* (unaffected · semver) · 7.3.6 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The attacker reaches arch_ptrace() through the local ptrace(2) syscall, using PTRACE_POKEUSR at offset PT_MSR or PT_MODE on a tracee they own. No remote protocol carries the input. AC:L - The attacker controls both sides: fork, PTRACE_TRACEME in the child, a stop, then POKEUSR of a PT_MSR value with MSR_UMS cleared plus a chosen PT_PC, then PTRACE_CONT. ret_from_trap/ret_from_exc/ret_from_irq then load PT_MSR and rtbd/rtid into supervisor mode every time, with no race. PR:L - Pre-fix arch_ptrace() accepted any aligned offset below PT_SIZE. The only gate is the normal same-uid ptrace check, and yama_ptrace_traceme() does not restrict PTRACE_TRACEME at the default scope 1, so a plain unprivileged user can do this to their own child. UI:N - The attacker works entirely through their own processes: a forked child that they trace and resume. No other user or administrator has to do anything. S:U - A user process ends up in privileged mode on the same kernel. That is ordinary user-to-kernel privilege escalation within one authority, with no VM, hypervisor or IOMMU boundary crossed. C:H - With MSR_UMS cleared, the tracee runs attacker code in supervisor mode. ZPR zone 0 is set to 00 in mm/init.c, which allows privileged access to kernel pages under their TLB bits, so the code can read all kernel lowmem and other processes' memory. I:H - In supervisor mode the attacker's code can write kernel memory and run privileged instructions (mts rmsr, TLB writes to map any physical page), which is arbitrary kernel code execution. Forging pt_mode also makes the entry paths treat the frame as kernel state. A:H - Code running in supervisor mode can halt the CPU, rewrite the TLB or corrupt kernel state at will. A bad MSR or pt_mode value alone sends ret_from_trap down the kernel-return path with a user r1, which oopses or hangs the system.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 2b4384542691fddd309f9324b5a9af976b75e918 to < 709a5c11b298f80c9c6ef389dd28b6664c553a01 (affected · git)2b4384542691fddd309f9324b5a9af976b75e918 to < 015b67c5eb14aa9efc07df84573583b2d867568d (affected · git)2b4384542691fddd309f9324b5a9af976b75e918 to < b452438f3a3974dd12ad44ab05dd3489610f3022 (affected · git)2b4384542691fddd309f9324b5a9af976b75e918 to < 27cbad56ff9967c5e1976719ded8e74e008691e9 (affected · git)2b4384542691fddd309f9324b5a9af976b75e918 to < 7373a9b732c0efb6b6e1f2385baa2acd6be20c58 (affected · git)2b4384542691fddd309f9324b5a9af976b75e918 to < d370cedaaad61c397ecf89f055df5a5a02da5ebc (affected · git)2b4384542691fddd309f9324b5a9af976b75e918 to < b65017801ed2cae46af8af16d91b6bb9eccbcd55 (affected · git)2b4384542691fddd309f9324b5a9af976b75e918 to < 8518fd17ccef4a7d77877ccb0403b722106ad1a4 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 2.6.30 (affected)0 to < 2.6.30 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.119 through 6.12.* (unaffected · semver)6.18.65 through 6.18.* (unaffected · semver)7.3.6 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
8- https://git.kernel.org/stable/c/015b67c5eb14aa9efc07df84573583b2d867568d
- https://git.kernel.org/stable/c/27cbad56ff9967c5e1976719ded8e74e008691e9
- https://git.kernel.org/stable/c/709a5c11b298f80c9c6ef389dd28b6664c553a01
- https://git.kernel.org/stable/c/7373a9b732c0efb6b6e1f2385baa2acd6be20c58
- https://git.kernel.org/stable/c/8518fd17ccef4a7d77877ccb0403b722106ad1a4
- https://git.kernel.org/stable/c/b452438f3a3974dd12ad44ab05dd3489610f3022
- https://git.kernel.org/stable/c/b65017801ed2cae46af8af16d91b6bb9eccbcd55
- https://git.kernel.org/stable/c/d370cedaaad61c397ecf89f055df5a5a02da5ebc
Provider assertions
1Linux · cna
microblaze: prevent ptrace writes to MSR and pt_mode
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- dae152a3e4905d0293b62a287e4ba3ca20def82557d8d97e768c8a20ed4b749f
- Ingested
- 01 Dec 2026, 05:47:22 UTC
- Source record
- Official CVE record