VDB

CVE-2026-64298

CVE-2026-64298 PUBLISHED CVSS 7.1 HIGH

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.

PackageEcosystemFixed in
kernel-debug-develerrata.rockylinux.org5.14.0-687.44.1.el9
kernel-develerrata.rockylinux.org6.12.0-211.50.1.el10
kernel6.12-tools-develAmazon Linux1:6.12.100-125.179.amzn2023
bpftool-debuginfoerrata.rockylinux.org4.18.0-553.159.1.el8
kernel-rt-modules-extraerrata.rockylinux.org6.12.0-211.50.1.el10
kernel-debug-debuginfoerrata.rockylinux.org6.12.0-211.50.1.el10
kernel-tools-debuginfoerrata.rockylinux.org5.14.0-687.44.1.el9
kernel-64k-debug-modules-coreerrata.rockylinux.org6.12.0-211.50.1.el10
kernel-moduleserrata.rockylinux.org4.18.0-553.159.1.el8
kernel-rt-debugerrata.rockylinux.org6.12.0-211.50.1.el10
libperf-debuginfoerrata.rockylinux.org6.12.0-211.50.1.el10, 5.14.0-687.44.1.el9
kernel-toolserrata.rockylinux.org5.14.0-687.44.1.el9

37 more packages have a fixed version. See every fix in Lookup.

Risk scores

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

Affected products

VendorProductVersions
LinuxLinuxaf22f94ae02ab9dd4fd7fe628c8434a59cc293be, af22f94ae02ab9dd4fd7fe628c8434a59cc293be, af22f94ae02ab9dd4fd7fe628c8434a59cc293be
LinuxLinux2.6.24, 0, 5.10.261
amazon:2023kernel6.12-tools-devel0
amazon:2023python3-perf6.180
amazon:2023kernel-headers0
amazon:2023kernel6.12-tools0
LinuxLinux6.12.96, 6.6.145, 6.1.178
amazon:2023kernel6.180
amazon:2023kernel6.18-tools0
amazon:2023kernel-livepatch-6.12.100-125.1790
amazon:2023kernel0
amazon:2023kernel-livepatch-6.1.180-225.3600
amazon:2023kernel6.12-devel0
amazon:2023kernel-devel0
amazon:2023kernel6.18-modules-extra0
amazon:2023kernel6.12-modules-extra0
amazon:2023kernel-tools-devel0
chainguardlinux-gcp-6.180
amazon:2023perf6.120
amazon:2023kernel-tools0

…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

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›