{"id":"CVE-2026-90066","aliases":["CVE-2026-90066"],"related":[],"kind":"vulnerability","state":"published","title":"samples/ftrace: Fix kthread_stop() on ERR_PTR in ftrace-direct-multi-modify","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nsamples/ftrace: Fix kthread_stop() on ERR_PTR in ftrace-direct-multi-modify\n\nftrace_direct_multi_init() assigns kthread_run()'s return value to\nsimple_tsk without an IS_ERR() check. When kthread_run() fails it\nreturns ERR_PTR(-ENOMEM), but init still returns 0, so the module loads\nwith simple_tsk holding an error pointer. On unload,\nftrace_direct_multi_exit() then passes that ERR_PTR to kthread_stop(),\nleading to a null-pointer-dereference.\n\nCheck the return value of kthread_run() with IS_ERR(); on failure,\nunregister the ftrace direct call and propagate the error code.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nsamples/ftrace: Fix kthread_stop() on ERR_PTR in ftrace-direct-multi-modify\n\nftrace_direct_multi_init() assigns kthread_run()'s return value to\nsimple_tsk without an IS_ERR() check. When kthread_run() fails it\nreturns ERR_PTR(-ENOMEM), but init still returns 0, so the module loads\nwith simple_tsk holding an error pointer. On unload,\nftrace_direct_multi_exit() then passes that ERR_PTR to kthread_stop(),\nleading to a null-pointer-dereference.\n\nCheck the return value of kthread_run() with IS_ERR(); on failure,\nunregister the ftrace direct call and propagate the error code.","source":"cvelist"}],"published":"2026-09-17T16:05:48.921Z","modified":"2026-10-30T13:20:40.367Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"e1067a07cfbc5a36abad3752fafe4c79e06db1bb","fixed":"02866f063062dcc5686445c738be003de9787250","status":"affected"},{"type":"git","introduced":"e1067a07cfbc5a36abad3752fafe4c79e06db1bb","fixed":"7a96b9f6d5ba23dbce66c8a4a242effd4c01a830","status":"affected"},{"type":"git","introduced":"e1067a07cfbc5a36abad3752fafe4c79e06db1bb","fixed":"98b7b2a29ae87937aa02ab9391543ef8c602cd94","status":"affected"},{"type":"git","introduced":"e1067a07cfbc5a36abad3752fafe4c79e06db1bb","fixed":"626614df9080d7052fbe24dc90b5434717ab7a9f","status":"affected"},{"type":"git","introduced":"e1067a07cfbc5a36abad3752fafe4c79e06db1bb","fixed":"cf839636911d8313f3ecd098329fd0b96499e4cf","status":"affected"},{"type":"git","introduced":"e1067a07cfbc5a36abad3752fafe4c79e06db1bb","fixed":"6727b7618f49401acf373fa3ec5712e2ec52e5cf","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.16","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.16","status":"unaffected"},{"type":"semver","introduced":"6.1.191","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.157","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.110","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.52","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.6","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/02866f063062dcc5686445c738be003de9787250","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7a96b9f6d5ba23dbce66c8a4a242effd4c01a830","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/98b7b2a29ae87937aa02ab9391543ef8c602cd94","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/626614df9080d7052fbe24dc90b5434717ab7a9f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cf839636911d8313f3ecd098329fd0b96499e4cf","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6727b7618f49401acf373fa3ec5712e2ec52e5cf","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-90066","url":"https://www.cve.org/CVERecord?id=CVE-2026-90066","licence":"CVE Terms of Use","modified":"2026-10-30T12:34:00.306Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-90066","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-90066","licence":"Public domain","modified":"2026-10-30T13:20:40.367Z"}],"updatedAt":"2026-11-25T22:59:39.291Z","epss":{"score":0.00206,"percentile":0.11333,"date":"2026-12-01T12:00:22.000Z"}}