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 195AD54BD7 for ; Fri, 17 May 2024 13:48:34 +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=1715953715; cv=none; b=dKhckBDe+QZBx1r7TJrB+684frxyjmi4MliYe3Z6a/gKuVoVVS7md9lc7Y6xLdgFrVjrwIIN7mwoUi5UwnuHQTCuzA6a4npZnc1ggNzKryoHHOv4jh4x3RaHuKD5ONvIug6BRzbn11UcLnCPol+DgQS6RN8H5+DOiGhU6WrfA9M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715953715; c=relaxed/simple; bh=6O2XgVMgE+UmHabnCFaV6xux4RnHUFygyGGHxZo7uac=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Pgn5m/RAdkx9DJbtYqid0EbN/xLslVBPobhd0GfwpAsClG9ScE5EItVkUiM5LTVD0N3m918lp/bXFXOXdgTTPsjFoliEhpwWxYemeW98o6D5UpmiZvsuTncfGO+Gagt5JwfrG6+1iKwT2p8K2AcQFoKXxKQ6oMS9TI2c4BAOpJs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ok48xVjo; 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="ok48xVjo" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 412F7C2BD10; Fri, 17 May 2024 13:48:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1715953714; bh=6O2XgVMgE+UmHabnCFaV6xux4RnHUFygyGGHxZo7uac=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ok48xVjocxzD3t6S0I0c5RRe4hbtQOwONRpQ00Yx6QruJStw4enJJu7DpZJWHjX8Z 3RcCww8IOrOJJo4kHDOLwkkV66FHv4+vYI9C4QP6My92U2rFQ1oZIa+tdHU+j+p4XP 9eJ2ElEml7mlbikpA/gvASi0oWG6OYx2ss4661MQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-35833: dmaengine: fsl-qdma: Fix a memory leak related to the queue command DMA Date: Fri, 17 May 2024 15:48:32 +0200 Message-ID: <2024051731-CVE-2024-35833-0b1b@gregkh> X-Mailer: git-send-email 2.45.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=2694; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=6O2XgVMgE+UmHabnCFaV6xux4RnHUFygyGGHxZo7uac=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnuCfqWM29usV+0KmXSjVPTclzO6z6orHa35u+Y5v9wi 1zb3hypjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiINCvDgnO+UZ6H5y11+cf0 Xm3l9AVrr9379YdhwcG7hjn/hMvumPwrfNnpdr5/jX2gLwA= 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: fsl-qdma: Fix a memory leak related to the queue command DMA This dma_alloc_coherent() is undone neither in the remove function, nor in the error handling path of fsl_qdma_probe(). Switch to the managed version to fix both issues. The Linux kernel CVE team has assigned CVE-2024-35833 to this issue. Affected and fixed versions =========================== Issue introduced in 5.1 with commit b092529e0aa0 and fixed in 5.4.269 with commit 1c75fe450b52 Issue introduced in 5.1 with commit b092529e0aa0 and fixed in 5.10.210 with commit ae6769ba5141 Issue introduced in 5.1 with commit b092529e0aa0 and fixed in 5.15.149 with commit 15eb996d7d13 Issue introduced in 5.1 with commit b092529e0aa0 and fixed in 6.1.78 with commit 25ab4d72eb7c Issue introduced in 5.1 with commit b092529e0aa0 and fixed in 6.6.17 with commit 5cd8a51517ce Issue introduced in 5.1 with commit b092529e0aa0 and fixed in 6.7.5 with commit 198270de9d8e Issue introduced in 5.1 with commit b092529e0aa0 and fixed in 6.8 with commit 3aa58cb51318 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-35833 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/fsl-qdma.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/1c75fe450b5200c78f4a102a0eb8e15d8f1ccda8 https://git.kernel.org/stable/c/ae6769ba51417c1c86fb645812d5bff455eee802 https://git.kernel.org/stable/c/15eb996d7d13cb72a16389231945ada8f0fef2c3 https://git.kernel.org/stable/c/25ab4d72eb7cbfa0f3d97a139a9b2bfcaa72dd59 https://git.kernel.org/stable/c/5cd8a51517ce15edbdcea4fc74c4c127ddaa1bd6 https://git.kernel.org/stable/c/198270de9d8eb3b5d5f030825ea303ef95285d24 https://git.kernel.org/stable/c/3aa58cb51318e329d203857f7a191678e60bb714