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 7B9812E6108 for ; Fri, 25 Jul 2025 12:48:32 +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=1753447712; cv=none; b=Z8eHVcy411hi1Sz/nJfp9o8jtJppRzCi+idtHLvBCDGC2yvZwu7h/zhh1I4SNRzMFeBJ/qlwTjwx+zGvwzZgY2MQaPA89EIRQZMfiBlchafVb5CCXgt+0YRrVYFvr7CGNPNvOgLK69qTdmOe/me9u3F8ROI6dP4rrmUCbdzXBLc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753447712; c=relaxed/simple; bh=8bPP7+gAw47ZdH4Gvvair0GjtMUZxpFvl+Jkx+2jWpI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=TCZ3/CEPlLt674Wx0mDrl8IMcPP8Xi2PStXAFyRk5JOITG6m2FaDN4vMr20IBZyN4eyd2Csx0yc2+voLAulK1FZVcKlI+PaM9ZPN7dJz2vji29Wi80u+lBOPlNWjQbFkeGxF0bdHzXOllm8KPtFG/gQwu1Sc9RNpYgp8aJdWzD0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=nP0/cIzD; 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="nP0/cIzD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DD499C4CEE7; Fri, 25 Jul 2025 12:48:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1753447712; bh=8bPP7+gAw47ZdH4Gvvair0GjtMUZxpFvl+Jkx+2jWpI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=nP0/cIzDjLguzSoyBJTbFuloPpBrKuBHjMrCQhoiUfoWXfzB3qnTk81geF6MU7nGQ mADcDYjZz31XwNSAM9H3h7UIMBB0IyBIyIOpkTlIcMmw5alocOPhfUv9ecERNKxcr4 XxpcbG94WKJLidqafnp53khWKBBNK+w+LU20KnHE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38369: dmaengine: idxd: Check availability of workqueue allocated by idxd wq driver before using Date: Fri, 25 Jul 2025 14:48:10 +0200 Message-ID: <2025072559-CVE-2025-38369-6ddf@gregkh> X-Mailer: git-send-email 2.50.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=2477; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=p9QDU2OID11NLodzY1FnHzn+Ux099DyvOZlheOEMiZA=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnNNf8r2Dx+ViaWFyvp+MWa/raYGN84mX1Bt+SrKDnzM vtupfkdsSwMgkwMsmKKLF+28RzdX3FI0cvQ9jTMHFYmkCEMXJwCMJE/JgwLLp2JYFaP3LrZafbh ypjU6PjZpowuDPMUzi7ebSF+svbSw8vxdtHaye/Ea/gA 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: dmaengine: idxd: Check availability of workqueue allocated by idxd wq driver before using Running IDXD workloads in a container with the /dev directory mounted can trigger a call trace or even a kernel panic when the parent process of the container is terminated. This issue occurs because, under certain configurations, Docker does not properly propagate the mount replica back to the original mount point. In this case, when the user driver detaches, the WQ is destroyed but it still calls destroy_workqueue() attempting to completes all pending work. It's necessary to check wq->wq and skip the drain if it no longer exists. The Linux kernel CVE team has assigned CVE-2025-38369 to this issue. Affected and fixed versions =========================== Fixed in 6.6.96 with commit e0051a3daa8b2cb318b03b2f9317c3e40855847a Fixed in 6.12.36 with commit 98fd66c8ba77e3a7137575f610271014bc0e701f Fixed in 6.15.5 with commit aee7a7439f8c0884da87694a401930204a57128f Fixed in 6.16-rc1 with commit 17502e7d7b7113346296f6758324798d536c31fd 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-38369 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/cdev.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/e0051a3daa8b2cb318b03b2f9317c3e40855847a https://git.kernel.org/stable/c/98fd66c8ba77e3a7137575f610271014bc0e701f https://git.kernel.org/stable/c/aee7a7439f8c0884da87694a401930204a57128f https://git.kernel.org/stable/c/17502e7d7b7113346296f6758324798d536c31fd