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 E4329146D6F for ; Sat, 17 Aug 2024 09:23:05 +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=1723886586; cv=none; b=ey1Vm7/cVZBkIz2cZ1lXYXUW80TFGRGBQbTO/sSd6U8LPOm4488BvI/9b5+gEE2FvnZIEHub+BVtwCxEumiSM1VSyNsT6BzpcaovPNqjM1jCCQMiA1mcezi3/iAZFee3tWtjWwMh6Fz378354tg5hdIDbIOUaaxjb3Th+DpO0sU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723886586; c=relaxed/simple; bh=6kjjfCvXNZKY8NZKqSZFykXyMCVem8TLl4bGTBx0E4E=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=rBqJijPCFjSxyZBHdj2xhj+bx/k5JYzZznqn+m6zPNw66dT0RBkDYfQhfBYcUOI3NmSFPQyfjspSc+Zx10VWNcmdGl3xnQhLPSeF4RrxUB08CKJhlresUFfJmsLp/B59m6ATJgUkaqvFM/zSZRj6PI5mkUBZ1Cr+mC9uvPA1w50= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=CSPqp3n9; 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="CSPqp3n9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1BFAEC116B1; Sat, 17 Aug 2024 09:23:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1723886585; bh=6kjjfCvXNZKY8NZKqSZFykXyMCVem8TLl4bGTBx0E4E=; h=From:To:Cc:Subject:Date:Reply-to:From; b=CSPqp3n9VP6pF0jPSdjaGWsVxA4sU+HM/qHtgyXaK+0eZKfLpoM/8tSnR8MNLCfFo uO0QdYoDORLWLGOuBqOUgsiIt6qS31n08vLC8GBlWw6fhObvjTu1EEqqtv2+db/UOC 7lrApi0LhdZwew5oIavNyq/8ljRQ0Z19TVx1CfSg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-43823: PCI: keystone: Fix NULL pointer dereference in case of DT error in ks_pcie_setup_rc_app_regs() Date: Sat, 17 Aug 2024 11:22:27 +0200 Message-ID: <2024081725-CVE-2024-43823-4bdd@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=2391; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=6kjjfCvXNZKY8NZKqSZFykXyMCVem8TLl4bGTBx0E4E=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkHsi9O9tSqdxV2FOJuCa9/XmuvHZCteeDie7b3U9Oq+ vjU9SZ3xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwEROmTDM00x+GnnbMy6vlNfl cfJ3z1ijv7oLGOZwO/3ka8s4lvX6tpT+4x777Hc5P8QB 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: keystone: Fix NULL pointer dereference in case of DT error in ks_pcie_setup_rc_app_regs() If IORESOURCE_MEM is not provided in Device Tree due to any error, resource_list_first_type() will return NULL and pci_parse_request_of_pci_ranges() will just emit a warning. This will cause a NULL pointer dereference. Fix this bug by adding NULL return check. Found by Linux Verification Center (linuxtesting.org) with SVACE. The Linux kernel CVE team has assigned CVE-2024-43823 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10 with commit 0f71c60ffd26 and fixed in 6.1.103 with commit bbba48ad67c5 Issue introduced in 5.10 with commit 0f71c60ffd26 and fixed in 6.6.44 with commit 0a6f1b5fe8ef Issue introduced in 5.10 with commit 0f71c60ffd26 and fixed in 6.10.3 with commit dbcdd1863ba2 Issue introduced in 5.10 with commit 0f71c60ffd26 and fixed in 6.11-rc1 with commit a231707a91f3 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-43823 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/controller/dwc/pci-keystone.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/bbba48ad67c53feea05936ea1e029dcca8057506 https://git.kernel.org/stable/c/0a6f1b5fe8ef8268aaa069035639968ceeea0a23 https://git.kernel.org/stable/c/dbcdd1863ba2ec9b76ec131df25d797709e05597 https://git.kernel.org/stable/c/a231707a91f323af1e5d9f1722055ec2fc1c7775