CVE-2026-142834: PCI: Set supported_speeds in set_pcie_port_type()
In the Linux kernel, the following vulnerability has been resolved:
PCI: Set supportedspeeds in setpcieporttype()
sparc64 and powerpc create PCI devices from the device tree in ofcreatepcidev(), which calls setpcieporttype() but not pcisetupdevice(). Since d2bd39c0456b, supportedspeeds is only set in pcisetupdevice(), so it stays 0 for these devices.
pciegetspeedcap() then returns PCISPEEDUNKNOWN, the sysfs 'maxlinkspeed' attribute reads "Unknown", and the failed link retraining quirk passes PCISPEEDUNKNOWN to pciesettargetspeed(), which warns on a SPARC T7-1:
WARNING: drivers/pci/pcie/bwctrl.c:125 at pciesettargetspeed+0x284/0x2e0
Set supportedspeeds in setpcieporttype(), which all three paths call.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.117 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.63 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.4
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
The issue affects sparc64 and powerpc systems that create PCI devices from the device tree through of_create_pci_dev(). Devices initialized through this path can retain a supported_speeds value of 0.
How can I tell whether a system is affected?
The PCIe sysfs max_link_speed attribute may report "Unknown" because pcie_get_speed_cap() returns PCI_SPEED_UNKNOWN. A system may also emit a warning from pcie_set_target_speed() when the failed link retraining quirk attempts to set the target speed.