Bug 2507208 (CVE-2026-64298) - CVE-2026-64298 kernel: NFSv4: include MAY_WRITE in open permission mask for O_TRUNC
Summary: CVE-2026-64298 kernel: NFSv4: include MAY_WRITE in open permission mask for O...
Keywords:
Status: NEW
Alias: CVE-2026-64298
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-07-25 10:10 UTC by OSIDB Bzimport
Modified: 2026-09-23 05:56 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2026:61887 0 None None None 2026-09-01 07:31:11 UTC
Red Hat Product Errata RHSA-2026:63013 0 None None None 2026-09-03 04:02:07 UTC
Red Hat Product Errata RHSA-2026:63014 0 None None None 2026-09-03 04:16:22 UTC
Red Hat Product Errata RHSA-2026:63129 0 None None None 2026-09-04 00:53:09 UTC

Description OSIDB Bzimport 2026-07-25 10:10:42 UTC
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.

Comment 3 errata-xmlrpc 2026-09-01 07:31:10 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10

Via RHSA-2026:61887 https://access.redhat.com/errata/RHSA-2026:61887

Comment 4 errata-xmlrpc 2026-09-03 04:02:06 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2026:63013 https://access.redhat.com/errata/RHSA-2026:63013

Comment 5 errata-xmlrpc 2026-09-03 04:16:21 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2026:63014 https://access.redhat.com/errata/RHSA-2026:63014

Comment 6 errata-xmlrpc 2026-09-04 00:53:08 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2026:63129 https://access.redhat.com/errata/RHSA-2026:63129


Note You need to log in before you can comment on or make changes to this bug.