CVE-2025-22031
PCI/bwctrl: Fix NULL pointer dereference on bus number exhaustion
Mitigation
- Upgrade Linux to 667f053b05f00a007738cd7ed6fa1901de19dc7e or later.
Who should check
- Anyone running Linux >= 665745f274870c921020f610e2c99a3b1613519b, < d93d309013e89631630a12b1770d27e4be78362a; >= 665745f274870c921020f610e2c99a3b1613519b, < 1181924af78e5299ddec6e457789c02dd5966559; >= 665745f274870c921020f610e2c99a3b1613519b, < 667f053b05f00a007738cd7ed6fa1901de19dc7e
- Anyone running Linux 6.13
Vulnerability facts
- Affected
- Linux >= 665745f274870c921020f610e2c99a3b1613519b, < d93d309013e89631630a12b1770d27e4be78362a; >= 665745f274870c921020f610e2c99a3b1613519b, < 1181924af78e5299ddec6e457789c02dd5966559; >= 665745f274870c921020f610e2c99a3b1613519b, < 667f053b05f00a007738cd7ed6fa1901de19dc7e; Linux 6.13
- Fixed in
- Linux 1181924af78e5299ddec6e457789c02dd5966559, Linux 667f053b05f00a007738cd7ed6fa1901de19dc7e
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.28% chance of exploitation in 30 days (percentile 13, 2026-11-26)
- CWE
- CWE-476
- Modified
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
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 665745f274870c921020f610e2c99a3b1613519b, < d93d309013e89631630a12b1770d27e4be78362a; >= 665745f274870c921020f610e2c99a3b1613519b, < 1181924af78e5299ddec6e457789c02dd5966559; >= 665745f274870c921020f610e2c99a3b1613519b, < 667f053b05f00a007738cd7ed6fa1901de19dc7e | — | cvelist |
| Linux | 6.13 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-22031. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-22031.md Affected: Linux >= 665745f274870c921020f610e2c99a3b1613519b, < d93d309013e89631630a12b1770d27e4be78362a; >= 665745f274870c921020f610e2c99a3b1613519b, < 1181924af78e5299ddec6e457789c02dd5966559; >= 665745f274870c921020f610e2c99a3b1613519b, < 667f053b05f00a007738cd7ed6fa1901de19dc7e; Linux 6.13 Fixed in: Linux 1181924af78e5299ddec6e457789c02dd5966559, Linux 667f053b05f00a007738cd7ed6fa1901de19dc7e Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
FAQ
Is CVE-2025-22031 being exploited?
There is no confirmed exploitation: CVE-2025-22031 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.28% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-22031?
Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2025-22031?
Linux >= 665745f274870c921020f610e2c99a3b1613519b, < d93d309013e89631630a12b1770d27e4be78362a; >= 665745f274870c921020f610e2c99a3b1613519b, < 1181924af78e5299ddec6e457789c02dd5966559; >= 665745f274870c921020f610e2c99a3b1613519b, < 667f053b05f00a007738cd7ed6fa1901de19dc7e; Linux 6.13.
Is there a fix for CVE-2025-22031?
Yes. Fixed in Linux 1181924af78e5299ddec6e457789c02dd5966559, Linux 667f053b05f00a007738cd7ed6fa1901de19dc7e. Upgrade Linux to 667f053b05f00a007738cd7ed6fa1901de19dc7e or later.
How do I check if I'm affected by CVE-2025-22031?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.