Linux Kernel Nilfs2 Filesystem Use-After-Free Vulnerability

Vulnerability

A use-after-free vulnerability has been identified in the nilfs2 filesystem of the Linux kernel. This issue arises during the unmount process when the nilfs_root structure is not properly retained after detaching the log writer. The vulnerability can be triggered when inodes are left in the 'garbage_list' and subsequently released, leading to a use-after-free condition. The problem was exacerbated by recent changes that altered how dirty inodes are managed, creating a scenario where the nilfs_root structure could be accessed after it had been freed.

Impact

Exploitation of this vulnerability leads to a use-after-free condition, which can potentially be exploited to execute arbitrary code or cause a denial-of-service.

Reproduction

The vulnerability can be reproduced by unmounting a nilfs2 filesystem that has inodes left in the 'garbage_list'. This can be done using the syzbot reproducer, which triggers the issue by taking advantage of the modified inode dirtying process.

Remediation

Users can upgrade to the patched version of the Linux kernel where this vulnerability has been addressed.

Added: Sep 16, 2025, 6:01 PM
Updated: Sep 16, 2025, 6:01 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
1.3
exploitability
4.3
remediation
7.7
relevance
0.5
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.