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

netfs: Fix folio->private handling in netfs_perform_write()

Under some circumstances, netfs_perform_write() doesn't correctly
manipulate folio->private between NULL, NETFS_FOLIO_COPY_TO_CACHE, pointing
to a group and pointing to a netfs_folio struct, leading to potential
multiple attachments of private data with associated folio ref leaks and
also leaks of netfs_folio structs or netfs_group refs.

Fix this by consolidating the place at which a folio is marked uptodate in
one place and having that look at what's attached to folio->private and
decide how to clean it up and then set the new group. Also, the content
shouldn't be flushed if group is NULL, even if a group is specified in the
netfs_group parameter, as that would be the case for a new folio. A
filesystem should always specify netfs_group or never specify netfs_group.

The Sashiko auto-review tool noted that it was theoretically possible that
the fpos >= ctx->zero_point section might leak if it modified a streaming
write folio. This is unlikely, but with a network filesystem, third party
changes can happen. It also pointed out that __netfs_set_group() would
leak if called multiple times on the same folio from the "whole folio
modify section".
Published: 2026-07-19
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The flaw lies in the netfs_perform_write implementation of the Linux kernel. Under certain write scenarios, the function fails to correctly update the folio->private reference, allowing the same private data to be attached multiple times and leaking folio references as well as netfs_folio or netfs_group objects. This leakage can deplete system resources, potentially causing instability or denial of service. The vulnerability is an improper resource management weakness leading to memory or reference counter exhaustion, which may also expose internal kernel structures if the leaked objects contain sensitive information.

Affected Systems

Affects the Linux kernel in all versions that include the buggy netfs_perform_write implementation before the fix. The vulnerability applies to any system running a Linux kernel where network filesystems that employ the netfs layer are active, regardless of distribution or vendor.

Risk and Exploitability

The EPSS score is below 1 %, indicating a very low probability of exploitation in the wild, and there are no known public exploits or KEV status. The weakness requires kernel execution privileges to trigger, so the impact is local. No remote attack surface is exposed. Although the technical severity is limited by the low EPSS, the potential for resource exhaustion warrants timely remediation.

Generated by OpenCVE AI on August 3, 2026 at 01:32 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to the latest official release that incorporates the netfs_perform_write fix (or apply the specific patch from commit 0969ea8370bad0e4fb6131b6a7bed9e7ec522ac7).
  • Reboot the system so the new kernel enters service.
  • After reboot, restart any network filesystem services such as nfsd or rpcbind to clear stale references and ensure the patched code is in use.

Generated by OpenCVE AI on August 3, 2026 at 01:32 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Ubuntu USN Ubuntu USN USN-8593-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8603-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8618-1 Linux kernel vulnerabilities
History

Sun, 26 Jul 2026 08:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-666
CWE-668

Tue, 21 Jul 2026 22:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-666
CWE-668

Tue, 21 Jul 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-911
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate


Sun, 19 Jul 2026 16:15:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: netfs: Fix folio->private handling in netfs_perform_write() Under some circumstances, netfs_perform_write() doesn't correctly manipulate folio->private between NULL, NETFS_FOLIO_COPY_TO_CACHE, pointing to a group and pointing to a netfs_folio struct, leading to potential multiple attachments of private data with associated folio ref leaks and also leaks of netfs_folio structs or netfs_group refs. Fix this by consolidating the place at which a folio is marked uptodate in one place and having that look at what's attached to folio->private and decide how to clean it up and then set the new group. Also, the content shouldn't be flushed if group is NULL, even if a group is specified in the netfs_group parameter, as that would be the case for a new folio. A filesystem should always specify netfs_group or never specify netfs_group. The Sashiko auto-review tool noted that it was theoretically possible that the fpos >= ctx->zero_point section might leak if it modified a streaming write folio. This is unlikely, but with a network filesystem, third party changes can happen. It also pointed out that __netfs_set_group() would leak if called multiple times on the same folio from the "whole folio modify section".
Title netfs: Fix folio->private handling in netfs_perform_write()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-07-19T15:39:39.607Z

Reserved: 2026-07-19T07:54:57.030Z

Link: CVE-2026-64059

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-07-19T00:00:00Z

Links: CVE-2026-64059 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T01:45:02Z

Weaknesses
  • CWE-911

    Improper Update of Reference Count