# CVE-2025-22031: linux: In the Linux kernel, the following vulnerability has been resolved:  PCI/bwctrl: Fix NULL pointer dereference on bus...

CVE-2025-22031 is fixed in linux on 1 platform by DEBIAN-CVE-2025-22031 (version 6.16.3-1), released April 16, 2025. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2025-22031
- Priority: Routine
- CVSS: 5.5 (medium)
- EPSS: 0.0025
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Apr 16, 2025

## Description

In the Linux kernel, the following vulnerability has been resolved:  PCI/bwctrl: Fix NULL pointer dereference on bus number exhaustion  When BIOS neglects to assign bus numbers to PCI bridges, the kernel attempts to correct that during PCI device enumeration.  If it runs out of bus numbers, no pci_bus is allocated and the "subordinate" pointer in the bridge's pci_dev remains NULL.  The PCIe bandwidth controller erroneously does not check for a NULL subordinate pointer and dereferences it on probe.  Bandwidth control of unusable devices below the bridge is of questionable utility, so simply error out instead.  This mirrors what PCIe hotplug does since commit 62e4492c3063 ("PCI: Prevent NULL dereference during pciehp probe").  The PCI core emits a message with KERN_INFO severity if it has run out of bus numbers.  PCIe hotplug emits an additional message with KERN_ERR severity to inform the user that hotplug functionality is disabled at the bridge.  A similar message for bandwidth control does not seem merited, given that its only purpose so far is to expose an up-to-date link speed in sysfs and throttle the link speed on certain laptops with limited Thermal Design Power.  So error out silently.  User-visible messages:    pci 0000:16:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring   [...]   pci_bus 0000:45: busn_res: [bus 45-74] end is updated to 74   pci 0000:16:02.0: devices behind bridge are unusable because [bus 45-74] cannot be assigned for them   [...]   pcieport 0000:16:02.0: pciehp: Hotplug bridge without secondary bus, ignoring   [...]   BUG: kernel NULL pointer dereference   RIP: pcie_update_link_speed   pcie_bwnotif_enable   pcie_bwnotif_probe   pcie_port_probe_service   really_probe

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | linux Debian 14 | 6.16.3-1 | [DEBIAN-CVE-2025-22031](https://patchblox.com/security/data/fix/linux/debian-cve-2025-22031.md) | Apr 16, 2025 |

---

Data as of 2026-11-09T01:18:40Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
