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 3568015ECE3 for ; Fri, 12 Jul 2024 12:32:44 +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=1720787564; cv=none; b=XtTH2HCyGDVTF26Pi0xdpr3+rjftkh9ceemx9rVrQW0O1vRDlpu6G/0kLb1e2vpf3QxcAPbf1SyMXIN872WVPEpryC3dZpRK7oyNnowtIHIRY0+3zBLKwpSAv0Zd+KYzz4WnBzMzas/MgWPpnNIqFgAI5iOUhVwSg85STNXk3II= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720787564; c=relaxed/simple; bh=2gXdW30gPzD0XsgCMcbKLc43yZj28mU2q0CxozexiTc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=iGXC5JyWyW+764+Gy8oBK6+3X8jE+H94OUEAtFEMVLZBqEziI+yUXJF83HzvRPqawVw2tc61vA5MEYiekewFC/A9+UAYst0D2fl4pNg4inYPaf9oc9ii54pqoJ2WSHBfnem38QydZgPoCPs9HlajzLOMZLbMCzb7P8N7gQtQECk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=HzNdkxW/; 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="HzNdkxW/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A6D48C32782; Fri, 12 Jul 2024 12:32:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1720787564; bh=2gXdW30gPzD0XsgCMcbKLc43yZj28mU2q0CxozexiTc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=HzNdkxW/JLwi7lvkZmRcv5y8Nby5jz7ZmxWwUCjKeoBN+p5PuDrdEGLLjJJaiPlZg jaa1syf4XrmYvjLHQlFWw+B44LzQJQ1XXN380k0EhZxk7sthLk5wBHPDt0ZAMOGJw2 7AsRs0v7nwIJOi3LoTClL/L8O+mRp2QWRFrwv+DQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-40956: dmaengine: idxd: Fix possible Use-After-Free in irq_process_work_list Date: Fri, 12 Jul 2024 14:32:32 +0200 Message-ID: <2024071224-CVE-2024-40956-b65d@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=2506; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=2gXdW30gPzD0XsgCMcbKLc43yZj28mU2q0CxozexiTc=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkTlSJiLiZ83hS7hUWiRCwuof+6U5qasf2DjbceTPS48 Ck62ai+I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACaS08cwz7bgQEe4UK76t+bW 03+TeNXdPy5uZliwylBviwGH8wF/F1P1w0lVHlPfbrQCAA== 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: dmaengine: idxd: Fix possible Use-After-Free in irq_process_work_list Use list_for_each_entry_safe() to allow iterating through the list and deleting the entry in the iteration process. The descriptor is freed via idxd_desc_complete() and there's a slight chance may cause issue for the list iterator when the descriptor is reused by another thread without it being deleted from the list. The Linux kernel CVE team has assigned CVE-2024-40956 to this issue. Affected and fixed versions =========================== Issue introduced in 5.11 with commit 16e19e11228b and fixed in 5.15.162 with commit 1b08bf5a17c6 Issue introduced in 5.11 with commit 16e19e11228b and fixed in 6.1.96 with commit 83163667d881 Issue introduced in 5.11 with commit 16e19e11228b and fixed in 6.6.36 with commit faa35db78b05 Issue introduced in 5.11 with commit 16e19e11228b and fixed in 6.9.7 with commit a14968921486 Issue introduced in 5.11 with commit 16e19e11228b and fixed in 6.10-rc5 with commit e3215deca452 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-40956 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/dma/idxd/irq.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/1b08bf5a17c66ab7dbb628df5344da53c8e7ab33 https://git.kernel.org/stable/c/83163667d881100a485b6c2daa30301b7f68d9b5 https://git.kernel.org/stable/c/faa35db78b058a2ab6e074ee283f69fa398c36a8 https://git.kernel.org/stable/c/a14968921486793f2a956086895c3793761309dd https://git.kernel.org/stable/c/e3215deca4520773cd2b155bed164c12365149a7