Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 629625208B3 for ; Thu, 17 Sep 2026 16:31:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789662705; cv=none; b=hJpJAy5BPy3X7Wue/agwG6YDQkN+pkx/Qb6eeuj8EJs9RcMH2Yx5Uq0+wNh8vxuvzE0LPe0OuEfykRuVkizxWlKSFECsEqRqiQZseRP7D0RpFwXjhhGjsaGtFgsA101o4VzJjJRsCIDAfnH/odoXQWRORR//zLPKE3+i4vA8TCk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789662705; c=relaxed/simple; bh=iCzNFivldSXcQRP6jejehqz0mpsdXHHSXlDKjGK1BOc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=FZQp2n9V5GcJXTsWLIjfCyJgZcBMIxXfIyftII3vrFvE16vWPOKwZAznAoalSp75oIpA2bzyDafGPWUw3zHmUAYfEDjOwWM4q3OmTrw7viJdkp54Z1VHMGOps6hzSK8dkEF4l5nPY8LMgGZl34jY2Uyb3QNaJM2AWUhTEGnNL2E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ZSao3FVP; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="ZSao3FVP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 42A6C1F000FF; Thu, 17 Sep 2026 16:31:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789662703; bh=B2GY9nLMD6gb4zNz7UWlxdogaXAs39MBLilV2LUx1e8=; h=From:To:Cc:Subject:Date:Reply-To; b=ZSao3FVPAy8lsfjtn+HIVDxY/PEUMkv9nLhmYWTlTON5PgvFQ7Jt1tIUCtLNLK6mp KSgz1zN7SkIWV3QTAwqSZV/7WaRz9d9feahFNfddmmOSBTcBgnVjChrfuqgqKA7HXe luS+/kTE5GA0aU0p6q62WuVyaSuGjzgfX75MMnfs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-90405: media: stm32: dcmi: fix some error handling bugs in probe() Date: Thu, 17 Sep 2026 17:13:55 +0100 Message-ID: <2026091715-CVE-2026-90405-2ee3@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2470; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ElbSs16fV8F0vgAZPjeSEZAVff/kc6GOOREmMJxYAg0=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlrBFZ7+778UtLVePucVo5lp5w1U/eUXPtjqqoMx/Yn8 37ov5rbEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABMJdGNYsOfG0cp3AtWXfGtP WR3T65jxVMl5I8P8hGOs21Q6X26dqpZQ+89wu0Y1r9xGAA== 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: media: stm32: dcmi: fix some error handling bugs in probe() There are a few issues here: 1) After we assign: chan = dma_request_chan(&pdev->dev, "tx"); Then the error paths need to clean up before returning. The first error path does a direct return. 2) The error paths check "dcmi->mdma_chan" but that is not assigned until later so it results in memory leaks. Test "mdma_chan" instead. 3) The error handling calls dma_release_channel(dcmi->dma_chan) before "dcmi->dma_chan" has been assigned which leads to a NULL pointer dereference. Use the "chan" variable instead. I also moved the call to dma_release_channel() after the call to dma_release_channel() so it mirrors the allocation code better. The Linux kernel CVE team has assigned CVE-2026-90405 to this issue. Affected and fixed versions =========================== Issue introduced in 7.1 with commit bc901885fae0a0273288666609d143e960b6ad3a and fixed in 7.2.6 with commit 4d030d7d1af95d24d3eb6e536a4f09b7bf9a8659 Issue introduced in 7.1 with commit bc901885fae0a0273288666609d143e960b6ad3a and fixed in 7.3-rc1 with commit f1d1ed39ced825615aeac61f0b6a322178756632 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-2026-90405 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/media/platform/st/stm32/stm32-dcmi.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/4d030d7d1af95d24d3eb6e536a4f09b7bf9a8659 https://git.kernel.org/stable/c/f1d1ed39ced825615aeac61f0b6a322178756632