CVE-2025-40260: sched_ext: Fix scx_enable() crash on helper kthread creation failure

Published Dec 4, 2025
·
Updated

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

schedext: Fix scxenable() crash on helper kthread creation failure

A crash was observed when the schedext selftests runner was terminated with Ctrl+\ while test 15 was running:

NIP [c00000000028fa58] scxenable.constprop.0+0x358/0x12b0 LR [c00000000028fa2c] scxenable.constprop.0+0x32c/0x12b0 Call Trace: scxenable.constprop.0+0x32c/0x12b0 (unreliable) bpfstructopslinkcreate+0x18c/0x22c sysbpf+0x23f8/0x3044 sysbpf+0x2c/0x6c systemcallexception+0x124/0x320 systemcallvectoredcommon+0x15c/0x2ec

kthreadrunworker() returns an ERRPTR() on failure rather than NULL, but the current code in scxallocandaddsched() only checks for a NULL helper. Incase of failure on SIGQUIT, the error is not handled in scxallocandaddsched() and scxenable() ends up dereferencing an error pointer.

Error handling is fixed in scxallocandaddsched() to propagate PTRERR() into ret, so that scxenable() jumps to the existing error path, avoiding random dereference on failure.

Affected Software

1 affected component
Linux Linux kernel

Event History

Dec 4, 2025
CVE Published
via MITRE·04:08 PM
Data Sourced
via MITRE·04:08 PM
Description
Data Sourced
via NVD·04:16 PM
Description

Frequently Asked Questions

1

What is the severity of CVE-2025-40260?

CVE-2025-40260 has been classified as a moderate severity vulnerability.

2

What is the impact of CVE-2025-40260 on the Linux kernel?

CVE-2025-40260 can cause a crash in the Linux kernel when the sched_ext selftests runner is interrupted.

3

How do I fix CVE-2025-40260?

Updating to the latest stable version of the Linux kernel will resolve CVE-2025-40260.

4

Is CVE-2025-40260 exploitable remotely?

CVE-2025-40260 is not classified as a remotely exploitable vulnerability.

5

What versions of the Linux kernel are affected by CVE-2025-40260?

CVE-2025-40260 affects certain versions of the Linux kernel that include the sched_ext functionality.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203