From mboxrd@z Thu Jan 1 00:00:00 1970 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 6405E57981B for ; Wed, 9 Sep 2026 16:13:32 +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=1788970413; cv=none; b=UKeKO2IOf1gqJgNJ/jPqjmU8aGO6uxDuXJ4NlVa6n/dC8dT9nwLqmH3LoyJsvK6wXsOVHViHNzOjlfuOiAegkBNl2kRS8B2mW+wW6z5fToGVfRIbqARy2h7/reYBBmDNMPaO4xH8PuySR/wFMj9nYTz4xRc7deOGbetpAzlQfww= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788970413; c=relaxed/simple; bh=dWghLvD3JPiZr8VmAB9juJIXybRcOHhODGlythm1fBw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=tdni4GkIk1KU9xgQvagE2riaS1UgYZa8ZUjR05ooQrMN7ixYb5Np3WfhRadI/xqfAakg6MXfWSFAkqQv/0sUR7jfe691wQvP8Jzd2HXxtaZcJvK5YkFPQVQ7VXI5gL/71SvG06RNDsb7TQgnExxNZ9B+UIAlIeMLwBsS60yjpCE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=nMVP31Wj; 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="nMVP31Wj" Received: by smtp.kernel.org (Postfix) with ESMTPSA id ACA8F1F00A3A; Wed, 9 Sep 2026 16:13:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1788970412; bh=sVj36sttfruzZxc7ovsCMfV0b40kwQUQINqQ53IqIEI=; h=From:To:Cc:Subject:Date:Reply-To; b=nMVP31WjTiBxWu7lm6U0AdGC3g5vW0YPiImJK8uPDpbdTBZA4PPRlVuwZ56oHfSVL 7pOjlJqc7bm1FsSaF6mM2+MO8u3TphfNAUjp2Tc1pkqoDjdjnkCMcc0tR7euqyHLlZ zwM8W/Qkzuqhceja8A/mCjnrSE2PGsJnI4zHnGRY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-80917: PCI: host-generic: Fix NULL pointer dereference on 32-bit CAM systems Date: Wed, 9 Sep 2026 18:13:17 +0200 Message-ID: <2026090915-CVE-2026-80917-c530@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=5092; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=cVo+aLqD68qJh5HiCS1od00dHJnz0VofRKjSVn88SNo=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkLW2d3GGspK3fH8Od1ZH8yNrzl9u7RnPb2wBnGyifvL Slb036jI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACZSvIlhfi4PJ/+dD0L7l/xc 9W+5fbD+3YiQXIY5HNHT+kTeiZ3u+GZ5b4bMxMeN/zKfAgA= 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: PCI: host-generic: Fix NULL pointer dereference on 32-bit CAM systems On 32-bit systems the config space is too large to ioremap in one go, so pci_ecam_create() maps each bus segment separately and relies on the ->add_bus callback (pci_ecam_add_bus) to populate the per-bus mapping in cfg->winp[]. pci_ecam_map_bus() then uses that mapping as the base for every config access. The generic ECAM ops (pci_generic_ecam_ops) already provide the ->add_bus and ->remove_bus callbacks, but the CAM (legacy) ops in pci-host-generic.c do not. As a result, on a 32-bit host using "pci-host-cam-generic" the per-bus mapping is never set up and the first config read dereferences a NULL base, crashing during bus enumeration: Unable to handle kernel NULL pointer dereference at virtual address 00000800 Oops [#1] CPU: 0 PID: 1 Comm: swapper Not tainted 6.9.7+ #43 Hardware name: Digilent Nexys-Video-A7 RV32 (DT) epc : pci_generic_config_read+0x40/0xb0 ra : pci_generic_config_read+0x2c/0xb0 [] pci_generic_config_read+0x40/0xb0 [] pci_bus_read_config_dword+0x50/0xb0 [] pci_bus_generic_read_dev_vendor_id+0x3c/0x1ec [] pci_scan_single_device+0xa4/0x11c [] pci_scan_slot+0x9c/0x23c [] pci_scan_child_bus_extend+0x58/0x2f4 [] pci_scan_root_bus_bridge+0x64/0xe8 [] pci_host_probe+0x20/0xc8 [] pci_host_common_probe+0x144/0x1e4 Fix this by giving the CAM ops the same ->add_bus/->remove_bus callbacks. Since pci_ecam_add_bus() and pci_ecam_remove_bus() are static to ecam.c, move the CAM ops definition there as pci_generic_cam_ops (mirroring pci_generic_ecam_ops) and export it for pci-host-generic.c to reference. [mani: removed timestamp from log] The Linux kernel CVE team has assigned CVE-2026-80917 to this issue. Affected and fixed versions =========================== Issue introduced in 5.14 with commit 8fe55ef23387ce3c7488375b1fd539420d7654bb and fixed in 5.15.218 with commit 5e52eb0290f66ba0732956dcb1e365b5ca3c5108 Issue introduced in 5.14 with commit 8fe55ef23387ce3c7488375b1fd539420d7654bb and fixed in 6.1.185 with commit baf9b0383ff770fdff123d3a832f3a99641d96dd Issue introduced in 5.14 with commit 8fe55ef23387ce3c7488375b1fd539420d7654bb and fixed in 6.6.154 with commit 8d08713ec83a18526d1ed1fd5f0d2b901d103a10 Issue introduced in 5.14 with commit 8fe55ef23387ce3c7488375b1fd539420d7654bb and fixed in 6.12.106 with commit 74456843f18ba7f3045974d7e8b88ab993152b8c Issue introduced in 5.14 with commit 8fe55ef23387ce3c7488375b1fd539420d7654bb and fixed in 6.18.47 with commit 0c55707bd5d0d7670704cfd0dda933809b052f67 Issue introduced in 5.14 with commit 8fe55ef23387ce3c7488375b1fd539420d7654bb and fixed in 7.1.11 with commit a199293f3038db8d31d47aa60f1e18272cd82354 Issue introduced in 5.14 with commit 8fe55ef23387ce3c7488375b1fd539420d7654bb and fixed in 7.2.1 with commit 0916948026f623844acd08888f7cbedbf1c48d6b Issue introduced in 5.14 with commit 8fe55ef23387ce3c7488375b1fd539420d7654bb and fixed in 7.3-rc1 with commit 008cb88edb41f3c7c8e0ed763ff9f26719830984 Issue introduced in 5.12.19 with commit 0b5877a1aeacdbf32b3bea91326592004ec7806f Issue introduced in 5.13.4 with commit a037ebbe72a4f98495b193112e2b2000e5e09eb5 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-80917 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/pci-host-generic.c drivers/pci/ecam.c include/linux/pci-ecam.h 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/5e52eb0290f66ba0732956dcb1e365b5ca3c5108 https://git.kernel.org/stable/c/baf9b0383ff770fdff123d3a832f3a99641d96dd https://git.kernel.org/stable/c/8d08713ec83a18526d1ed1fd5f0d2b901d103a10 https://git.kernel.org/stable/c/74456843f18ba7f3045974d7e8b88ab993152b8c https://git.kernel.org/stable/c/0c55707bd5d0d7670704cfd0dda933809b052f67 https://git.kernel.org/stable/c/a199293f3038db8d31d47aa60f1e18272cd82354 https://git.kernel.org/stable/c/0916948026f623844acd08888f7cbedbf1c48d6b https://git.kernel.org/stable/c/008cb88edb41f3c7c8e0ed763ff9f26719830984