net/liquidio: drop cached VF pci_dev LUT
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ ca6139ffc67ee6ef0459f81e37894ed411083855 · < 5c0e3ba4f500fd4314ceb42f07f16bc445156431| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net/liquidio: drop cached VF pci_dev LUT
The PF SR-IOV enable path caches VF pci_dev pointers in dpiring_to_vfpcidev_lut[] by iterating with pci_get_device(). Those entries do not own a reference, because the iterator drops the previous device reference on each step. The cached pointer is then dereferenced later when handling OCTEON_VF_FLR_REQUEST.
Replace the cached VF mapping with runtime lookup on the mailbox DPI ring: derive the VF index from q_no, resolve the VF via exported PCI IOV helpers, validate it with the PF pointer and VF ID, then issue pcie_flr() and drop the reference with pci_dev_put(). Remove the unused VF lookup table initialization and cleanup.
From the CVE record · Linux
The Linux kernel’s net/liquidio driver caches VF PCI device pointers without retaining references, then dereferences them when handling an OCTEON_VF_FLR_REQUEST. This can result in an invalid pointer dereference. The input does not specify how an attacker could trigger it or whether authentication or user interaction is required.
Engineers running Linux kernels with the net/liquidio driver should check their versions; affected versions are not specified.