Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-98504 Overview
CVE-2026-98504 is a NULL pointer dereference vulnerability in the Linux kernel's PCI subsystem. The flaw resides in the dynamic OpenFirmware (OF) helpers of_pci_prop_bus_range() and of_pci_prop_intr_map(), which dereference pdev->subordinate without validating the pointer. A PCI bridge with a Type 1 header may lack an allocated secondary bus when bus numbers are exhausted or the bridge bus number registers are not writable. When CONFIG_PCI_DYNAMIC_OF_NODES is enabled, this condition triggers a NULL pointer dereference during device tree node creation, resulting in an early boot hang.
Critical Impact
Systems configured with CONFIG_PCI_DYNAMIC_OF_NODES and bridges lacking subordinate buses can experience kernel NULL pointer dereferences and fail to boot.
Affected Products
- Linux kernel versions beginning with v6.15 (when commit 1f340724419e made the code path reachable)
- Linux distributions shipping kernels with CONFIG_PCI_DYNAMIC_OF_NODES enabled
- Systems with PCI bridges lacking allocated secondary bus numbers
Discovery Timeline
- 2026-10-18 - CVE-2026-98504 published to NVD
- 2026-10-19 - Last updated in NVD database
Technical Details for CVE-2026-98504
Vulnerability Analysis
The vulnerability resides in the Linux kernel PCI OF (OpenFirmware) property generation code. When CONFIG_PCI_DYNAMIC_OF_NODES is enabled, the kernel dynamically creates device tree nodes for PCI bridges. Two helper functions, of_pci_prop_bus_range() and of_pci_prop_intr_map(), access pdev->subordinate to generate the bus-range and interrupt-map properties. Neither function validates that the pointer is non-NULL before dereferencing it.
A PCI bridge is not guaranteed to have a subordinate bus allocated. The condition arises when bus numbers are exhausted or when the bridge's secondary and subordinate bus number registers are not writable. In these scenarios, pdev->subordinate remains NULL, and the subsequent dereference triggers a kernel oops during early boot.
Root Cause
The root cause is a missing NULL check [CWE-476] on the pdev->subordinate field inside the OF property generation helpers. The defect was latent since commit 407d1a51921e ("PCI: Create device tree node for bridge") but became reachable in Linux v6.15 after commit 1f340724419e ("PCI: of: Create device tree PCI host bridge node"). Prior to v6.15, of_pci_make_dev_node() returned early because the parent OF node was absent, masking the latent defect.
Attack Vector
This is a local reliability flaw rather than a remotely exploitable condition. Triggering the fault requires a specific hardware configuration where a PCI bridge is enumerated without an allocated secondary bus. Systems meeting these criteria will hang during boot when the kernel attempts to generate the dynamic OF properties.
The vulnerability manifests when the PCI enumeration code reaches the OF property generation path for a Type 1 header device whose subordinate pointer was never populated. See the referenced kernel commits for the exact code paths and the applied fix.
Detection Methods for CVE-2026-98504
Indicators of Compromise
- Kernel panic or oops messages referencing of_pci_prop_bus_range or of_pci_prop_intr_map in boot logs
- Early boot hangs on systems with PCI bridges and CONFIG_PCI_DYNAMIC_OF_NODES enabled
- NULL pointer dereference traces originating from the PCI subsystem during device enumeration
Detection Strategies
- Inspect running kernel version with uname -r and compare against patched stable branches referenced in the upstream commits.
- Verify kernel build configuration for CONFIG_PCI_DYNAMIC_OF_NODES=y using /boot/config-$(uname -r) or /proc/config.gz.
- Review serial console output and dmesg logs on systems that fail to complete boot for PCI subsystem stack traces.
Monitoring Recommendations
- Collect kernel crash dumps via kdump to capture NULL pointer dereferences during PCI enumeration.
- Monitor fleet kernel versions through a centralized inventory to identify unpatched hosts running v6.15 or later kernels.
- Track vendor security advisories for Linux distributions to confirm backport status of the upstream fix.
How to Mitigate CVE-2026-98504
Immediate Actions Required
- Apply the upstream fix by updating to a Linux kernel release that includes the patch from commits 879c911, 8805840, a6d97d1, aee7745, or ccd32fa.
- Rebuild and redeploy custom kernels after cherry-picking the fix for environments running affected v6.15+ builds.
- Coordinate with Linux distribution vendors to obtain backported stable kernel updates.
Patch Information
The fix generates the bus-range and interrupt-map properties only when a subordinate bus exists, while retaining the device tree node and remaining properties for bridges without one. Relevant upstream commits include Linux Kernel Commit 879c911, Linux Kernel Commit 8805840, Linux Kernel Commit a6d97d1, Linux Kernel Commit aee7745, and Linux Kernel Commit ccd32fa.
Workarounds
- Disable CONFIG_PCI_DYNAMIC_OF_NODES in the kernel build configuration where the feature is not required.
- Boot an earlier kernel (prior to v6.15) on affected hardware until a patched kernel is available.
- Reconfigure firmware or platform BIOS to ensure bus numbers are allocated for all enumerated bridges where possible.
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

