Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-139059

published

microblaze: preserve the MSR carry flags across signals

Published
30 Nov 2026, 13:27:29 UTC
Updated
30 Nov 2026, 13:27:29 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux2148daa9c45ff4f91b5890f2a453e3130288064c to < 99c46dfc82544c0adb2ea7d30c6b39e53880aa2b · 2148daa9c45ff4f91b5890f2a453e3130288064c to < ea2ec2c505099d3a0f3ee8a1d282fe44e211f4c4 · 2148daa9c45ff4f91b5890f2a453e3130288064c to < 91d2e032ad06f5606c281aada7ff2f1c104f3dff · 2148daa9c45ff4f91b5890f2a453e3130288064c to < 54b66ea6322045d049d2f621dd1fd6ab98b1ae63 · 2148daa9c45ff4f91b5890f2a453e3130288064c to < d73722aafce9ac78731f96e2d7865f126797b5eb · 2148daa9c45ff4f91b5890f2a453e3130288064c to < 1f8722a7053ffe11eff0ee402b7c5150dc808089 · 2148daa9c45ff4f91b5890f2a453e3130288064c to < 560fb159ad7bb7765686da8d10d568f9f7270e88 · 2148daa9c45ff4f91b5890f2a453e3130288064c to < ca35dd21a5f8343f47a23e4e5b3f0ffccf76a4ae · 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.117 through 6.12.* (unaffected · semver) · 6.18.63 through 6.18.* (unaffected · semver) · 7.3.4 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: preserve the MSR carry flags across signals setup_sigcontext() and restore_sigcontext() copy r0-r31, pc, ear, esr and fsr to and from the signal frame but never touch MSR. The interrupted MSR is therefore dropped from the signal context entirely: the handler's ucontext does not expose it, a handler cannot adjust the resumed arithmetic flags through uc_mcontext.regs.msr, and -- because restore_sigcontext() leaves regs->msr as whatever the rt_sigreturn trap left in it -- the interrupted context resumes with the carry produced by the syscall entry path (_user_exception does "addi r14, r14, 4", which writes carry), not with its own. Other architectures round-trip the user-visible flags through the signal frame (arm's cpsr, csky's carry, x86's eflags), so a handler can both read and adjust the resumed flags; purely privileged status registers such as riscv's sstatus are left out. MicroBlaze should do the same for the user-writable bits. Concretely, MSR[C] (carry) is lost across signal delivery. Code that keeps a live carry across a point where a signal can be delivered -- for example an lwx/swx compare-and-swap retry loop, between the swx and the carry test -- resumes with the handler's carry and mis-evaluates the result; the same failure class as the rt_sigreturn r3/r4 clobber, reached through a different register. Demonstrated under qemu-system-microblazeel (machine petalogix-s3adsp1800): a handler that sets MSR_C in uc_mcontext.regs.msr has no effect before this change (0 of 132 in-window signals propagated) and takes effect after (130 of 132). Save MSR in setup_sigcontext() so the handler's ucontext exposes it. The signal frame is user-writable, so restore_sigcontext() must not restore it verbatim: MicroBlaze packs the user-writable carry (MSR_C, MSR_CC) and the privileged control bits (MSR_UM, MSR_VM, MSR_IE, MSR_EE, ...) into the one register, and a verbatim restore would let userspace alter privileged return state -- rtbd derives the resumed mode from MSR_UMS/MSR_VMS. Restore only MSR_C | MSR_CC from the frame and keep the rest from the current regs->msr. This mirrors x86's restore_sigcontext(), which masks the restored EFLAGS to FIX_EFLAGS for the same reason; arches whose status register is purely privileged (e.g. riscv sstatus) simply do not restore it at all. Comment on the exposed MSR reworded: it is not read-only, restore_sigcontext() applies MSR_C|MSR_CC from the frame. Author's Signed-off-by kept; he agreed to comment and changelog cleanups.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

No normalized assessments.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 2148daa9c45ff4f91b5890f2a453e3130288064c to < 99c46dfc82544c0adb2ea7d30c6b39e53880aa2b (affected · git)2148daa9c45ff4f91b5890f2a453e3130288064c to < ea2ec2c505099d3a0f3ee8a1d282fe44e211f4c4 (affected · git)2148daa9c45ff4f91b5890f2a453e3130288064c to < 91d2e032ad06f5606c281aada7ff2f1c104f3dff (affected · git)2148daa9c45ff4f91b5890f2a453e3130288064c to < 54b66ea6322045d049d2f621dd1fd6ab98b1ae63 (affected · git)2148daa9c45ff4f91b5890f2a453e3130288064c to < d73722aafce9ac78731f96e2d7865f126797b5eb (affected · git)2148daa9c45ff4f91b5890f2a453e3130288064c to < 1f8722a7053ffe11eff0ee402b7c5150dc808089 (affected · git)2148daa9c45ff4f91b5890f2a453e3130288064c to < 560fb159ad7bb7765686da8d10d568f9f7270e88 (affected · git)2148daa9c45ff4f91b5890f2a453e3130288064c to < ca35dd21a5f8343f47a23e4e5b3f0ffccf76a4ae (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.117 through 6.12.* (unaffected · semver)6.18.63 through 6.18.* (unaffected · semver)7.3.4 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

8

Provider assertions

1

Linux · cna

microblaze: preserve the MSR carry flags across signals

Provenance

Schema
5.2
Searchable
yes
Content hash
f3e7f9e607850c8d2a71f16911131dd1593911deadeaf697db07c671305b9120
Ingested
30 Nov 2026, 13:36:40 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected