Linux Kernel UBIFS Double Free Vulnerability in Rename Whiteout Operation

Vulnerability

A double free vulnerability has been identified in the Linux kernel's UBIFS (Unsorted Block Image File System) component. This issue arises during the rename whiteout operation, where the 'whiteout_ui->data' is allocated memory that gets freed twice. The vulnerability occurs if the space budget fails for the rename whiteout operation, leading to a double free condition. The first free happens manually, but the second free occurs automatically when the inode is being processed, causing memory corruption.

Impact

Exploitation of this vulnerability leads to a double free condition, which can cause memory corruption and potentially allow for arbitrary code execution.

Reproduction

The vulnerability can be reproduced by performing a rename operation that exceeds the space budget on a whiteout inode in UBIFS. This process involves allocating memory for the whiteout UI data, freeing it once, and then inadvertently freeing it again when the inode is processed, creating a double free scenario.

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

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
5.0
exploitability
4.3
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.