CVE-2026-64059

Source
https://cve.org/CVERecord?id=CVE-2026-64059
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64059.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-64059
Downstream
Published
2026-07-19T15:39:39.607Z
Modified
2026-07-21T03:47:52.015187774Z
Summary
netfs: Fix folio->private handling in netfs_perform_write()
Details

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

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

Under some circumstances, netfsperformwrite() doesn't correctly manipulate folio->private between NULL, NETFSFOLIOCOPYTOCACHE, pointing to a group and pointing to a netfsfolio struct, leading to potential multiple attachments of private data with associated folio ref leaks and also leaks of netfsfolio 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 netfsgroup parameter, as that would be the case for a new folio. A filesystem should always specify netfsgroup 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 __netfssetgroup() would leak if called multiple times on the same folio from the "whole folio modify section".

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64059.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
8f52de0077ba3bf41e5d53d67a185700f41efce7
Fixed
7f040243c74d72b45b22246c7d9e621fbeab44ac
Fixed
551b5c71ee312ca7646ddb605231c1016e8cbb18
Fixed
0969ea8370bad0e4fb6131b6a7bed9e7ec522ac7
Fixed
ccde2ac757c713535b224233a296de40efe5212d

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64059.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.12.0
Fixed
6.12.92
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.34
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.0.11

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64059.json"