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 AE2FE2C9A for ; Wed, 18 Sep 2024 06:32:52 +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=1726641172; cv=none; b=h/k1U0vbqi5vEvXFSQTP99jmGkja8W9WZIVT+VztcHF4sw7uZkHcOkhaBXA2DEZ2Q6g7+0UN9q8gLWP6HXFBsyRjtJ+YAgZdieFL+4jBv2iFd/I7cQ+WveK7xII3t1+bZKpuxqmvLgU2TknU2y4Wox/5W0niGLJfTv/BNpgNHBA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726641172; c=relaxed/simple; bh=j9zFQJ8Ad37FqG1BIzrzOt993+lv4t9g7HK7VjlU2FI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=iFwFXRvgOAAaShpmbjtSmMsE9S2sDmig72ePGR3HCfAMoLOTMO3Xk3gR6oYynsPdPgb4Y5pyKkgU0A81hu5w228S4PXO0RivBMj9r6mKXWeob7PwvNm9QCAzFExEOZf77Ye6t3McKAMPBCOEkBCUhb7Yd8RJxsZnYw40lin36Xo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ciKw5swE; 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="ciKw5swE" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D05EEC4CEC3; Wed, 18 Sep 2024 06:32:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1726641172; bh=j9zFQJ8Ad37FqG1BIzrzOt993+lv4t9g7HK7VjlU2FI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ciKw5swEHGNDW1HxYoL1pXkfkr/8eidB1Q5NFOOIEtOlhXdAqLGfcoVXDosIGeoEy D2PUD8lsCT6j22WJSgQMuxJGnXG0osnjjgUc2b16SOQ4UidRTchgcZ7C17AWZPT0Za DEfplBn76lIXQE+0AiOHk+/8O5csyDVjkNOdK6Iw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-46716: dmaengine: altera-msgdma: properly free descriptor in msgdma_free_descriptor Date: Wed, 18 Sep 2024 08:32:33 +0200 Message-ID: <2024091833-CVE-2024-46716-f63f@gregkh> X-Mailer: git-send-email 2.46.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=2224; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=j9zFQJ8Ad37FqG1BIzrzOt993+lv4t9g7HK7VjlU2FI=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmvShinzrT55KK8QO2r99HDTZ9K32xTamndzNnRnbN8v mWF1a/rHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRozMZ5rvbHulJ9/gkuUY5 IXa1t7GSte37CoZ5SlvXx/X+r3N8laE0/cKx/aJNJf88AA== 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: altera-msgdma: properly free descriptor in msgdma_free_descriptor Remove list_del call in msgdma_chan_desc_cleanup, this should be the role of msgdma_free_descriptor. In consequence replace list_add_tail with list_move_tail in msgdma_free_descriptor. This fixes the path: msgdma_free_chan_resources -> msgdma_free_descriptors -> msgdma_free_desc_list -> msgdma_free_descriptor which does not correctly free the descriptors as first nodes were not removed from the list. The Linux kernel CVE team has assigned CVE-2024-46716 to this issue. Affected and fixed versions =========================== Fixed in 6.1.109 with commit a3480e59fdbe Fixed in 6.6.50 with commit 20bf2920a869 Fixed in 6.10.9 with commit db67686676c7 Fixed in 6.11 with commit 54e4ada1a420 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-46716 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/altera-msgdma.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/a3480e59fdbe5585d2d1eff0bed7671583acf725 https://git.kernel.org/stable/c/20bf2920a869f9dbda0ef8c94c87d1901a64a716 https://git.kernel.org/stable/c/db67686676c7becc1910bf1d6d51505876821863 https://git.kernel.org/stable/c/54e4ada1a4206f878e345ae01cf37347d803d1b1