GHSA-6X33-6394-78MW
Vulnerability from github – Published: 2026-11-30 15:32 – Updated: 2026-11-30 15:32In 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.
{
"affected": [],
"aliases": [
"CVE-2026-139059"
],
"database_specific": {
"cwe_ids": [],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-11-30T14:18:12Z",
"severity": null
},
"details": "In the Linux kernel, the following vulnerability has been resolved:\n\nmicroblaze: preserve the MSR carry flags across signals\n\nsetup_sigcontext() and restore_sigcontext() copy r0-r31, pc, ear, esr and\nfsr to and from the signal frame but never touch MSR. The interrupted\nMSR is therefore dropped from the signal context entirely: the handler\u0027s\nucontext does not expose it, a handler cannot adjust the resumed\narithmetic flags through uc_mcontext.regs.msr, and -- because\nrestore_sigcontext() leaves regs-\u003emsr as whatever the rt_sigreturn trap\nleft in it -- the interrupted context resumes with the carry produced by\nthe syscall entry path (_user_exception does \"addi r14, r14, 4\", which\nwrites carry), not with its own.\n\nOther architectures round-trip the user-visible flags through the signal\nframe (arm\u0027s cpsr, csky\u0027s carry, x86\u0027s eflags), so a handler can both read\nand adjust the resumed flags; purely privileged status registers such as\nriscv\u0027s sstatus are left out. MicroBlaze should do the same for the\nuser-writable bits.\n\nConcretely, MSR[C] (carry) is lost across signal delivery. Code that\nkeeps a live carry across a point where a signal can be delivered -- for\nexample an lwx/swx compare-and-swap retry loop, between the swx and the\ncarry test -- resumes with the handler\u0027s carry and mis-evaluates the\nresult; the same failure class as the rt_sigreturn r3/r4 clobber, reached\nthrough a different register. Demonstrated under qemu-system-microblazeel\n(machine petalogix-s3adsp1800): a handler that sets MSR_C in\nuc_mcontext.regs.msr has no effect before this change (0 of 132 in-window\nsignals propagated) and takes effect after (130 of 132).\n\nSave MSR in setup_sigcontext() so the handler\u0027s ucontext exposes it. The\nsignal frame is user-writable, so restore_sigcontext() must not restore it\nverbatim: MicroBlaze packs the user-writable carry (MSR_C, MSR_CC) and the\nprivileged control bits (MSR_UM, MSR_VM, MSR_IE, MSR_EE, ...) into the one\nregister, and a verbatim restore would let userspace alter privileged\nreturn state -- rtbd derives the resumed mode from MSR_UMS/MSR_VMS.\nRestore only MSR_C | MSR_CC from the frame and keep the rest from the\ncurrent regs-\u003emsr. This mirrors x86\u0027s\nrestore_sigcontext(), which masks the restored EFLAGS to FIX_EFLAGS for\nthe same reason; arches whose status register is purely privileged (e.g.\nriscv sstatus) simply do not restore it at all.\n\nComment on the exposed MSR reworded: it is not read-only,\nrestore_sigcontext() applies MSR_C|MSR_CC from the frame. Author\u0027s\nSigned-off-by kept; he agreed to comment and changelog cleanups.",
"id": "GHSA-6x33-6394-78mw",
"modified": "2026-11-30T15:32:15Z",
"published": "2026-11-30T15:32:15Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139059"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/1f8722a7053ffe11eff0ee402b7c5150dc808089"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/54b66ea6322045d049d2f621dd1fd6ab98b1ae63"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/560fb159ad7bb7765686da8d10d568f9f7270e88"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/91d2e032ad06f5606c281aada7ff2f1c104f3dff"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/99c46dfc82544c0adb2ea7d30c6b39e53880aa2b"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/ca35dd21a5f8343f47a23e4e5b3f0ffccf76a4ae"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/d73722aafce9ac78731f96e2d7865f126797b5eb"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/ea2ec2c505099d3a0f3ee8a1d282fe44e211f4c4"
}
],
"schema_version": "1.4.0",
"severity": []
}
Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline
Sightings and recorded dates, grouped by day · UTC
How durations are calculated
Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.
Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.
Loading timeline…
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.