{
  "id": "CVE-2026-64298",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-64298",
  "published_at": "2026-07-25T08:49:35.101Z",
  "title": "NFSv4: include MAY_WRITE in open permission mask for O_TRUNC",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.1,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\nNFSv4: include MAY_WRITE in open permission mask for O_TRUNC\n\nPOSIX requires write permission to truncate a file, so an open() that\nspecifies O_TRUNC must be authorized for write access regardless of the\nO_ACCMODE access mode.\n\nnfs_open_permission_mask() builds the access mask passed to\nnfs_may_open(), which is the local authorization gate for OPENs the\nclient serves itself from a cached write delegation via the\ncan_open_delegated() path in nfs4_try_open_cached().  The mask is\nderived from O_ACCMODE alone, so an open(O_RDONLY | O_TRUNC) against a\nfile the caller cannot write requests only MAY_READ and passes the\nlocal check.  The OPEN is then satisfied locally and the truncation is\nissued to the server as a SETATTR(size=0) over the delegation stateid,\nwhich the server accepts under standard write-delegation semantics.\nPOSIX requires that this open fail with EACCES.\n\nInclude MAY_WRITE in the mask whenever O_TRUNC is set so the local\ncheck matches the access the server would have enforced.",
  "cwe": "CWE-862",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.2:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.2:rc2:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.1
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= af22f94ae02ab9dd4fd7fe628c8434a59cc293be, \u003c 4817c8974315b666e895b7d1bb83cd3664c323b1",
          "\u003e= af22f94ae02ab9dd4fd7fe628c8434a59cc293be, \u003c cb148a2762d644bff1894728e8835a9a4b84f9ea",
          "\u003e= af22f94ae02ab9dd4fd7fe628c8434a59cc293be, \u003c 30fdf4df6c3c00efec947e4ddf97f0fdd4473628",
          "\u003e= af22f94ae02ab9dd4fd7fe628c8434a59cc293be, \u003c 22c1fd1355ad4ca27aa7f0fa02719122dd92d9de",
          "\u003e= af22f94ae02ab9dd4fd7fe628c8434a59cc293be, \u003c 6bd7d0a06b53c4e797e1a9cea0d2d41aa1b26230",
          "\u003e= af22f94ae02ab9dd4fd7fe628c8434a59cc293be, \u003c a937e92c1d00534b5c2e3e9f4381b7e988180797",
          "\u003e= af22f94ae02ab9dd4fd7fe628c8434a59cc293be, \u003c e36501b7d4abdcd6d69a7cb901b2f286b7a3d041",
          "\u003e= af22f94ae02ab9dd4fd7fe628c8434a59cc293be, \u003c 5140f099ecd8a2f2808b7f7b720ee1bad8468974"
        ],
        "fixed_in": [
          "4817c8974315b666e895b7d1bb83cd3664c323b1",
          "cb148a2762d644bff1894728e8835a9a4b84f9ea",
          "30fdf4df6c3c00efec947e4ddf97f0fdd4473628",
          "22c1fd1355ad4ca27aa7f0fa02719122dd92d9de",
          "6bd7d0a06b53c4e797e1a9cea0d2d41aa1b26230",
          "a937e92c1d00534b5c2e3e9f4381b7e988180797",
          "e36501b7d4abdcd6d69a7cb901b2f286b7a3d041",
          "5140f099ecd8a2f2808b7f7b720ee1bad8468974"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "2.6.24"
        ],
        "fixed_in": [
          "0",
          "5.10.261",
          "5.15.212",
          "6.1.178",
          "6.6.145",
          "6.12.96",
          "6.18.39",
          "7.1.4",
          "7.2"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 4817c8974315b666e895b7d1bb83cd3664c323b1 or cb148a2762d644bff1894728e8835a9a4b84f9ea or 30fdf4df6c3c00efec947e4ddf97f0fdd4473628 or 22c1fd1355ad4ca27aa7f0fa02719122dd92d9de or 6bd7d0a06b53c4e797e1a9cea0d2d41aa1b26230 or a937e92c1d00534b5c2e3e9f4381b7e988180797 or e36501b7d4abdcd6d69a7cb901b2f286b7a3d041 or 5140f099ecd8a2f2808b7f7b720ee1bad8468974 or later.",
      "Upgrade Linux to 0 or 5.10.261 or 5.15.212 or 6.1.178 or 6.6.145 or 6.12.96 or 6.18.39 or 7.1.4 or 7.2 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
