{"id":"CVE-2026-139018","state":"PUBLISHED","title":"PCI: endpoint: pci-epf-vntb: Manage virtual NTB and PCI bus lifetime","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nPCI: endpoint: pci-epf-vntb: Manage virtual NTB and PCI bus lifetime\n\nThe virtual PCI driver registers an ntb_dev but has no remove callback.\nUnbinding the endpoint function can therefore free BARs while the NTB\ndevice and its client still use them. It also leaves the virtual PCI\ndevices and root bus allocated.\n\nAllocate an ntb_dev for each virtual PCI probe and unregister it from the\nmatching remove callback. Start command processing only after registration.\nPublish the device for doorbell IRQs at the same point. During remove, stop\nthe command work and drain IRQ handlers before unregistering the device.\n\nRetain the root bus returned by pci_scan_bus() so it can be removed on\nunbind. Unregister the virtual PCI driver before releasing endpoint\nresources. Stop and remove the root bus under the PCI rescan/remove lock,\nthen release its host bridge.","publishedAt":"2026-11-30T13:27:06.713Z","updatedAt":"2026-11-30T13:27:06.713Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"e35f56bb03304abc92c928b641af41ca372966bb","status":"affected","lessThan":"5e34b51d678692ba4517d9fd1ec3ee17b2b2b0af","versionType":"git"},{"version":"e35f56bb03304abc92c928b641af41ca372966bb","status":"affected","lessThan":"cad1c7c2a8552444a9bec6032774ac667f08afb7","versionType":"git"},{"version":"e35f56bb03304abc92c928b641af41ca372966bb","status":"affected","lessThan":"980e10d35c44cccc5abff8fea7f96ce168af8f07","versionType":"git"},{"version":"e35f56bb03304abc92c928b641af41ca372966bb","status":"affected","lessThan":"ffa99759d4c01499d7eb78fce43db9db4d5da620","versionType":"git"},{"version":"e35f56bb03304abc92c928b641af41ca372966bb","status":"affected","lessThan":"df46b452097bfe046e6c522b0b0e035259cbf8dc","versionType":"git"},{"version":"e35f56bb03304abc92c928b641af41ca372966bb","status":"affected","lessThan":"5cdbd6d3a3a147fa9975e35f2602cbec9a72a932","versionType":"git"},{"version":"e2b6ef72b7aea9d7d480d2df499bcd1c93247abb","status":"affected","versionType":"git"},{"version":"5.15.153","status":"affected","lessThan":"5.16","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/pci/endpoint/functions/pci-epf-vntb.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.0","versionType":"semver"},{"version":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.118","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.64","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.4","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/pci/endpoint/functions/pci-epf-vntb.c"]}],"references":["https://git.kernel.org/stable/c/5e34b51d678692ba4517d9fd1ec3ee17b2b2b0af","https://git.kernel.org/stable/c/cad1c7c2a8552444a9bec6032774ac667f08afb7","https://git.kernel.org/stable/c/980e10d35c44cccc5abff8fea7f96ce168af8f07","https://git.kernel.org/stable/c/ffa99759d4c01499d7eb78fce43db9db4d5da620","https://git.kernel.org/stable/c/df46b452097bfe046e6c522b0b0e035259cbf8dc","https://git.kernel.org/stable/c/5cdbd6d3a3a147fa9975e35f2602cbec9a72a932"],"weaknesses":[],"ingestedAt":"2026-11-30T13:40:04.421Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139018.json","commit":"5317bbbde1916a58cb1fadabb726eb126daf44c1","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139018","state":"PUBLISHED","datePublished":"2026-11-30T13:27:06.713Z","dateUpdated":"2026-11-30T13:27:06.713Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.909Z"},"containers":{"cna":{"title":"PCI: endpoint: pci-epf-vntb: Manage virtual NTB and PCI bus lifetime","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nPCI: endpoint: pci-epf-vntb: Manage virtual NTB and PCI bus lifetime\n\nThe virtual PCI driver registers an ntb_dev but has no remove callback.\nUnbinding the endpoint function can therefore free BARs while the NTB\ndevice and its client still use them. It also leaves the virtual PCI\ndevices and root bus allocated.\n\nAllocate an ntb_dev for each virtual PCI probe and unregister it from the\nmatching remove callback. Start command processing only after registration.\nPublish the device for doorbell IRQs at the same point. During remove, stop\nthe command work and drain IRQ handlers before unregistering the device.\n\nRetain the root bus returned by pci_scan_bus() so it can be removed on\nunbind. Unregister the virtual PCI driver before releasing endpoint\nresources. Stop and remove the root bus under the PCI rescan/remove lock,\nthen release its host bridge."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"e35f56bb03304abc92c928b641af41ca372966bb","status":"affected","lessThan":"5e34b51d678692ba4517d9fd1ec3ee17b2b2b0af","versionType":"git"},{"version":"e35f56bb03304abc92c928b641af41ca372966bb","status":"affected","lessThan":"cad1c7c2a8552444a9bec6032774ac667f08afb7","versionType":"git"},{"version":"e35f56bb03304abc92c928b641af41ca372966bb","status":"affected","lessThan":"980e10d35c44cccc5abff8fea7f96ce168af8f07","versionType":"git"},{"version":"e35f56bb03304abc92c928b641af41ca372966bb","status":"affected","lessThan":"ffa99759d4c01499d7eb78fce43db9db4d5da620","versionType":"git"},{"version":"e35f56bb03304abc92c928b641af41ca372966bb","status":"affected","lessThan":"df46b452097bfe046e6c522b0b0e035259cbf8dc","versionType":"git"},{"version":"e35f56bb03304abc92c928b641af41ca372966bb","status":"affected","lessThan":"5cdbd6d3a3a147fa9975e35f2602cbec9a72a932","versionType":"git"},{"version":"e2b6ef72b7aea9d7d480d2df499bcd1c93247abb","status":"affected","versionType":"git"},{"version":"5.15.153","status":"affected","lessThan":"5.16","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/pci/endpoint/functions/pci-epf-vntb.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.0","versionType":"semver"},{"version":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.118","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.64","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.4","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/pci/endpoint/functions/pci-epf-vntb.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/5e34b51d678692ba4517d9fd1ec3ee17b2b2b0af"},{"url":"https://git.kernel.org/stable/c/cad1c7c2a8552444a9bec6032774ac667f08afb7"},{"url":"https://git.kernel.org/stable/c/980e10d35c44cccc5abff8fea7f96ce168af8f07"},{"url":"https://git.kernel.org/stable/c/ffa99759d4c01499d7eb78fce43db9db4d5da620"},{"url":"https://git.kernel.org/stable/c/df46b452097bfe046e6c522b0b0e035259cbf8dc"},{"url":"https://git.kernel.org/stable/c/5cdbd6d3a3a147fa9975e35f2602cbec9a72a932"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:27:06.713Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"6.12.118"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"6.18.64"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"7.3.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"7.4-rc1"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15.153"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}