CVE-2026-64298

Source
https://cve.org/CVERecord?id=CVE-2026-64298
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64298.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-64298
Downstream
Published
2026-07-25T08:49:35.101Z
Modified
2026-07-28T04:03:03.632094983Z
Severity
  • 7.1 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H CVSS Calculator
Summary
NFSv4: include MAY_WRITE in open permission mask for O_TRUNC
Details

In the Linux kernel, the following vulnerability has been resolved:

NFSv4: include MAYWRITE in open permission mask for OTRUNC

POSIX requires write permission to truncate a file, so an open() that specifies OTRUNC must be authorized for write access regardless of the OACCMODE access mode.

nfsopenpermissionmask() builds the access mask passed to nfsmayopen(), which is the local authorization gate for OPENs the client serves itself from a cached write delegation via the canopendelegated() path in nfs4tryopencached(). The mask is derived from OACCMODE alone, so an open(ORDONLY | OTRUNC) against a file the caller cannot write requests only MAYREAD 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 MAYWRITE in the mask whenever OTRUNC is set so the local check matches the access the server would have enforced.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64298.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
af22f94ae02ab9dd4fd7fe628c8434a59cc293be
Fixed
4817c8974315b666e895b7d1bb83cd3664c323b1
Fixed
cb148a2762d644bff1894728e8835a9a4b84f9ea
Fixed
30fdf4df6c3c00efec947e4ddf97f0fdd4473628
Fixed
22c1fd1355ad4ca27aa7f0fa02719122dd92d9de
Fixed
6bd7d0a06b53c4e797e1a9cea0d2d41aa1b26230
Fixed
a937e92c1d00534b5c2e3e9f4381b7e988180797
Fixed
e36501b7d4abdcd6d69a7cb901b2f286b7a3d041
Fixed
5140f099ecd8a2f2808b7f7b720ee1bad8468974

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64298.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.6.24
Fixed
5.10.261
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.212
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.178
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.145
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.96
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.39
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.1.4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64298.json"