# CVE-2026-139619: powerpc/ftrace: Don't restore r13 during ftrace\_regs\_caller

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-11-30T13:36:25.540Z
- **Modified:** 2026-11-30T14:19:44.657Z

> **AI summary (AI-generated, claude-haiku-5-5):** A kernel bug in the PowerPC ftrace regs caller can restore a stale r13 after task migration, letting an attacker crash the Linux kernel via stack-protector failures and preempt-count corruption.

## Who should check

- Anyone running Linux \>= 153086644fd1fb07fb3af84d9f11542a19b1e8b6, \< 366922b28c204239e152c2f93ddcc78ef6427c33; \>= 153086644fd1fb07fb3af84d9f11542a19b1e8b6, \< 6ea49e208b40bececc246dbe3f9e804b07a5eb78; \>= 153086644fd1fb07fb3af84d9f11542a19b1e8b6, \< d4c2840ee6b10543a03a3e5c7259df6cbdd4509c; \>= 153086644fd1fb07fb3af84d9f11542a19b1e8b6, \< 7880dfae923cdf3176e3b5e071c5ca5b1a5f3693; \>= 153086644fd1fb07fb3af84d9f11542a19b1e8b6, \< af5f0870883ae4aea7f668d06cbb7ad0e12824c8
- Anyone running Linux 4.6

## Description

In the Linux kernel, the following vulnerability has been resolved:

powerpc/ftrace: Don't restore r13 during ftrace\_regs\_caller

Michal reported a stack-protector failure and subsequent panic when
running kernel builds. This was observed with full/lazy preemption.
Initially it was suspected as KVM, but later turned out to be due
to a bcc tool running in parallel.

Issue was recreated using a bcc tool.
For example, running below in parallel leads to crash.
./funccount sched\* -d 100 and make -j 64

The same crash was observed when running kprobe for schedule() function,
while simpler function tracer for schedule() didn't cause the crash.
This helped to narrow it down to ftrace backed kprobes area.

The crash occurs as follows:

ftrace\_regs\_caller entry on CPU A
    \|
    +-\> save r13 = CPU A PACA into pt\_regs
    \|
    +-\> call kprobe\_ftrace\_handler()
            \|
            +-\> ftrace\_test\_recursion\_unlock()
                    \|
                    +-\> preempt\_enable
                    +-\> task can schedule and migrate to CPU B
                    +-\> task resumes with live r13 = CPU B PACA
    \|
    +-\> REST\_GPRS(2, 31)
            \|
            +-\> restore saved r13 = CPU A PACA
    \|
    \|-\> The task then continues running on CPU B with r13 pointing
    \|   to CPU A's PACA.

The stack-protector canary is accessed through the PACA. After the task
migrates, CPU A may run a different task and update its PACA with that
task's canary. Restoring the saved r13 then causes the migrated task's
saved stack canary to be compared against the canary in CPU A's PACA,
resulting in a stack-protector failure.

Similarly, current is resolved through the PACA. With a stale r13,
preempt\_count() can access the state of the task referenced by CPU A's
PACA instead of the task running on CPU B. This results in corrupted
preempt-count warnings and scheduling-while-atomic failures.

This path for example is called when using kprobes and parallel kernel
builds can cause preemptions during ftrace\_test\_recursion\_unlock.

Do not restore r13 from the saved register frame. If the task did not
migrate, the live r13 already has the saved value. If it migrated, the
live r13 contains the correct PACA pointer for the CPU on which the task
resumed.

On PPC32, r13 is regular register. So do this fix only for PPC64

## Affected and fixed versions

- Linux: \>= 153086644fd1fb07fb3af84d9f11542a19b1e8b6, \< 366922b28c204239e152c2f93ddcc78ef6427c33; \>= 153086644fd1fb07fb3af84d9f11542a19b1e8b6, \< 6ea49e208b40bececc246dbe3f9e804b07a5eb78; \>= 153086644fd1fb07fb3af84d9f11542a19b1e8b6, \< d4c2840ee6b10543a03a3e5c7259df6cbdd4509c; \>= 153086644fd1fb07fb3af84d9f11542a19b1e8b6, \< 7880dfae923cdf3176e3b5e071c5ca5b1a5f3693; \>= 153086644fd1fb07fb3af84d9f11542a19b1e8b6, \< af5f0870883ae4aea7f668d06cbb7ad0e12824c8 (cvelist)
- Linux: 4.6 (cvelist)

## Technologies

Linux kernel

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-139619. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-139619.md
Affected: Linux >= 153086644fd1fb07fb3af84d9f11542a19b1e8b6, < 366922b28c204239e152c2f93ddcc78ef6427c33; >= 153086644fd1fb07fb3af84d9f11542a19b1e8b6, < 6ea49e208b40bececc246dbe3f9e804b07a5eb78; >= 153086644fd1fb07fb3af84d9f11542a19b1e8b6, < d4c2840ee6b10543a03a3e5c7259df6cbdd4509c; >= 153086644fd1fb07fb3af84…
Fixed in: Linux 366922b28c204239e152c2f93ddcc78ef6427c33, Linux 6ea49e208b40bececc246dbe3f9e804b07a5eb78, Linux 7880dfae923cdf3176e3b5e071c5ca5b1a5f3693

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-139619 being exploited?

There is no confirmed exploitation: CVE-2026-139619 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-139619?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-139619?

Linux \>= 153086644fd1fb07fb3af84d9f11542a19b1e8b6, \< 366922b28c204239e152c2f93ddcc78ef6427c33; \>= 153086644fd1fb07fb3af84d9f11542a19b1e8b6, \< 6ea49e208b40bececc246dbe3f9e804b07a5eb78; \>= 153086644fd1fb07fb3af84d9f11542a19b1e8b6, \< d4c2840ee6b10543a03a3e5c7259df6cbdd4509c; \>= 153086644fd1fb07fb3af84d9f11542a19b1e8b6, \< 7880dfae923cdf3176e3b5e071c5ca5b1a5f3693; \>= 153086644fd1fb07fb3af84d9f11542a19b1e8b6, \< af5f0870883ae4aea7f668d06cbb7ad0e12824c8; Linux 4.6.

### Is there a fix for CVE-2026-139619?

Yes. Fixed in Linux 366922b28c204239e152c2f93ddcc78ef6427c33, Linux 6ea49e208b40bececc246dbe3f9e804b07a5eb78, Linux 7880dfae923cdf3176e3b5e071c5ca5b1a5f3693. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-139619?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/366922b28c204239e152c2f93ddcc78ef6427c33>
- other: <https://git.kernel.org/stable/c/6ea49e208b40bececc246dbe3f9e804b07a5eb78>
- other: <https://git.kernel.org/stable/c/d4c2840ee6b10543a03a3e5c7259df6cbdd4509c>
- other: <https://git.kernel.org/stable/c/7880dfae923cdf3176e3b5e071c5ca5b1a5f3693>
- other: <https://git.kernel.org/stable/c/af5f0870883ae4aea7f668d06cbb7ad0e12824c8>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-139619>

HTML: <https://flawdb.com/CVE-2026-139619> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-139619>
