PT-2026-163599

CVE-2026-139558

·

Published

2026-11-30

·

Updated

2026-11-30

Description by

Score
N/A
Not available

No severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.

In the Linux kernel, the following vulnerability has been resolved:
sched: Set TIF NEED RESCHED before calling trace set need resched()
set tsk need resched() tests TIF NEED RESCHED, calls trace set need resched() if the flag is clear, then sets it via set tsk thread flag(). A BPF raw tp program attached to sched set need resched executes synchronously inside bpf trace run(). On return, bpf trace run() drops the RCU lock with rcu read unlock migrate(), which on the preempt-or-BH-disabled path calls set need resched current() -> set tsk need resched() again.
set tsk thread flag() follows the tracepoint call, so every re-entrant frame sees TIF NEED RESCHED clear and calls trace set need resched() again:
BUG: TASK stack guard page was hit at ffffc9001224ff98 Oops: stack guard page: 0000 [#1] SMP KASAN PTI RIP: 0010: bpf trace sched set need resched tp+0x1c/0x190 Call Trace: trace sched set need resched tp+0x110/0x130 set tsk need resched include/linux/sched.h:2076 set need resched current include/linux/sched.h:2094 rcu read unlock special+0x43a/0x440 rcu read unlock+0x9e/0x120 rcu read unlock migrate+0xa9/0x240 bpf trace run+0x131/0x180 bpf trace run3+0x333/0x430 bpf trace sched set need resched tp+0x13a/0x190 trace sched set need resched tp+0x110/0x130 set tsk need resched include/linux/sched.h:2076 ...
resched curr() has the same ordering, firing the tracepoint before setting the flag via set ti thread flag() or set nr and not polling(). Fix it for consistency.
Replace the separate test tsk thread flag() + set tsk thread flag() pair in set tsk need resched() with test and set tsk thread flag(). In resched curr(), move the tracepoint call after the flag is set in each path.
Vendors
Affected products
Related identifiers
Found an issue in the description? Have something to add? Feel free to write us 👾