CVE-2026-139766: PCI: endpoint: pci-epf-vntb: Pass PF/VF number when BAR programming
In the Linux kernel, the following vulnerability has been resolved:
PCI: endpoint: pci-epf-vntb: Pass PF/VF number when BAR programming
vntbepfmwsettrans() programs the memory-window BAR through pciepcsetbar() with hardcoded function numbers (0, 0), so the BAR lands on the wrong function whenever the vNTB EPF is bound to anything but PF0. The other BAR programming sites in the vNTB driver already pass the EPF's own numbers.
Pass the EPF's own funcno/vfuncno here as well.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.226 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.193 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.119 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.65 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.6-1 - Compensating control
In the vNTB driver’s vntb_epf_mw_set_trans(), pass the EPF’s own func_no/vfunc_no to pci_epc_set_bar() instead of hardcoding (0, 0).
Event History
Frequently Asked Questions
Which deployments are affected by this issue?
The issue affects Linux kernel deployments using the PCI endpoint vNTB function (pci-epf-vntb) when that endpoint function is bound to a PCI function other than PF0. BAR programming for the memory window can be directed to the wrong function in that configuration.
What configuration avoids the incorrect BAR programming?
Binding the vNTB EPF to PF0 avoids the stated condition, because the affected code hardcodes PF/VF function numbers as 0, 0. The problem occurs when the EPF is bound to another PF or VF.
What is the practical remediation?
Apply a kernel version containing the referenced fix, which changes the memory-window BAR setup to use the EPF's own func_no and vfunc_no. If patching is not immediately possible, avoid binding pci-epf-vntb to any function other than PF0.