CVE-2026-139558
sched: Set TIF_NEED_RESCHED before calling __trace_set_need_resched()
Mitigation
- Upgrade Linux to 53bc5c556b82a3ca32b62ba349c4511f91526b9f or later.
Who should check
- Anyone running Linux >= adcc3bfa8806761ac21aa271f78454113ec6936e, < cce90cef0abc44caab7c2c5a6e775424537ffa84; >= adcc3bfa8806761ac21aa271f78454113ec6936e, < d9079e8eb14188f57d6553a7433ced6875c83711; >= adcc3bfa8806761ac21aa271f78454113ec6936e, < 53bc5c556b82a3ca32b62ba349c4511f91526b9f
- Anyone running Linux 6.17
Vulnerability facts
- Affected
- Linux >= adcc3bfa8806761ac21aa271f78454113ec6936e, < cce90cef0abc44caab7c2c5a6e775424537ffa84; >= adcc3bfa8806761ac21aa271f78454113ec6936e, < d9079e8eb14188f57d6553a7433ced6875c83711; >= adcc3bfa8806761ac21aa271f78454113ec6936e, < 53bc5c556b82a3ca32b62ba349c4511f91526b9f; Linux 6.17
- Fixed in
- Linux 53bc5c556b82a3ca32b62ba349c4511f91526b9f
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Unknown
- CVSS
- Not scored yet
- Modified
Description
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= adcc3bfa8806761ac21aa271f78454113ec6936e, < cce90cef0abc44caab7c2c5a6e775424537ffa84; >= adcc3bfa8806761ac21aa271f78454113ec6936e, < d9079e8eb14188f57d6553a7433ced6875c83711; >= adcc3bfa8806761ac21aa271f78454113ec6936e, < 53bc5c556b82a3ca32b62ba349c4511f91526b9f | — | cvelist |
| Linux | 6.17 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-139558. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-139558.md Affected: Linux >= adcc3bfa8806761ac21aa271f78454113ec6936e, < cce90cef0abc44caab7c2c5a6e775424537ffa84; >= adcc3bfa8806761ac21aa271f78454113ec6936e, < d9079e8eb14188f57d6553a7433ced6875c83711; >= adcc3bfa8806761ac21aa271f78454113ec6936e, < 53bc5c556b82a3ca32b62ba349c4511f91526b9f; Linux 6.17 Fixed in: Linux 53bc5c556b82a3ca32b62ba349c4511f91526b9f 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.
Technologies
References
FAQ
Is CVE-2026-139558 being exploited?
There is no confirmed exploitation: CVE-2026-139558 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.
How serious is CVE-2026-139558?
It has no CVSS score yet. Unknown.
Which versions are affected by CVE-2026-139558?
Linux >= adcc3bfa8806761ac21aa271f78454113ec6936e, < cce90cef0abc44caab7c2c5a6e775424537ffa84; >= adcc3bfa8806761ac21aa271f78454113ec6936e, < d9079e8eb14188f57d6553a7433ced6875c83711; >= adcc3bfa8806761ac21aa271f78454113ec6936e, < 53bc5c556b82a3ca32b62ba349c4511f91526b9f; Linux 6.17.
Is there a fix for CVE-2026-139558?
Yes. Fixed in Linux 53bc5c556b82a3ca32b62ba349c4511f91526b9f. Upgrade Linux to 53bc5c556b82a3ca32b62ba349c4511f91526b9f or later.
How do I check if I'm affected by CVE-2026-139558?
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.
More Linux kernel vulnerabilities
See all| Severity | Identifier / vulnerability | Technology | Signals | Age |
|---|---|---|---|---|
| MEDIUM 6.5 | CVE-2026-140063 Glib2: authenticated dos via pre-emptive 128mib read-buffer allocation in gdbusworker | Linux kernel+1 | ||
| MEDIUM 5.1 | CVE-2026-140038 Binutils: gprofng uses predictable /tmp directory with unchecked mkdir() enabling symlink-based file clobber | Linux kernel+1 | ||
| HIGH 7.3 | CVE-2026-139801 KVM: nSVM: Check validity of vmcs01 save area copied from SMRAM on RSM | Linux kernel | ||
| UNSCORED | CVE-2026-139800 9p/xen: drain response work after unbinding IRQ | Linux kernel | ||
| HIGH 7.0 | CVE-2026-139799 mm/shmem: hold off eviction in shmem_writeout() | Linux kernel |