Skip to contentSkip to conversation

CVE-2026-98504: PCI: of_property: Omit bus properties without a subordinate bus

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 18

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

PCI: of_property: Omit bus properties without a subordinate bus

A bridge (a device with a Type 1 header) may not have a secondary bus allocated (pdev->subordinate), e.g., if there are no available bus numbers or the bridge secondary/subordinate bus numbers are not writable.

The dynamic OF helpers of_pci_prop_bus_range() and of_pci_prop_intr_map() dereference pdev->subordinate without checking it. When CONFIG_PCI_DYNAMIC_OF_NODES is enabled, this can cause a NULL pointer dereference and early boot hang.

Generate 'bus-range' and 'interrupt-map' properties only when a subordinate bus exists. Keep the node and its remaining properties for bridges without one.

The problem was latent since 407d1a51921e ("PCI: Create device tree node for bridge"), but wasn't reachable until 1f340724419e ("PCI: of: Create device tree PCI host bridge node"), which appeared in v6.15. Before 1f340724419e, of_pci_make_dev_node() returned early because the parent OF node was missing.

[bhelgaas: move pdev->subordinate test to callees, commit log]

The Linux kernel CVE team has assigned CVE-2026-98504 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.6 with commit 407d1a51921e9f28c1bcec647c2205925bd1fdab and fixed in 6.6.158 with commit ccd32fa3489cbe86a0b281da4447b4c7eadb3518
	Issue introduced in 6.6 with commit 407d1a51921e9f28c1bcec647c2205925bd1fdab and fixed in 6.12.112 with commit a6d97d10e49ae49026ae13af6c41634fce470a37
	Issue introduced in 6.6 with commit 407d1a51921e9f28c1bcec647c2205925bd1fdab and fixed in 6.18.55 with commit 879c911f77b8a7862aa16079b04efc3fdc5d32ec
	Issue introduced in 6.6 with commit 407d1a51921e9f28c1bcec647c2205925bd1fdab and fixed in 7.2.9 with commit aee774588abd78f75952fd34c3fa461bc46b62c2
	Issue introduced in 6.6 with commit 407d1a51921e9f28c1bcec647c2205925bd1fdab and fixed in 7.3-rc5 with commit 8805840aad73df7146778be243a196d48b4f6430

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-98504

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/of_property.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/ccd32fa3489cbe86a0b281da4447b4c7eadb3518
	https://git.kernel.org/stable/c/a6d97d10e49ae49026ae13af6c41634fce470a37
	https://git.kernel.org/stable/c/879c911f77b8a7862aa16079b04efc3fdc5d32ec
	https://git.kernel.org/stable/c/aee774588abd78f75952fd34c3fa461bc46b62c2
	https://git.kernel.org/stable/c/8805840aad73df7146778be243a196d48b4f6430