{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2026-139060 in the wild and no public exploit code.","exposure":"","fix":"Upgrade to a fixed version.","what":"CVE-2026-139060 is a vulnerability in Linux, published on 30 Nov 2026."},"fix_prompt":"Check this codebase for CVE-2026-139060 and fix it if it is affected.\n\nWhat it is: CVE-2026-139060 is a vulnerability in Linux, published on 30 Nov 2026. \nExploitation: There is no known exploitation of CVE-2026-139060 in the wild and no public exploit code.\n\nAffected product: Linux. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-139060/ (Markdown: https://insights.sbomify.com/CVE-2026-139060/index.md)","id":"CVE-2026-139060","markdown":"https://insights.sbomify.com/CVE-2026-139060/index.md","name":"CVE-2026-139060","record":{"aliases":["BELL-CVE-2026-139060","DEBIAN-CVE-2026-139060","GHSA-m7w2-5c77-2wcr","UBUNTU-CVE-2026-139060"],"analysis":null,"analysis_generated_by":null,"assigner":"Linux","component":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmicroblaze: don't clobber r3/r4 restored by rt_sigreturn\n\nret_from_trap begins by storing the system call return values r3 and r4\nback into the saved user pt_regs.  That is right for an ordinary system\ncall, but sys_rt_sigreturn() returns through the same path and has to be\ntransparent: restore_sigcontext() has just filled pt_regs from the signal\nframe, and every register must reach userspace exactly as saved.  The two\nstores overwrite the restored r3/r4 with whatever the C function left in\nthose registers.\n\nOnly r4 is actually lost, and that follows from how sigreturn is written\neverywhere rather than from chance.  Architectures have sys_rt_sigreturn()\nreturn the restored return-value register precisely so that this writeback\nstores the restored value -- arm returns regs-\u003eARM_r0, riscv and csky\nregs-\u003ea0, arc regs-\u003er0 -- and microblaze does the same through\n*rval_p = regs-\u003er3 in restore_sigcontext().  But the entry macros treat r3\nand r4 as a pair, so ret_from_trap writes back two registers while a C\nfunction has only one return value; nothing carries the restored r4.\n\nCommit 791d0a169b91 (\"microblaze: Fix sys_rt_sigreturn_wrapper\") introduced\nthis in v2.6.37.  The old wrapper saved r3/r4 before the call and reloaded\nthem from pt_regs afterwards; switching brlid to brid removed the only\npoint where they were reloaded, and the stores have been overwriting them\never since.\n\nFix it the way the sibling paths already behave: ret_from_irq and\nret_from_exc restore the full register set and do not perform these stores\nat all.  Label the instruction after the stores ret_from_trap_no_rval and\nenter there, biasing r15 by -8 so that the ABI return \"rtsd r15, 8\" lands\non it; naming the entry rather than computing ret_from_trap + 8 keeps it\ncorrect if the number of stores ever changes.  Restoring the old\nsave/reload would work too, but costs four memory accesses and a branch to\nundo damage that is better not done.\n\nAny value the compiler keeps in r4 across a signal is lost.  The tightest\nwindows are the lwx/swx compare-and-swap retry loops gcc emits for atomics:\nin uClibc-ng's libc.so alone, 50 of 364 such loops hold the address in r4.\nThis is not specific to one libc -- musl passes the address as \"r\"(p), and\nglibc has no microblaze atomic-machine.h and so uses gcc's __atomic\nbuiltins, which expand the same way.  Triggering it needs threads plus a\nsignal storm, which is why it survived 15 years.\n\nReproduced on qemu-system-microblazeel (petalogix-s3adsp1800) by running\nthe uClibc-ng NPTL test tst-eintr1 40 times against an unchanged userspace:\non v7.2 built with gcc 16.2.0, 23 of 40 iterations died with SIGSEGV\nwithout this patch and 0 of 40 with it; on v7.0 built with gcc 12.5.0 the\nsame comparison gave 6 of 40 against 0 of 40.  The register dump of a\nfailing iteration shows the signature: a zero r4 and a fault at address 0,\nwhile r3 came back intact.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"microblaze: don't clobber r3/r4 restored by rt_sigreturn","id":"CVE-2026-139060","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":null,"year":"2026"},"main_cpe":null,"main_fixed":[],"main_package":null,"n_packages":0,"n_references":8,"n_vendor_status":0,"next":{"headline":"udf: validate the device specification EA before using it","id":"CVE-2026-139061"},"nickname":null,"packages":[],"prev":{"headline":"microblaze: preserve the MSR carry flags across signals","id":"CVE-2026-139059"},"products":["Linux"],"published":"2026-11-30","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","text_fixes":[],"updated":"2026-11-30","vendor_status":[],"vendors":["Linux"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2026-139060/"}