PT-2026-163100

CVE-2026-139059

·

تاريخ النشر

2026-11-30

·

تاريخ التحديث

2026-11-30

الوصف من

الدرجة
N/A
غير متوفر

لا تتوفر حاليًا تقييمات أو مقاييس للخطورة. سنحدّث المعلومات المقابلة في الصفحة فور توفرها.

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.
المورّدون
المنتجات المتأثرة
المعرّفات ذات الصلة
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾