Linux Kernel NFS Layout State ID Release Vulnerability on Lease Set Failure

Vulnerability

A vulnerability in the Linux kernel's NFS server implementation can lead to a use-after-free issue. When a layout state ID (stid) is allocated and then a lease set operation fails, the state ID is freed without properly removing it from the IDR (Identifier Radix Tree) management. This leaves a dangling pointer that can be accessed by subsequent operations, potentially causing memory corruption. The vulnerability arises because the error handling path does not follow the correct procedure for releasing the state ID, leading to a situation where freed memory can be incorrectly accessed.

Impact

Exploitation of this vulnerability can cause a use-after-free condition, where a pointer to freed memory is dereferenced, potentially leading to memory corruption.

Reproduction

The vulnerability can be reproduced by allocating a layout state ID in the NFS server, then triggering a failure in the lease set operation. This failure will cause the state ID to be freed without removing it from the IDR management, creating a dangling pointer that can be accessed by other operations.

Remediation

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

Added: Jul 19, 2026, 1:04 PM
Updated: Jul 19, 2026, 1:04 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
5.3
remediation
7.7
relevance
9.7
threat
4.8
urgency
2.9
incentive
0.0

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