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 F2DF921883C for ; Thu, 27 Mar 2025 16:47:56 +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=1743094077; cv=none; b=iQUStWst2cGplQ6q7NWO0NtcJwfEzMzjgibIha2tK6FHwRH38nkBEtNNW6Iy7GziEjqpHfQABZ4LFNWgESwHa+BSZjTlNKNSLcecegpuwT1bcN75t/oY7SgQ0mOscqylPqIlVexs95xbGJI5jk5y4hW7nQUkT3B5bSlKU6o3xDM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743094077; c=relaxed/simple; bh=s9puq0YyEedi0gO6z6GGxOHk8BZfmKl6MLeyI5SmkBs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=uCfuGj8Srq7BfqdkCfITj81lYQkz/9UXtK3FHDbFzftNkFHOc+lj+ULakem6Gc908BTtDjNwd2StysQi54SlsxlUUlf3T+8Ns5FCS0ja+/hrMzG5QaMedIzI9yRZfCy4yckDcxL/v8tm0z+hNb6EzbizrSQV6nlHmoMfl6eleiU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=f69X7F3u; 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="f69X7F3u" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F2997C4CEDD; Thu, 27 Mar 2025 16:47:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1743094076; bh=s9puq0YyEedi0gO6z6GGxOHk8BZfmKl6MLeyI5SmkBs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=f69X7F3uaPEKX92AgeXb7LN/6tw6KVMKjki8OAGCPh2ImD0EjrCcjnJLgecox28Uq 53roUp2q4UebCYoi+p4NghBUNi6RTRRrC6pUXtixHbFzmHjfF2Tg50kVx5fSl9vAwH BAf5Fscw8+DGgE821JsoKZJc4pPjBGoPn2dGcUV0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53013: ptdma: pt_core_execute_cmd() should use spinlock Date: Thu, 27 Mar 2025 17:44:00 +0100 Message-ID: <2025032715-CVE-2023-53013-58dc@gregkh> X-Mailer: git-send-email 2.49.0 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=2410; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=s9puq0YyEedi0gO6z6GGxOHk8BZfmKl6MLeyI5SmkBs=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlPG5Rbs66oH/Wep1W1bUGBz4nZWzY0mGn6s6xv6AlMU NN4xeHcEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABP5WsUwv8j/VrSBopdriW+4 /tmpRrzv7V9zM8x3vPcqlYX1ouEkJtUnixrvxDT7GBUAAA== 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: ptdma: pt_core_execute_cmd() should use spinlock The interrupt handler (pt_core_irq_handler()) of the ptdma driver can be called from interrupt context. The code flow in this function can lead down to pt_core_execute_cmd() which will attempt to grab a mutex, which is not appropriate in interrupt context and ultimately leads to a kernel panic. The fix here changes this mutex to a spinlock, which has been verified to resolve the issue. The Linux kernel CVE team has assigned CVE-2023-53013 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit fa5d823b16a9442d609617abeec31da8b6afa224 and fixed in 5.15.91 with commit ed0d8f731e0bf1bb12a7a37698ac613db20e2794 Issue introduced in 5.15 with commit fa5d823b16a9442d609617abeec31da8b6afa224 and fixed in 6.1.9 with commit 13ba563c2c8055ba8a637c9f70bb833b43cb4207 Issue introduced in 5.15 with commit fa5d823b16a9442d609617abeec31da8b6afa224 and fixed in 6.2 with commit 95e5fda3b5f9ed8239b145da3fa01e641cf5d53c 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-2023-53013 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/ptdma/ptdma-dev.c drivers/dma/ptdma/ptdma.h 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/ed0d8f731e0bf1bb12a7a37698ac613db20e2794 https://git.kernel.org/stable/c/13ba563c2c8055ba8a637c9f70bb833b43cb4207 https://git.kernel.org/stable/c/95e5fda3b5f9ed8239b145da3fa01e641cf5d53c