Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 029AB147C89 for ; Wed, 19 Jun 2024 13:37:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718804245; cv=none; b=PQZ4m4Yr702eM6hOSQIzFMdTIbMuXcCisK63fGp7/b6ocvAp7moA1bUAu98lk5uJFmwbdf7PHH52j9wYrrlL8+W8Suj25FyggzNrVxF3JEXhKVqLyF2dRr7iyF3wuoXPjcafU/lsj7A8M+f+OO10e5P/QZNuA54z4I8IGbGsGVA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718804245; c=relaxed/simple; bh=2rnbSaxnCJcvuOtHMMiuVVJxiam8iHZt5Dko8xOJ5OI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=IuqzJRUDeCyXbv4tOJbuPLA/0Gf0T2IZJKN0grrwzlWNnzX+IoMdl3LNlTBivk3tFr5ZyDkLcxdTSAmybqjZ3FNfXn67EHblKUktfHlv2DkaKo2jVvmULARB3YHaMixdi/ffifrXxX27hbBwlEJeXEqJKomfIyMZjlj8yuto9To= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=MuDnM6FF; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="MuDnM6FF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7A184C2BBFC; Wed, 19 Jun 2024 13:37:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718804244; bh=2rnbSaxnCJcvuOtHMMiuVVJxiam8iHZt5Dko8xOJ5OI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=MuDnM6FFjgonfklcoQoPXfcsETGslGkxJAW8l6arBxNmTN55Q14v1lyOPQ0OTZwXS q6V1dUTXV/FE0du2iJy2dm1FQFa29o3x0Rs8866ApMjovnhvJ33TQzyFCbVX6NzXKG vJGS2WqcvIEoHsX77RWGjXgUeJd35MITgHAGxFgw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-38561: kunit: Fix kthread reference Date: Wed, 19 Jun 2024 15:36:10 +0200 Message-ID: <2024061954-CVE-2024-38561-2505@gregkh> X-Mailer: git-send-email 2.45.2 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2282; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=2rnbSaxnCJcvuOtHMMiuVVJxiam8iHZt5Dko8xOJ5OI=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlF93bN7oy9/STVcjN7/Z/7pwyMBASrXh7I4nirvi2pd /vaRzcSO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAinoYMCxpda9XuPY+6GT8h 7NfdAPPaIwF7ZzIsWGT4w3f1m5SHHtMNfBpmfix6uUNlMgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: kunit: Fix kthread reference There is a race condition when a kthread finishes after the deadline and before the call to kthread_stop(), which may lead to use after free. The Linux kernel CVE team has assigned CVE-2024-38561 to this issue. Affected and fixed versions =========================== Issue introduced in 5.18 with commit adf505457032 and fixed in 6.1.93 with commit 1f2ebd3758e1 Issue introduced in 5.18 with commit adf505457032 and fixed in 6.6.33 with commit 1ec7ccb4cd4b Issue introduced in 5.18 with commit adf505457032 and fixed in 6.8.12 with commit 8f5c841a559c Issue introduced in 5.18 with commit adf505457032 and fixed in 6.9.3 with commit b0b755cb5a5e Issue introduced in 5.18 with commit adf505457032 and fixed in 6.10-rc1 with commit f8aa1b98ce40 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-2024-38561 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: lib/kunit/try-catch.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/1f2ebd3758e1cef6a1f998a1f7ea73310dcb1699 https://git.kernel.org/stable/c/1ec7ccb4cd4b6f72c2998b07880fa7aaf8dfe1d4 https://git.kernel.org/stable/c/8f5c841a559ccb700c8d27a3ca645b7a5f59b4f5 https://git.kernel.org/stable/c/b0b755cb5a5e0d7168c3ab1b3814b0d3cad9f017 https://git.kernel.org/stable/c/f8aa1b98ce40184521ed95ec26cc115a255183b2