Linux Kernel pNFS Use-After-Free Vulnerability in Layout Update

Vulnerability

A use-after-free vulnerability has been fixed in the Linux kernel's pNFS implementation. The issue arose in the 'pnfs_update_layout()' function when the 'NFS_LAYOUT_RETURN' branch was executed. The function first called 'pnfs_prepare_to_retry_layoutget(lo)', and if successful, it then called 'pnfs_put_layout_hdr(lo)' before triggering a tracepoint that still referenced 'lo'. This sequence created a use-after-free condition when the tracepoint accessed 'lo's fields. The vulnerability has been addressed by rearranging the order of operations, moving the tracepoint call before 'pnfs_put_layout_hdr(lo)'.

Impact

Exploitation of this vulnerability could lead to a use-after-free condition, potentially allowing for memory corruption or arbitrary code execution.

Reproduction

To reproduce this vulnerability, trigger the 'NFS_LAYOUT_RETURN' branch in the 'pnfs_update_layout()' function. This can be done by manipulating the pNFS layout return process, which will cause the function to reference a layout object 'lo' that has already been freed, creating a use-after-free condition.

Remediation

Users can upgrade to the latest version of the Linux kernel where this vulnerability has been fixed. Instructions for downloading the patched version are available on the official Linux kernel website.

Added: Jul 19, 2026, 12:51 PM
Updated: Jul 19, 2026, 12:51 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
0.6
exploitability
4.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.