Linux Kernel PowerPC pSeries Use-After-Free Vulnerability in Dynamic PHB Removal

Vulnerability

A use-after-free vulnerability has been identified in the Linux kernel's PowerPC pSeries architecture, specifically within the 'remove_phb_dynamic()' function. The issue arises when the function accesses the 'io_resource' of a host bridge after it has been unregistered, potentially leading to a crash. This vulnerability can be triggered under certain conditions, particularly when 'slub_debug' and 'page_poison' are enabled, causing the kernel to crash instead of silently failing. The vulnerability has been addressed by modifying the reference management of the host bridge to prevent the use-after-free condition.

Impact

Exploitation of this vulnerability can lead to a kernel crash, causing a denial of service condition on the affected system.

Reproduction

The vulnerability can be reproduced by removing a slot from a dynamic PHB (PCI Host Bridge) on a PowerPC pSeries system with 'slub_debug' and 'page_poison' enabled. This can be done through the 'drmgr' command, which triggers the 'remove_phb_dynamic()' function. The timing of the slot removal can be managed to create a use-after-free scenario, where the PHB is accessed after it has been freed, leading to a crash.

Remediation

Users can update to the latest version of the Linux kernel where this vulnerability has been fixed. Instructions for updating the kernel can be found in the official Linux kernel documentation.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
5.7
remediation
0.0
relevance
0.0
threat
4.8
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.