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 DB2272686AF for ; Fri, 18 Apr 2025 07:03:31 +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=1744959811; cv=none; b=BHvaN9M+8uXWea3mt7D7kawZ6BuUJnWTf1nHJbVqW0/7ClIMv6+fa3gW+5L9E2m1ZwQ3dg/Mwg8ba2l43bJt3T9fkTfp9HGgoV+o8Xm970RLrOT63UiUwT2+xo9r+23TiGq02K03MnyWpUArxv/AiCZ8gGTOWwWj+YrTJVskysc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744959811; c=relaxed/simple; bh=IDFpVM6cZhmlA1RV1pBvQmagx4P2FcX/yfbh5xjwnUM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EMClAXsig3nir/FdXUOCRz1YUMmq9eDIgAo5/44wOLskMSExTzEcE3PTC+Gc1f2gLKl5wrRB18U+OLmmnlImSghPyUz//Vpgdw/4KKAzZCEoVi7oCdPJBHAOirQYlIc6unZdmVb2DYPsDcZkqVzo46fZQ0TkC2GseMH+AbWTZVo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=gMRKkHqO; 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="gMRKkHqO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9883AC4CEE2; Fri, 18 Apr 2025 07:03:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1744959811; bh=IDFpVM6cZhmlA1RV1pBvQmagx4P2FcX/yfbh5xjwnUM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=gMRKkHqOOB0QiHohGJh/B6ieR9JffnkSRfiXXbr3jofZfbH06qIRkkY7bxvsGbETK xbEthzZUb+DNOA1wkXM6OXyJVDUg22PKbSeF745lq9S96CDq4QvKUpC7DqHnhK/CAN akUMEkmwoLbMNg21b++VqTmPrKXk7SWDAAZyZpQM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38479: dmaengine: fsl-edma: free irq correctly in remove path Date: Fri, 18 Apr 2025 09:02:22 +0200 Message-ID: <2025041818-CVE-2025-38479-4b98@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=2901; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=KP0zVe36K8SPsaNUyBiMh0u3cVrYWHjYeuqbRIyh9Xw=; b=owGbwMvMwCRo6H6F97bub03G02pJDBmMP37tnHY2On0h2/XPPMGbfk5ZdY/ppVv5yoAt+zbv1 19nteZ5UkcsC4MgE4OsmCLLl208R/dXHFL0MrQ9DTOHlQlkCAMXpwBMhGUdw/zyS8XsYgudLdat +7Sy0ak7UcDWeTnDgv23JyiFcJw5XqrGWbpC0Mv19ya5DAA= 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: fsl-edma: free irq correctly in remove path Add fsl_edma->txirq/errirq check to avoid below warning because no errirq at i.MX9 platform. Otherwise there will be kernel dump: WARNING: CPU: 0 PID: 11 at kernel/irq/devres.c:144 devm_free_irq+0x74/0x80 Modules linked in: CPU: 0 UID: 0 PID: 11 Comm: kworker/u8:0 Not tainted 6.12.0-rc7#18 Hardware name: NXP i.MX93 11X11 EVK board (DT) Workqueue: events_unbound deferred_probe_work_func pstate: 60400009 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : devm_free_irq+0x74/0x80 lr : devm_free_irq+0x48/0x80 Call trace: devm_free_irq+0x74/0x80 (P) devm_free_irq+0x48/0x80 (L) fsl_edma_remove+0xc4/0xc8 platform_remove+0x28/0x44 device_remove+0x4c/0x80 The Linux kernel CVE team has assigned CVE-2025-38479 to this issue. Affected and fixed versions =========================== Issue introduced in 6.11 with commit 44eb827264de4f14d8317692441e13f5e2aadbf2 and fixed in 6.12.23 with commit 55e2dbe2ba787d4fc2306f6bb2f43fb32176e184 Issue introduced in 6.11 with commit 44eb827264de4f14d8317692441e13f5e2aadbf2 and fixed in 6.13.11 with commit 38ff8769074db27387cb2323aaa751e59d168e6a Issue introduced in 6.11 with commit 44eb827264de4f14d8317692441e13f5e2aadbf2 and fixed in 6.14.2 with commit f3834d2d68749e4760c27325149765930ad876fd Issue introduced in 6.11 with commit 44eb827264de4f14d8317692441e13f5e2aadbf2 and fixed in 6.15-rc1 with commit fa70c4c3c580c239a0f9e83a14770ab026e8d820 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-38479 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-edma-main.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/55e2dbe2ba787d4fc2306f6bb2f43fb32176e184 https://git.kernel.org/stable/c/38ff8769074db27387cb2323aaa751e59d168e6a https://git.kernel.org/stable/c/f3834d2d68749e4760c27325149765930ad876fd https://git.kernel.org/stable/c/fa70c4c3c580c239a0f9e83a14770ab026e8d820