CVE-2026-64298
NFSv4: include MAY_WRITE in open permission mask for O_TRUNC
Reported by linux · Published July 25, 2026
In the Linux kernel, the following vulnerability has been resolved: NFSv4: include MAY_WRITE in open permission mask for O_TRUNC POSIX requires write permission to truncate a file, so an open() that specifies O_TRUNC must be authorized for write access regardless of the O_ACCMODE access mode. nfs_open_permission_mask() builds the access mask passed to nfs_may_open(), which is the local authorization gate for OPENs the client serves itself from a cached write delegation via the can_open_delegated() path in nfs4_try_open_cached(). The mask is derived from O_ACCMODE alone, so an open(O_RDONLY | O_TRUNC) against a file the caller cannot write requests only MAY_READ and passes the local check. The OPEN is then satisfied locally and the truncation is issued to the server as a SETATTR(size=0) over the delegation stateid, which the server accepts under standard write-delegation semantics. POSIX requires that this open fail with EACCES. Include MAY_WRITE in the mask whenever O_TRUNC is set so the local check matches the access the server would have enforced.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-debug-devel | errata.rockylinux.org | 5.14.0-687.44.1.el9 |
| kernel-devel | errata.rockylinux.org | 6.12.0-211.50.1.el10 |
| kernel6.12-tools-devel | Amazon Linux | 1:6.12.100-125.179.amzn2023 |
| bpftool-debuginfo | errata.rockylinux.org | 4.18.0-553.159.1.el8 |
| kernel-rt-modules-extra | errata.rockylinux.org | 6.12.0-211.50.1.el10 |
| kernel-debug-debuginfo | errata.rockylinux.org | 6.12.0-211.50.1.el10 |
| kernel-tools-debuginfo | errata.rockylinux.org | 5.14.0-687.44.1.el9 |
| kernel-64k-debug-modules-core | errata.rockylinux.org | 6.12.0-211.50.1.el10 |
| kernel-modules | errata.rockylinux.org | 4.18.0-553.159.1.el8 |
| kernel-rt-debug | errata.rockylinux.org | 6.12.0-211.50.1.el10 |
| libperf-debuginfo | errata.rockylinux.org | 6.12.0-211.50.1.el10, 5.14.0-687.44.1.el9 |
| kernel-tools | errata.rockylinux.org | 5.14.0-687.44.1.el9 |
37 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | af22f94ae02ab9dd4fd7fe628c8434a59cc293be, af22f94ae02ab9dd4fd7fe628c8434a59cc293be, af22f94ae02ab9dd4fd7fe628c8434a59cc293be |
| Linux | Linux | 2.6.24, 0, 5.10.261 |
| amazon:2023 | kernel6.12-tools-devel | 0 |
| amazon:2023 | python3-perf6.18 | 0 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | kernel6.12-tools | 0 |
| Linux | Linux | 6.12.96, 6.6.145, 6.1.178 |
| amazon:2023 | kernel6.18 | 0 |
| amazon:2023 | kernel6.18-tools | 0 |
| amazon:2023 | kernel-livepatch-6.12.100-125.179 | 0 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | kernel-livepatch-6.1.180-225.360 | 0 |
| amazon:2023 | kernel6.12-devel | 0 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | kernel6.18-modules-extra | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| chainguard | linux-gcp-6.18 | 0 |
| amazon:2023 | perf6.12 | 0 |
| amazon:2023 | kernel-tools | 0 |
…and 19 more
Timeline
- Jul 25, 2026 EPSS Score (11 in total, the first dated here)
- Jul 25, 2026 Coalition ESS Score
- Jul 25, 2026 CVE Published
- Jul 26, 2026 Security Advisory (24 in total, the first dated here)
- Aug 9, 2026 CVE Updated
- Aug 12, 2026 Distribution Patch (29 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-64298
vulnetix vdb fixes CVE-2026-64298
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-64298/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart