Database/Kernel, userspace & hypervisor
Linux kernel (drivers/pci/pcie): The ASPM link state keeps a raw pointer to function 0 of a multi-function device.
Impact
The ASPM link state keeps a raw pointer to function 0 of a multi-function device. Remove that function and the pointer dangles; any later ASPM policy change dereferences freed memory, which KASAN catches as a slab use-after-free in the link-state walk. This matters on GPU nodes because the cards themselves are multi-function - a GPU with its companion audio function is the standard layout - so the removal that arms the bug is an ordinary device-management action.
Who can reach it
Needs write access to PCI sysfs on the host: remove a function via /sys/bus/pci/devices/<dev>/remove, then write the ASPM policy knob (or let anything else walk the link state). That is root, or a privileged container with /sys mounted writable - not a plain tenant container and not a guest. Worth tracking anyway because driver-rebind and device-reclaim automation performs exactly this remove step on multi-function cards, so the dangling pointer can be left armed by routine operations and tripped later by an unrelated power-management change.
What to do
Boot a kernel that disables ASPM and frees the pcie_link_state when any child function is removed. Interim: do not expose writable PCI sysfs (remove, and the pcie_aspm policy module parameter) inside containers, and avoid per-function removal on multi-function cards - remove the whole device instead.
References
Related entries
- Linux kernel (drivers/pci/pcie): The ASPM link state of a PCIe switch is freed as soon as ANY function on the upstreamCVE-2024-58093 · Linux kernel (drivers/pci/pcie)Medium
- Linux kernel (drivers/pci/pcie): AER's rate limiter dereferences per-device error state without checking it exists.CVE-2025-40034 · Linux kernel (drivers/pci/pcie)Medium
- Linux kernel (drivers/pci/pcie): The AER subsystem allocates its per-device error-tracking structure without checkingCVE-2025-68309 · Linux kernel (drivers/pci/pcie)Medium
- Linux kernel (drivers/pci/pcie): PCIe bandwidth control dereferences a bridge's subordinate bus pointer withoutCVE-2025-22031 · Linux kernel (drivers/pci/pcie)Medium
- Intel oneAPI Math Kernel Library (oneMKL): An uncontrolled library search path: the component loads a shared libraryCVE-2024-21766 · Intel oneAPI Math Kernel Library (oneMKL)Medium
- Linux kernel - NVMe-oF target configfs, drivers/nvme/target/configfs.c: Nvmet_root_discovery_nqn_store() treated theCVE-2024-53681 · Linux kernel - NVMe-oF target configfs, drivers/nvme/target/configfs.cMedium
This entry is curated: imported from vendor advisories with machine assistance, not yet individually verified. Confirm against your vendor's advisory before acting, and report anything wrong.