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 3575D3168F8 for ; Fri, 24 Oct 2025 12:25:22 +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=1761308723; cv=none; b=Quam1NSp8PCTUn3FBkszi1JpLrO9g5mr2jzPT21dCd5rZYDARh/cGtS+SeG/SZ/BQ7RqDWOiix4zYyNITUndNQm/+x3bXEpeOd1ox1FD6hBcMwtrYCmHbh+s9YX/O2tXw80gPEAaBKwWrG+qRA5DRNnz0ikqTEAvIHbgTVvjwfY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761308723; c=relaxed/simple; bh=x8nq5nvpuIKDLaJ0hoTNxHUb8hRTUgbV1+exk+SN3ek=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ZB0fgWmfiwDJ/f9D7ucW3m8kIrlda8kR9RgpesESRgr9ddNqH0gcxRP/SAGNdwlld3Fx/ZFZT9ZXHRH3RAN4sPM57xvoBvCoVOa4aHoWlzhuwTNjyq8RgJdLfaR8Z2ALdBbELN/eljJn1ggq3FrO6kaeSQowxN0PLH6zrZDN7i4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=DIcjxpYU; 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="DIcjxpYU" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 62C63C113D0; Fri, 24 Oct 2025 12:25:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1761308722; bh=x8nq5nvpuIKDLaJ0hoTNxHUb8hRTUgbV1+exk+SN3ek=; h=From:To:Cc:Subject:Date:Reply-to:From; b=DIcjxpYU7TIfkkph3QMIFd71t7gIIWyQQlVOrzIX8u8ECeIETn2yioefhSAcdmu/D CK14kHirrCYc6BZOXsMoyvulolpYRO0XsiuaYxfTHgkhPhtEZp4uIjb8AXtWGF7Q7q AZsWAwGW8O6zTIcmeLrPvbHllxvn37+MfZZn1dOM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40024: vhost: Take a reference on the task in struct vhost_task. Date: Fri, 24 Oct 2025 14:25:07 +0200 Message-ID: <2025102404-CVE-2025-40024-8739@gregkh> X-Mailer: git-send-email 2.51.1 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=2788; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=sFMq0V+nkBxwU0qcYVY7yi+3Jo8XsVBT/10txJtSeng=; b=owGbwMvMwCRo6H6F97bub03G02pJDBm/CxQCdPsLTrEUOGvlx333SJ7qyrHqdbn5GSGL1Zt/r BVXm9DQEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABNZeophnuaNq0y7yjnE/ysp hX4w8XnpXDB3GsOCyV+v/C85vXBWms8HkZVp26zYgx5XAwA= 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: vhost: Take a reference on the task in struct vhost_task. vhost_task_create() creates a task and keeps a reference to its task_struct. That task may exit early via a signal and its task_struct will be released. A pending vhost_task_wake() will then attempt to wake the task and access a task_struct which is no longer there. Acquire a reference on the task_struct while creating the thread and release the reference while the struct vhost_task itself is removed. If the task exits early due to a signal, then the vhost_task_wake() will still access a valid task_struct. The wake is safe and will be skipped in this case. The Linux kernel CVE team has assigned CVE-2025-40024 to this issue. Affected and fixed versions =========================== Issue introduced in 6.4 with commit f9010dbdce911ee1f1af1398a24b1f9f992e0080 and fixed in 6.6.109 with commit 82a1463c968b1a6ae598a4f2fcef17b71bb7d3a0 Issue introduced in 6.4 with commit f9010dbdce911ee1f1af1398a24b1f9f992e0080 and fixed in 6.12.50 with commit d2be773a92874a070215b51b730cb2b1eaa8fae2 Issue introduced in 6.4 with commit f9010dbdce911ee1f1af1398a24b1f9f992e0080 and fixed in 6.16.10 with commit 7ce635b3d3aba43296b62b5a2d97c008bc51cbd2 Issue introduced in 6.4 with commit f9010dbdce911ee1f1af1398a24b1f9f992e0080 and fixed in 6.17 with commit afe16653e05db07d658b55245c7a2e0603f136c0 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-2025-40024 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: kernel/vhost_task.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/82a1463c968b1a6ae598a4f2fcef17b71bb7d3a0 https://git.kernel.org/stable/c/d2be773a92874a070215b51b730cb2b1eaa8fae2 https://git.kernel.org/stable/c/7ce635b3d3aba43296b62b5a2d97c008bc51cbd2 https://git.kernel.org/stable/c/afe16653e05db07d658b55245c7a2e0603f136c0