Bug 2536725 (CVE-2026-90066) - CVE-2026-90066 kernel: samples/ftrace: Fix kthread_stop() on ERR_PTR in ftrace-direct-multi-modify
Summary: CVE-2026-90066 kernel: samples/ftrace: Fix kthread_stop() on ERR_PTR in ftrac...
Keywords:
Status: NEW
Alias: CVE-2026-90066
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-09-17 19:21 UTC by OSIDB Bzimport
Modified: 2026-10-13 12:20 UTC (History)
17 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-09-17 19:21:33 UTC
In the Linux kernel, the following vulnerability has been resolved:

samples/ftrace: Fix kthread_stop() on ERR_PTR in ftrace-direct-multi-modify

ftrace_direct_multi_init() assigns kthread_run()'s return value to
simple_tsk without an IS_ERR() check. When kthread_run() fails it
returns ERR_PTR(-ENOMEM), but init still returns 0, so the module loads
with simple_tsk holding an error pointer. On unload,
ftrace_direct_multi_exit() then passes that ERR_PTR to kthread_stop(),
leading to a null-pointer-dereference.

Check the return value of kthread_run() with IS_ERR(); on failure,
unregister the ftrace direct call and propagate the error code.


Note You need to log in before you can comment on or make changes to this bug.