Linux Kernel File Handle Encoding Assertion Relaxation Vulnerability

Vulnerability

A vulnerability in the Linux kernel related to the encoding of file handles has been addressed. The issue arose because certain users of the 'exportfs_encode_fh()' function, including 'nfsd' and the 'name_to_handle_at(2)' syscall, were not properly handling failures in file handle encoding. This oversight led to incorrect WARN_ON() assertions when encoding failed. The vulnerability could be triggered with overlayfs, inotify, and drop_caches, and was also present in kernels prior to 6.6.

Impact

The vulnerability could lead to a denial-of-service condition by triggering incorrect assertions, potentially causing a kernel panic or similar disruption.

Reproduction

The vulnerability can be reproduced by using overlayfs mounted with the options 'index=on' and 'nfs_export=on', along with the 'inotify' feature and the 'drop_caches' command. This combination will trigger the relaxed assertion on file handle encoding failures.

Remediation

Users can apply the patch referenced in the Linux kernel Git repository to address this vulnerability.

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.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.