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-139060

published

microblaze: don't clobber r3/r4 restored by rt_sigreturn

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 — Linux791d0a169b912220d58e0ce4564d7bf1e68146a8 to < 518805174e7617238295d1f07985bb5ce69c575f · 791d0a169b912220d58e0ce4564d7bf1e68146a8 to < 2ab82d62aaf54e178f1829707ef6bd83a31d8304 · 791d0a169b912220d58e0ce4564d7bf1e68146a8 to < a3c8e0d870e9ac754732a07f9ef688589a6bb51a · 791d0a169b912220d58e0ce4564d7bf1e68146a8 to < 4cb5736181bd5146c18e02d3498ec78f51cce770 · 791d0a169b912220d58e0ce4564d7bf1e68146a8 to < 5545d027ffa2aa99fb6dfefb5c5ccef8e5cc0826 · 791d0a169b912220d58e0ce4564d7bf1e68146a8 to < 87f78edf4b3deb58a8405d7eb401312aca7229c8 · 791d0a169b912220d58e0ce4564d7bf1e68146a8 to < 3f11e9ef8441e039c635b7acdbad992c1e27f644 · 791d0a169b912220d58e0ce4564d7bf1e68146a8 to < da6829138a39fa3b9ec318ca54ff89af9d94d350 · Other versions: unaffected Affected Not stated Linux
Linux — Linux2.6.37 (affected) · 0 to < 2.6.37 (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
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment

Description

In the Linux kernel, the following vulnerability has been resolved: microblaze: don't clobber r3/r4 restored by rt_sigreturn ret_from_trap begins by storing the system call return values r3 and r4 back into the saved user pt_regs. That is right for an ordinary system call, but sys_rt_sigreturn() returns through the same path and has to be transparent: restore_sigcontext() has just filled pt_regs from the signal frame, and every register must reach userspace exactly as saved. The two stores overwrite the restored r3/r4 with whatever the C function left in those registers. Only r4 is actually lost, and that follows from how sigreturn is written everywhere rather than from chance. Architectures have sys_rt_sigreturn() return the restored return-value register precisely so that this writeback stores the restored value -- arm returns regs->ARM_r0, riscv and csky regs->a0, arc regs->r0 -- and microblaze does the same through *rval_p = regs->r3 in restore_sigcontext(). But the entry macros treat r3 and r4 as a pair, so ret_from_trap writes back two registers while a C function has only one return value; nothing carries the restored r4. Commit 791d0a169b91 ("microblaze: Fix sys_rt_sigreturn_wrapper") introduced this in v2.6.37. The old wrapper saved r3/r4 before the call and reloaded them from pt_regs afterwards; switching brlid to brid removed the only point where they were reloaded, and the stores have been overwriting them ever since. Fix it the way the sibling paths already behave: ret_from_irq and ret_from_exc restore the full register set and do not perform these stores at all. Label the instruction after the stores ret_from_trap_no_rval and enter there, biasing r15 by -8 so that the ABI return "rtsd r15, 8" lands on it; naming the entry rather than computing ret_from_trap + 8 keeps it correct if the number of stores ever changes. Restoring the old save/reload would work too, but costs four memory accesses and a branch to undo damage that is better not done. Any value the compiler keeps in r4 across a signal is lost. The tightest windows are the lwx/swx compare-and-swap retry loops gcc emits for atomics: in uClibc-ng's libc.so alone, 50 of 364 such loops hold the address in r4. This is not specific to one libc -- musl passes the address as "r"(p), and glibc has no microblaze atomic-machine.h and so uses gcc's __atomic builtins, which expand the same way. Triggering it needs threads plus a signal storm, which is why it survived 15 years. Reproduced on qemu-system-microblazeel (petalogix-s3adsp1800) by running the uClibc-ng NPTL test tst-eintr1 40 times against an unchanged userspace: on v7.2 built with gcc 16.2.0, 23 of 40 iterations died with SIGSEGV without this patch and 0 of 40 with it; on v7.0 built with gcc 12.5.0 the same comparison gave 6 of 40 against 0 of 40. The register dump of a failing iteration shows the signature: a zero r4 and a fault at address 0, while r3 came back intact.

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 791d0a169b912220d58e0ce4564d7bf1e68146a8 to < 518805174e7617238295d1f07985bb5ce69c575f (affected · git)791d0a169b912220d58e0ce4564d7bf1e68146a8 to < 2ab82d62aaf54e178f1829707ef6bd83a31d8304 (affected · git)791d0a169b912220d58e0ce4564d7bf1e68146a8 to < a3c8e0d870e9ac754732a07f9ef688589a6bb51a (affected · git)791d0a169b912220d58e0ce4564d7bf1e68146a8 to < 4cb5736181bd5146c18e02d3498ec78f51cce770 (affected · git)791d0a169b912220d58e0ce4564d7bf1e68146a8 to < 5545d027ffa2aa99fb6dfefb5c5ccef8e5cc0826 (affected · git)791d0a169b912220d58e0ce4564d7bf1e68146a8 to < 87f78edf4b3deb58a8405d7eb401312aca7229c8 (affected · git)791d0a169b912220d58e0ce4564d7bf1e68146a8 to < 3f11e9ef8441e039c635b7acdbad992c1e27f644 (affected · git)791d0a169b912220d58e0ce4564d7bf1e68146a8 to < da6829138a39fa3b9ec318ca54ff89af9d94d350 (affected · git)Default: unaffected Linux · cna
Linux Linux 2.6.37 (affected)0 to < 2.6.37 (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: don't clobber r3/r4 restored by rt_sigreturn

Provenance

Schema
5.2
Searchable
yes
Content hash
2063b8c6d85c7f4641f8ef0670bf7cb987a1a2f1b60fd9825f6251b2e36e043b
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