Linux kernel
cpe:2.3:a:linux:linux_kernel:*:*:*:*:*:*:*, +4 more
A use-after-free vulnerability has been identified in the Linux kernel's PCI Express (PCIe) Active State Power Management (ASPM) handling. This issue arises when a multi-function device's function 0 is removed; the kernel retains a pointer to this function's PCI device. If the ASPM policy is then changed, it dereferences the pointer, leading to a use-after-free condition. The vulnerability has been addressed by modifying the ASPM management to disable it and free the associated link state when any child function is removed, thereby preventing the use of a dangling pointer and ensuring consistent ASPM control across all functions of multi-function devices.
Exploitation of this vulnerability can lead to a use-after-free condition, causing memory corruption that could be exploited to execute arbitrary code or cause a denial-of-service condition by crashing the system.
To reproduce this vulnerability, remove a PCI device's function 0 and then change the ASPM policy to 'powersave'. This sequence will trigger the use-after-free condition, as the removed function's pointer is dereferenced, leading to a KASAN (Kernel Address Sanitizer) warning about a slab memory use-after-free error.
The vulnerability has been fixed in the Linux kernel. Users should upgrade to the latest version where this issue has been addressed.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.