Linux Kernel ext4 Journal Handling Vulnerability During Superblock Updates

Vulnerability

A vulnerability in the Linux kernel's ext4 file system has been addressed, which involved improper handling of superblock (sb) updates during certain error conditions. This issue could arise when the journal is in the process of being destroyed, leading to a potential race condition. The vulnerability was identified while running stress tests with the Linux Test Project (LTP). Under specific error handling scenarios, the superblock update process could inadvertently start a new transaction after the journal had been marked for unmounting, causing a 'BUG_ON' condition. To mitigate this, a new mount flag was introduced to indicate when the journal is being destroyed, allowing for safe management of superblock updates without journaling them, thus preventing the race condition.

Impact

The vulnerability could lead to a race condition where superblock updates are improperly managed, potentially causing system instability or data integrity issues.

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
4.0
remediation
0.0
relevance
0.0
threat
3.2
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.