CVE-2026-64298

NFSv4: include MAY_WRITE in open permission mask for O_TRUNC

7.1 high EPSS 0.15%

Published 25 Jul 2026 Updated 19 Oct 2026 CNA: Linux

Check your servers for CVE-2026-64298

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-64298 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

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.

Severity (CVSS)

7.1 high CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
low: an attack works without special conditions
Privileges required
low: the attacker needs an ordinary user account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality none, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.15%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 4.13% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 16 Oct 2026):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Weakness

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from af22f94ae02ab9dd4fd7fe628c8434a59cc293be, before 4817c8974315b666e895b7d1bb83cd3664c323b1
affected from af22f94ae02ab9dd4fd7fe628c8434a59cc293be, before cb148a2762d644bff1894728e8835a9a4b84f9ea
affected from af22f94ae02ab9dd4fd7fe628c8434a59cc293be, before 30fdf4df6c3c00efec947e4ddf97f0fdd4473628
affected from af22f94ae02ab9dd4fd7fe628c8434a59cc293be, before 22c1fd1355ad4ca27aa7f0fa02719122dd92d9de
affected from af22f94ae02ab9dd4fd7fe628c8434a59cc293be, before 6bd7d0a06b53c4e797e1a9cea0d2d41aa1b26230
affected from af22f94ae02ab9dd4fd7fe628c8434a59cc293be, before a937e92c1d00534b5c2e3e9f4381b7e988180797
affected from af22f94ae02ab9dd4fd7fe628c8434a59cc293be, before e36501b7d4abdcd6d69a7cb901b2f286b7a3d041
affected from af22f94ae02ab9dd4fd7fe628c8434a59cc293be, before 5140f099ecd8a2f2808b7f7b720ee1bad8468974
Other versions: unaffected
Linux
affected 2.6.24
unaffected before 2.6.24
unaffected from 5.10.261 up to and including 5.10.*
unaffected from 5.15.212 up to and including 5.15.*
unaffected from 6.1.178 up to and including 6.1.*
unaffected from 6.6.145 up to and including 6.6.*
unaffected from 6.12.96 up to and including 6.12.*
unaffected from 6.18.39 up to and including 6.18.*
unaffected from 7.1.4 up to and including 7.1.*
unaffected 7.2 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-64298 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-64298

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-64298
trivy image --scanners vuln IMAGE | grep CVE-2026-64298

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2026-64298 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.