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 D3B79824AF for ; Sat, 17 Aug 2024 09:24: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=1723886696; cv=none; b=hF7DojHNiOb9OS7uJ+Ht5xktucO98qWiL7rKM7iVRUIeE+orunCYkHMunK70KcCVxjJ52bSLn5Q1pmM3zqZw072+cKgpJqc3ihVzf+6zwXRdeOgnW1wBqqF3w426CzZkFKi7w/YEisnCkqdwHGACxfWFMxooBNHTwGD6O67fTWI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723886696; c=relaxed/simple; bh=TkGjquOEA5VH8JhdyjDziibapzdD8zhAI7wh+dCeyog=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=VITnnzrskTNkBSNdEkrQoEZfHTWWluxbqUZVtRmFldJuDV6gsXB0Ljhq3llj2cGJ4PDR3N+YL0Sp8QyuyyGUJ9y6BAlPPWW7IQBXiTzK1/s7IUd7jX/NVguO7s2+Na4FTy2/s8UKW1UnQoQIz2o6wdPXjZbo79qSnevQ7/FZkBg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=IfhjmXax; 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="IfhjmXax" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4B285C116B1; Sat, 17 Aug 2024 09:24:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1723886696; bh=TkGjquOEA5VH8JhdyjDziibapzdD8zhAI7wh+dCeyog=; h=From:To:Cc:Subject:Date:Reply-to:From; b=IfhjmXaxZICrq044qC5EsPfKay4oiUv78dMSLswzWVDrZvM7XLFMLT9aJDdtDlQEq lGOL1ue0NbNa2ioB9Q2wB/NIKoHN8lT66cHgbUF61dLVP1nIOT8HalIrj7pMHcKhwl k8emHqpcroBHhd09QBT7q1IHM9/uZ9cZZ5R+EGHA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-43860: remoteproc: imx_rproc: Skip over memory region when node value is NULL Date: Sat, 17 Aug 2024 11:24:37 +0200 Message-ID: <2024081734-CVE-2024-43860-d72f@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=2423; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=TkGjquOEA5VH8JhdyjDziibapzdD8zhAI7wh+dCeyog=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkHcoJiFT1CJnzW29N8pOf7q8O9U/4d/h/x7rz1eXtej yNLe6L4OmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAi3xUY5hdJrneKrDI3rdTO jcoR+NkQ4zrblGF+Wvraibs5u+6nRu1cy6C9YbmXa8M6AA== 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: remoteproc: imx_rproc: Skip over memory region when node value is NULL In imx_rproc_addr_init() "nph = of_count_phandle_with_args()" just counts number of phandles. But phandles may be empty. So of_parse_phandle() in the parsing loop (0 < a < nph) may return NULL which is later dereferenced. Adjust this issue by adding NULL-return check. Found by Linux Verification Center (linuxtesting.org) with SVACE. [Fixed title to fit within the prescribed 70-75 charcters] The Linux kernel CVE team has assigned CVE-2024-43860 to this issue. Affected and fixed versions =========================== Issue introduced in 4.14 with commit a0ff4aa6f010 and fixed in 6.1.103 with commit 9a17cf8b2ce4 Issue introduced in 4.14 with commit a0ff4aa6f010 and fixed in 6.6.44 with commit 6c9ea3547fad Issue introduced in 4.14 with commit a0ff4aa6f010 and fixed in 6.10.3 with commit c877a5f5268d Issue introduced in 4.14 with commit a0ff4aa6f010 and fixed in 6.11-rc1 with commit 2fa26ca8b786 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-43860 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/remoteproc/imx_rproc.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/9a17cf8b2ce483fa75258bc2cdcf628f24bcf5f8 https://git.kernel.org/stable/c/6c9ea3547fad252fe9ae5d3ed7e066e2085bf3a2 https://git.kernel.org/stable/c/c877a5f5268d4ab8224b9c9fbce3d746e4e72bc9 https://git.kernel.org/stable/c/2fa26ca8b786888673689ccc9da6094150939982