CVE-2026-139274

HighCVSS 7.0/10Last modified Dec 1, 2026

Description

In the Linux kernel, the following vulnerability has been resolved:

nfs/localio: pin UUIDs during global invalidation

nfs_localio_invalidate_clients() moves UUID nodes embedded in nfs_client objects to a private list, then walks that list without retaining the containing clients. Concurrent client teardown can free an entry that the iterator has already selected, causing a use-after-free.

Take a reference to each selected UUID under the namespace list lock. Keep this reference count in nfs_common, independently of cl_count, and have nfs_free_client() drain temporary UUID users before freeing the client. Releasing a UUID reference wakes waiting probes and signals completion when the last reference is dropped. It neither calls into nfs.ko nor performs final NFS client teardown in the NFSD invalidation context.

Keep the UUID on the namespace list until its files have been closed. When another thread is already disabling it, wait for that thread to finish unlinking it instead of repeatedly selecting the same head entry. The wait releases the UUID spinlock so file cleanup can make progress.

Append registrations in sequence order and capture the last sequence under the namespace list lock at the start of invalidation. Stop at that boundary so new registrations cannot indefinitely extend the sweep, even if its original last entry is removed concurrently.

Publish the LOCALIO association under the UUID and namespace list locks before making the entry visible to invalidation. A temporary UUID reference allows the handshake to drop the global lookup lock before taking the UUID lock in the documented order; recheck the lookup in case the probe was withdrawn. A new probe waits for temporary UUID users to drain, then rechecks the association before reusing the UUID. This keeps a transient invalidation reference from discarding the client's LOCALIO revalidation attempt. Withdraw pending probes before dropping the owner's UUID reference.

A deterministic same-base KASAN reproducer triggered the reported use-after-free on the unpatched tree. With this patch, the same controlled invalidation and teardown race completed without the target KASAN report or another selected kernel diagnostic. A separate all-live run recorded disable events for all 16 unique clients.

Test-only synchronization hooks verified that a second disabler waits for unlink after ->net is cleared and that client teardown waits for a temporary UUID reference to drain. NFSv4.2 and NFSv3 read, write, and unmount smoke tests, export-flush and I/O stress, NFSD restarts, network namespace lifecycle tests, and module unloads passed with KASAN and lockdep enabled.

A full x86_64 kernel and modules build with GCC 13.3, CONFIG_WERROR=y, NFS_FS=m, NFSD=m, and LOCALIO enabled completed without diagnostics. Module metadata showed that nfs_localio.ko depends only on sunrpc, while nfs.ko depends on lockd, nfs_localio, and sunrpc.

A separate NFS_FS=m, NFSD=y build also linked vmlinux successfully.

The vulnerability research and validation were conducted by members of the Tobabz team as part of the Best of the Best 15th program.

Metrics

CVSS 3.1 7.0/10CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

VendorProductVersions
LinuxLinux>= 085804110aa13eac7f763d8d5cfe3a8220e35222, < 30c3fc2bb5019783c88ffc21666b8e54f862ea9e; >= 085804110aa13eac7f763d8d5cfe3a8220e35222, < c50f364a2a534d00f72b997c58aa153c9ae70a60; >= 085804110aa13eac7f763d8d5cfe3a8220e35222, < 62e14699c4dfc98c514a44bf780678cf8622fc08
LinuxLinux6.14

References

Timeline

Published
Nov 30, 2026
Last modified
Dec 1, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-139275In the Linux kernel, the following vulnerability has been resolved: pNFS/flexfiles: make pg_init retry loops killable When a task is killeCVE-2026-139276In the Linux kernel, the following vulnerability has been resolved: f2fs: refresh pinned allocation boundary after resize Online shrink upCVE-2026-139277In the Linux kernel, the following vulnerability has been resolved: ALSA: pcm: Remove channel-map controls before freeing substreams A latCVE-2026-139278In the Linux kernel, the following vulnerability has been resolved: ALSA: pcmtest: Pin the module while pattern files are open The fill_paCVE-2026-139279In the Linux kernel, the following vulnerability has been resolved: netfilter: xt_dccp: handle reserved options as single-byte The DCCP UACVE-2026-139288.8Insufficient validation of untrusted input in Enterprise in Google Chrome prior to 150.0.7871.47 allowed a remote attacker to perform privilCVE-2026-1392807.1In the Linux kernel, the following vulnerability has been resolved: netfilter: nft_set_rbtree: narrow down range completion to anonymous seCVE-2026-1392819.1In the Linux kernel, the following vulnerability has been resolved: netfilter: nf_conntrack: avoid truncating IPv6 nexthdr offset find_preCVE-2026-139282In the Linux kernel, the following vulnerability has been resolved: octeontx2-af: Fix CQ enable state tracking after AQ writes Use the CQ CVE-2026-139283In the Linux kernel, the following vulnerability has been resolved: ALSA: oss: Keep emulation modules loaded until object teardown OSS proCVE-2026-139284In the Linux kernel, the following vulnerability has been resolved: ALSA: pcm: Protect the unregister notifier traversal snd_pcm_free() trCVE-2026-139285In the Linux kernel, the following vulnerability has been resolved: gpiolib: fix memory leak in gpiod_set_array_value_complex() EPERM error
CVE-2026-139274: High severity, CVSS 7.0 | Vulnix