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 D84F978C6C for ; Sat, 28 Dec 2024 09:46:55 +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=1735379215; cv=none; b=kVUksk91nsJg7jKX+3dFbjshiFqd76gRcF4MCzwdn/L1yR3hbDM0NlDtJvSs+qTIWpcKyDR5JWN/FhF0KLU+60N8kKhs+QIpjxsa4r3gaztX/11JkQXqNej0Xqj+J9ATUjeXz5ADipystgPloQHrzF3B7MYaptGO0LWzcRqoZDc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735379215; c=relaxed/simple; bh=ARS5NBhnRlqXqzRxmKL4DNoK5WXEIP6fVJnJTH0Y+GI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=uQy6bIm00uWlWwOe9qjGXaNqgOtOAdlIfe+z2f7D9x5UIIsx4o+FrXqoFcy3Ri+7sqeUB6mLE9XRq6JOmPMkhSIiKMcx8qyoLAlA1Cq1mZZh0MvEPSSVQqIb+WBVJSYsvH6J3ocXdnQ/1AYY21PlUBUwWl4ZvAUfjMcYDEaVz4A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=sGuUTTs2; 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="sGuUTTs2" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 03317C4CECD; Sat, 28 Dec 2024 09:46:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1735379215; bh=ARS5NBhnRlqXqzRxmKL4DNoK5WXEIP6fVJnJTH0Y+GI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=sGuUTTs2Jdu6ss19TBAa8SRXr2L3cwaBlrcEWLNnz/5KLFk4g3yFb0y+MOtRIo55Y vQi2+O9IbKO7xdq+jGXOiXtQ/Wwrz/1OF8rbOd2cBfSocFa4DSY+nxSfy4CyYgxwdF JeC+ecdHy/QG/FMNSHfL2QmWKFd6+vleFXkg2NMg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-56689: PCI: endpoint: epf-mhi: Avoid NULL dereference if DT lacks 'mmio' Date: Sat, 28 Dec 2024 10:45:41 +0100 Message-ID: <2024122834-CVE-2024-56689-69ca@gregkh> X-Mailer: git-send-email 2.47.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=2539; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ARS5NBhnRlqXqzRxmKL4DNoK5WXEIP6fVJnJTH0Y+GI=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn5J/ZdFEq6sqn+d8hE3o0zAhxPtbqldy1b0xAb9OLbw +2SRrpfOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiC8wY5mmLdtq9N3jQFJLb F81qEvppyrmFJxkWrJPYsGmmdEDrzfCD3LPWT75pfa00CQA= 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: PCI: endpoint: epf-mhi: Avoid NULL dereference if DT lacks 'mmio' If platform_get_resource_byname() fails and returns NULL because DT lacks an 'mmio' property for the MHI endpoint, dereferencing res->start will cause a NULL pointer access. Add a check to prevent it. [kwilczynski: error message update per the review feedback] [bhelgaas: commit log] The Linux kernel CVE team has assigned CVE-2024-56689 to this issue. Affected and fixed versions =========================== Issue introduced in 6.5 with commit 1bf5f25324f7f6a52c3eb566ec5f78f6a901db96 and fixed in 6.6.64 with commit 242ee2b0ad9b23f47084904fce3f9f228068a1f9 Issue introduced in 6.5 with commit 1bf5f25324f7f6a52c3eb566ec5f78f6a901db96 and fixed in 6.11.11 with commit c8b9d6b7d62a444e0bca5b9ae28f9f2b0f52feef Issue introduced in 6.5 with commit 1bf5f25324f7f6a52c3eb566ec5f78f6a901db96 and fixed in 6.12.2 with commit 0e6d92e3b973de78eb7015154cf1197af9fac5c9 Issue introduced in 6.5 with commit 1bf5f25324f7f6a52c3eb566ec5f78f6a901db96 and fixed in 6.13-rc1 with commit 5089b3d874e9933d9842e90410d3af1520494757 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-56689 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/pci/endpoint/functions/pci-epf-mhi.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/242ee2b0ad9b23f47084904fce3f9f228068a1f9 https://git.kernel.org/stable/c/c8b9d6b7d62a444e0bca5b9ae28f9f2b0f52feef https://git.kernel.org/stable/c/0e6d92e3b973de78eb7015154cf1197af9fac5c9 https://git.kernel.org/stable/c/5089b3d874e9933d9842e90410d3af1520494757