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 570F010E3 for ; Tue, 30 Jul 2024 07:49:54 +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=1722325794; cv=none; b=uir6zF270yyftkYT2ZCpgbEJtlmITE2wlXuTaZJHzdHmX7BjUSlkah3v+Y5NTmTCsPCr5kM6qpSC4iLjisF4rykdcur1EErkEq9fnQjjNkFAJ7oz5alJ/IvFP7xKKchmjH56caIUqWgoy9fHCCSPvMU761bsxUZ3OSBF0lMjRrg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722325794; c=relaxed/simple; bh=5/9y3IRxsXX7xsOa1CBW8yfHDOSRVFF9kXue6NoIVcU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=jzwcJb0vMh3gHf6CMrVsanzZ67Tpze/DusuFNkmqNzQu3FBiWJ8vo7cd4cLrBSAzN8fcLfiNMujpZESWzVJKV+/EDYA0FPiTtl1SLMA4IrzhbTWW8jXdVylA4q40JyB13ggKapi5klTjGrj8VEJiVg4GI5clclHPSPKI6vLOSBA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=d/upOOY8; 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="d/upOOY8" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C7C31C32782; Tue, 30 Jul 2024 07:49:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1722325794; bh=5/9y3IRxsXX7xsOa1CBW8yfHDOSRVFF9kXue6NoIVcU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=d/upOOY8BEPOmtQcqPIFcAdVTNYW2+FsaX1az8iNRiv20iy8i29VdxM2TY02xyEMo QmqaHycUd0CNtMGLzHDgoK0UAFh8X/6ilU3+i8i6Rhl7/c0zfIBxaFB3phqX5FWJk9 U//DgiBOljSvoKhu0wV0+7JwqhmgD1HYNHVsBS6w= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-42135: vhost_task: Handle SIGKILL by flushing work and exiting Date: Tue, 30 Jul 2024 09:47:53 +0200 Message-ID: <2024073029-CVE-2024-42135-0694@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=2040; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=5/9y3IRxsXX7xsOa1CBW8yfHDOSRVFF9kXue6NoIVcU=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkrZk00m19vtFnPRT07rNnyfqKrq/2axEna8+b+v7Tr+ 0UxqYUsHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARhVyG+bGJH7ieBrBEc506 vft+a8xOl1VGjxjmp19XXWB3Tak1ep+zOafxlzTtm3e+AwA= 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: vhost_task: Handle SIGKILL by flushing work and exiting Instead of lingering until the device is closed, this has us handle SIGKILL by: 1. marking the worker as killed so we no longer try to use it with new virtqueues and new flush operations. 2. setting the virtqueue to worker mapping so no new works are queued. 3. running all the exiting works. The Linux kernel CVE team has assigned CVE-2024-42135 to this issue. Affected and fixed versions =========================== Fixed in 6.6.39 with commit abe067dc3a66 Fixed in 6.9.9 with commit dec987fe2df6 Fixed in 6.10 with commit db5247d9bf5c 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-42135 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: drivers/vhost/vhost.c drivers/vhost/vhost.h include/linux/sched/vhost_task.h 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/abe067dc3a662eef7d5cddbbc41ed50a0b68b0af https://git.kernel.org/stable/c/dec987fe2df670827eb53b97c9552ed8dfc63ad4 https://git.kernel.org/stable/c/db5247d9bf5c6ade9fd70b4e4897441e0269b233