CVE-2026-64298
Received Received - Intake

NFSv4 Permission Bypass via Missing MAY_WRITE in O_TRUNC

Vulnerability report for CVE-2026-64298, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-25

Last updated on: 2026-07-25

Assigner: kernel.org

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-25
Last Modified
2026-07-25
Generated
2026-07-25
AI Q&A
2026-07-25
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
linux linux_kernel *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability in the Linux kernel involves incorrect permission handling for file truncation in NFSv4. When a file is opened with O_TRUNC flag, the system must check for write permission regardless of the access mode. The current implementation only checks O_ACCMODE, allowing unauthorized truncation of read-only files.

Detection Guidance

This vulnerability affects the Linux kernel's NFSv4 implementation. Detection requires checking if your system is running a vulnerable kernel version. Use commands like 'uname -a' to check the kernel version and 'dmesg | grep nfs' to look for NFS-related errors. If you are running a kernel version prior to the fix, your system may be vulnerable.

Impact Analysis

This could allow attackers to truncate files they don't have write access to, potentially causing data loss or corruption. It violates POSIX standards by permitting unauthorized file modification through improper permission checks.

Mitigation Strategies

Immediately update your Linux kernel to the latest stable version that includes the fix for this vulnerability. If updating is not immediately possible, consider disabling NFSv4 or restricting access to NFS shares until the update is applied. Monitor vendor advisories for kernel updates specific to your distribution.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-64298. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart