CVE-2026-139275

pNFS/flexfiles: make pg_init retry loops killable

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

pNFS/flexfiles: make pg_init retry loops killable

When a task is killed while the pNFS client connects to a data server,
nfs4_pnfs_ds_connect() fails with -ERESTARTSYS. If the layout has
FF_FLAGS_NO_IO_THRU_MDS set, ff_layout_pg_init_read() cannot fall back
to the MDS and retries after an uninterruptible ssleep. As the fatal
signal stays pending, every new connect attempt is aborted the same
way and the task loops forever without returning to user space:

# grep -E 'SigPnd|ShdPnd' /proc/156021/status
SigPnd: 0000000000000100
ShdPnd: 0000000000000100

# cat /proc/156021/stack
msleep+0x2e/0x50
ff_layout_pg_init_read+0x267/0x310 [nfs_layout_flexfiles]
__nfs_pageio_add_request+0x1c1/0x480 [nfs]
nfs_pageio_add_request+0x21d/0x2c0 [nfs]
nfs_read_add_folio+0x143/0x200 [nfs]
nfs_readahead+0x204/0x290 [nfs]
read_pages+0x62/0x230
page_cache_ra_unbounded+0x136/0x180
filemap_get_pages+0xf2/0x350
filemap_read+0xd5/0x320
nfs_file_read+0x6d/0xc0 [nfs]
vfs_read+0x24f/0x3a0
__x64_sys_pread64+0x90/0xc0
do_syscall_64+0x5f/0xe0

Previous attempt propagates the error from nfs4_ff_layout_prepare_ds(), but
only ff_layout_{read,write}_pagelist() look at it. The pg_init functions
test IS_ERR() and retry on any error.

Check for a fatal signal or an exiting task before sleeping in
ff_layout_pg_init_read() and ff_layout_pg_init_write() and fail the I/O
instead of retrying.

Analysis

AI-generated

Technical impact

The kernel code that initializes pNFS Flexfiles layout pages contains an infinite retry loop when a kill signal is pending. If a task is killed while the client attempts to connect to a data server, the function ff_layout_pg_init_read fails with -ERESTARTSYS, and because a fatal signal remains pending the code retries after an uninterruptible sleep. This causes the task to spin forever, never returning to user space, effectively stalling the process. This is a CWE-571 vulnerability where failure to react to a system signal leads to an infinite retry loop. The likely attack vector is local; an attacker would need the ability to terminate a process that uses the pNFS Flexfiles subsystem or to exploit a scenario where such a kill occurs. The result is a local denial of service as the offending task is permanently hung.

Affected Systems

All Linux kernel builds that include the pNFS Flexfiles client are affected. Specific version information is not provided in the CVE record, so administrators should assume earlier kernels are potentially vulnerable until a patched kernel is deployed.

Risk and Exploitability

The vulnerability lacks publicly known exploits and the EPSS score is not available, so it is unclear how frequently it might be targeted. The CVSS score is not supplied, but the effect of an unresponsive, infinitely retrying task constitutes a high-impact denial of service that could disrupt applications and services relying on NFS. Administrators should consider the patch a priority to prevent a local process from being uncontrollably stuck.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that includes the patch for CVE-2026-139275.
  • Rebuild or reload the pNFS Flexfiles client component if a full kernel upgrade is not possible.
  • Monitor active NFS processes for hangs and limit the use of kill signals against them.

Generated by OpenCVE AI on December 1, 2026 at 10:46 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-571
Type Values Removed Values Added
Weaknesses CWE-571
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: pNFS/flexfiles: make pg_init retry loops killable When a task is killed while the pNFS client connects to a data server, nfs4_pnfs_ds_connect() fails with -ERESTARTSYS. If the layout has FF_FLAGS_NO_IO_THRU_MDS set, ff_layout_pg_init_read() cannot fall back to the MDS and retries after an uninterruptible ssleep. As the fatal signal stays pending, every new connect attempt is aborted the same way and the task loops forever without returning to user space: # grep -E 'SigPnd|ShdPnd' /proc/156021/status SigPnd: 0000000000000100 ShdPnd: 0000000000000100 # cat /proc/156021/stack msleep+0x2e/0x50 ff_layout_pg_init_read+0x267/0x310 [nfs_layout_flexfiles] __nfs_pageio_add_request+0x1c1/0x480 [nfs] nfs_pageio_add_request+0x21d/0x2c0 [nfs] nfs_read_add_folio+0x143/0x200 [nfs] nfs_readahead+0x204/0x290 [nfs] read_pages+0x62/0x230 page_cache_ra_unbounded+0x136/0x180 filemap_get_pages+0xf2/0x350 filemap_read+0xd5/0x320 nfs_file_read+0x6d/0xc0 [nfs] vfs_read+0x24f/0x3a0 __x64_sys_pread64+0x90/0xc0 do_syscall_64+0x5f/0xe0 Previous attempt propagates the error from nfs4_ff_layout_prepare_ds(), but only ff_layout_{read,write}_pagelist() look at it. The pg_init functions test IS_ERR() and retry on any error. Check for a fatal signal or an exiting task before sleeping in ff_layout_pg_init_read() and ff_layout_pg_init_write() and fail the I/O instead of retrying.
Title pNFS/flexfiles: make pg_init retry loops killable
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

No weakness.

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:33 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Nov 30, 2026, 2:18 PM