CVE-2026-139619

Not scored yetLast modified Nov 30, 2026

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

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Nov 30, 2026
Last modified
Nov 30, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-139626.5Insufficient data validation in PDF in Google Chrome prior to 150.0.7871.47 allowed a remote attacker who had compromised the renderer proceCVE-2026-139620In the Linux kernel, the following vulnerability has been resolved: bpf: Fix uninit read for non-fetch atomics on partially spilled slots CVE-2026-139621In the Linux kernel, the following vulnerability has been resolved: bpf: Don't converge a loop on an iterator that was created anew When tCVE-2026-139622In the Linux kernel, the following vulnerability has been resolved: bpf: Fix overflow of jump offset in may_goto expansion may_goto is expCVE-2026-1396237.0In the Linux kernel, the following vulnerability has been resolved: bpf: Adjust pc-relative insn copied into its own patch bpf_do_misc_fixCVE-2026-139624In the Linux kernel, the following vulnerability has been resolved: bpf, x86: Fix timed may_goto with private stack arch_bpf_timed_may_gotCVE-2026-139625In the Linux kernel, the following vulnerability has been resolved: spi: rockchip-sfc: skip DMA cleanup in PIO mode With rockchip,sfc-no-dCVE-2026-139626In the Linux kernel, the following vulnerability has been resolved: ASoC: fsl_asrc_m2m: fix pm_runtime usage counter leak on error pm_runtCVE-2026-139627In the Linux kernel, the following vulnerability has been resolved: ASoC: fsl_asrc: check the second front-end DMA channel The temporary FCVE-2026-139628In the Linux kernel, the following vulnerability has been resolved: bpf: Adjust bpf_func to account for CFI offset in bpf_jit_free on riscvCVE-2026-139629In the Linux kernel, the following vulnerability has been resolved: bpf: Check fastcall stack contract once for all stack accesses When thCVE-2026-139633.1Inappropriate implementation in DevTools in Google Chrome prior to 150.0.7871.47 allowed a remote attacker who convinced a user to engage in
CVE-2026-139619: Unscored | Vulnix