CVE-2026-64298·Kernel vulnerability
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
- high
- Software
- Kernel
- Fixed in
- 7.1.4
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.16% — higher than 5% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Read the two together. CVE-2026-64298 scores 7.1 on CVSS, so a successful attack would be serious — but at 0.16%, almost nobody is currently attempting it. That is a different situation from a flaw under mass exploitation, and it is usually the difference between patching on your next maintenance window and patching tonight.
Affected versions
From: 6.19
Until: 7.1.4
Fixed in: 7.1.4
How to fix this CVE
Update your Linux kernel to version 7.1.4 or later to resolve a permission validation flaw in NFSv4 file truncation operations. The vulnerability allows users without write permissions to truncate files through open(O_RDONLY | O_TRUNC) calls when using cached write delegations, violating POSIX security requirements. Apply this patch immediately if your systems use NFSv4 and allow local user access.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Run `uname -r` to check the current kernel version and confirm it falls within 6.19 to 7.1.3
- Check if NFSv4 mounts are active with `mount | grep nfs4` to determine if the vulnerability is exposed in your environment
- Search system audit logs for truncation attempts with incorrect permissions using `ausearch -m open -i | grep O_TRUNC` if auditd is enabled
- Verify the patch was applied by confirming kernel version is 7.1.4 or later with `uname -r` and checking dmesg for recent kernel upgrade messages
FAQ
What is CVE-2026-64298?
A permission validation bypass in Linux kernel's NFSv4 implementation where users can truncate files they don't have write access to by combining O_RDONLY with O_TRUNC flags when the server uses cached write delegations. This violates POSIX security semantics.
Is CVE-2026-64298 being actively exploited?
No, this vulnerability is not listed in CISA's Known Exploited Vulnerabilities catalog and no public exploits are currently available.
What versions of Kernel are affected by CVE-2026-64298?
Linux kernel versions 6.19 through 7.1.3 are vulnerable. The fix is included in kernel 7.1.4 and later.
How do I check if my server is vulnerable to CVE-2026-64298?
Run `uname -r` to get your kernel version. If it shows a version between 6.19 and 7.1.3, and your system has NFSv4 mounts (check with `mount | grep nfs4`), your system is vulnerable.
Does Defensia detect CVE-2026-64298?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2026-64298 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/22c1fd1355ad4ca27aa7f0fa02719122dd92d9de
- https://git.kernel.org/stable/c/30fdf4df6c3c00efec947e4ddf97f0fdd4473628
- https://git.kernel.org/stable/c/4817c8974315b666e895b7d1bb83cd3664c323b1
- https://git.kernel.org/stable/c/5140f099ecd8a2f2808b7f7b720ee1bad8468974
- https://git.kernel.org/stable/c/6bd7d0a06b53c4e797e1a9cea0d2d41aa1b26230
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-64298. Free for 1 server.
Get started free