Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5E42539021A for ; Thu, 17 Sep 2026 16:12:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789661572; cv=none; b=gLwylwHuZZ5mAxOKxAOBcZpup691TTxOIvsBN0CCpxT89s3BwOjLfGx4GDDONFqhYY/wqS04CGXDH9eewkg4V8cVb1ASi1uhw97UxZ+Hs5ufuZgwHBE7D8rMgkJ7E4iOZ3VWv2sT0QCn6hiCjgs651PGi5VXCRnuTOhzJrK2B2E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789661572; c=relaxed/simple; bh=5f+irQzEtJW7mKOw9/dXVAIF+FYQL3xagM8q/sR0m2g=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=UwHOK4zb6QiV3rfAxqYTzU0vGKs8bBh8ksCel4lj6E3pLUK9O8HIr0UOiJEXn6+NXhmm+wvayVV326uNLWPwEo7bf+wXbp4Xkh39ndG1JAr0U0HSr8qNUjUxXIOnHNESsaWUAe2CNemAVYYIeHwfMJyMdchIimagLerIQuQA7xs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=fkA8pCzQ; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="fkA8pCzQ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8449D1F000FF; Thu, 17 Sep 2026 16:12:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789661571; bh=3TadRjAzgbZmeE4Xc5jUZnNYBoMJg1uUgfp6Nhrdjrg=; h=From:To:Cc:Subject:Date:Reply-To; b=fkA8pCzQjkvgqu/WDNrUL5YqsLn5r7OM+wYH6V0GaOBHW+6dUu0pzUgNy2y6v4PS1 Ya4V0zklJQNEA6piXGNdHoy/dHYFDhnCP121qITogK5VsZz5gGr05Sx/gB9V1foG4U shW7eAZczO+hGgbaIbvOauDdzKV+p+uI2Ni60Qwo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-90066: samples/ftrace: Fix kthread_stop() on ERR_PTR in ftrace-direct-multi-modify Date: Thu, 17 Sep 2026 17:08:16 +0100 Message-ID: <2026091706-CVE-2026-90066-5708@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2999; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=9y3dKwx3Jj/Lwl+USSsO3S/wDr/Qc+O7dy+H+bHMmlo=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlrBNJe7olu2LPLVLWtWIiFdVMky9aPK30PxZde/h4bu jLzwaWJHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCR3wUMCw5bzVTl9zMuX7h/ ybtz7i7ltfX8cxkWdMrm+Yly/NXwNr+j8kyY0fjWx78XAQ== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== 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. The Linux kernel CVE team has assigned CVE-2026-90066 to this issue. Affected and fixed versions =========================== Issue introduced in 5.16 with commit e1067a07cfbc5a36abad3752fafe4c79e06db1bb and fixed in 6.6.157 with commit 7a96b9f6d5ba23dbce66c8a4a242effd4c01a830 Issue introduced in 5.16 with commit e1067a07cfbc5a36abad3752fafe4c79e06db1bb and fixed in 6.12.110 with commit 98b7b2a29ae87937aa02ab9391543ef8c602cd94 Issue introduced in 5.16 with commit e1067a07cfbc5a36abad3752fafe4c79e06db1bb and fixed in 6.18.52 with commit 626614df9080d7052fbe24dc90b5434717ab7a9f Issue introduced in 5.16 with commit e1067a07cfbc5a36abad3752fafe4c79e06db1bb and fixed in 7.2.6 with commit cf839636911d8313f3ecd098329fd0b96499e4cf Issue introduced in 5.16 with commit e1067a07cfbc5a36abad3752fafe4c79e06db1bb and fixed in 7.3-rc1 with commit 6727b7618f49401acf373fa3ec5712e2ec52e5cf Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-90066 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: samples/ftrace/ftrace-direct-multi-modify.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/7a96b9f6d5ba23dbce66c8a4a242effd4c01a830 https://git.kernel.org/stable/c/98b7b2a29ae87937aa02ab9391543ef8c602cd94 https://git.kernel.org/stable/c/626614df9080d7052fbe24dc90b5434717ab7a9f https://git.kernel.org/stable/c/cf839636911d8313f3ecd098329fd0b96499e4cf https://git.kernel.org/stable/c/6727b7618f49401acf373fa3ec5712e2ec52e5cf