5.5medium
PCI: endpoint: pci-epf-vntb: Remove duplicate resource teardown
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.13% (higher than 2% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: PCI: endpoint: pci-epf-vntb: Remove duplicate resource teardown epf_ntb_epc_destroy() duplicates the teardown that the caller is supposed to perform later. This leads to an oops when .allow_link fails or when .drop_link is performed. The following is an example oops of the former case: Unable to handle kernel paging request at virtual address dead000000000108 [...] [dead000000000108] address between user and kernel address ranges Internal error: Oops: 0000000096000044 [#1] SMP [...] Call trace: pci_epc_remove_epf+0x78/0xe0 (P) pci_primary_epc_epf_link+0x88/0xa8 configfs_symlink+0x1f4/0x5a0 vfs_symlink+0x134/0x1d8 do_symlinkat+0x88/0x138 __arm64_sys_symlinkat+0x74/0xe0 [...] Remove the helper, and drop pci_epc_put(). EPC device refcounting is tied to the configfs EPC group lifetime, and pci_epc_put() in the .drop_link path is sufficient.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from e2b6ef72b7aea9d7d480d2df499bcd1c93247abb before 305a0674bc552bfcc3231e23fb91cf4f62aec168, from e35f56bb03304abc92c928b641af41ca372966bb before b261027a1a235d8925e332363f23135a0eff2b35, from e35f56bb03304abc92c928b641af41ca372966bb before e238ab12556b00f3b4d8b870b32ba1e4f4d4ebc2, from e35f56bb03304abc92c928b641af41ca372966bb before 73bf218de28d039126dc64281d2b47dd3c46a0a3, from e35f56bb03304abc92c928b641af41ca372966bb before cec9ead73ab154a7953f6ab8dd5127e0d6bbf95a, from e35f56bb03304abc92c928b641af41ca372966bb before 478e776101592eb63298714e96823ef78a3295ec, from e35f56bb03304abc92c928b641af41ca372966bb before a7a3cab4d33fd8a8aed864c447d0d7c99e85404e, from e35f56bb03304abc92c928b641af41ca372966bb before 0da63230d3ec1ec5fcc443a2314233e95bfece54 and 2 more Not affected: before 6.0, from 5.15.209 up to 5.15.*, from 6.1.175 up to 6.1.*, from 6.6.136 up to 6.6.*, from 6.12.84 up to 6.12.*, from 6.18.24 up to 6.18.* | CVE List |
| linux linux_kernel | from 6.0 before 6.6.136, from 6.7 before 6.12.84, from 6.13 before 6.18.24, from 6.19 before 6.19.14, from 7.0 before 7.0.1 | NVD |
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: PCI: endpoint: pci-epf-vntb: Remove duplicate resource teardown epf_ntb_epc_destroy() duplicates the teardown that the caller is supposed to perform later. This leads to an oops when .allow_link fails or when .drop_link is performed. The following is an example oops of the former case: Unable to handle kernel paging request at virtual address dead000000000108 [...] [dead000000000108] address between user and kernel address ranges Internal error: Oops: 0000000096000044 [#1] SMP [...] Call trace: pci_epc_remove_epf+0x78/0xe0 (P) pci_primary_epc_epf_link+0x88/0xa8 configfs_symlink+0x1f4/0x5a0 vfs_symlink+0x134/0x1d8 do_symlinkat+0x88/0x138 __arm64_sys_symlinkat+0x74/0xe0 [...] Remove the helper, and drop pci_epc_put(). EPC device refcounting is tied to the configfs EPC group lifetime, and pci_epc_put() in the .drop_link path is sufficient.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: PCI: endpoint: pci-epf-vntb: Eliminar la desasignación duplicada de recursos epf_ntb_epc_destroy() duplica la desasignación que se supone que el llamador debe realizar más tarde. Esto provoca un ’oops’ cuando .allow_link falla o cuando se realiza .drop_link. El siguiente es un ejemplo de ’oops’ del primer caso: No se puede manejar la solicitud de paginación del kernel en la dirección virtual dead000000000108 [...] [dead000000000108] dirección entre los rangos de direcciones de usuario y kernel Error interno: Oops: 0000000096000044 [#1] SMP [...] Traza de llamadas: pci_epc_remove_epf+0x78/0xe0 (P) pci_primary_epc_epf_link+0x88/0xa8 configfs_symlink+0x1f4/0x5a0 vfs_symlink+0x134/0x1d8 do_symlinkat+0x88/0x138 __arm64_sys_symlinkat+0x74/0xe0 [...] Eliminar la función auxiliar y eliminar pci_epc_put(). El conteo de referencias del dispositivo EPC está ligado a la vida útil del grupo EPC de configfs, y pci_epc_put() en la ruta .drop_link es suficiente.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-31594 changed 2026-06-14 | CVE Terms of Use |
| NVD | CVE-2026-31594 changed 2026-11-11 | Public domain |