{
  "id": "CVE-2026-64399",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-64399",
  "published_at": "2026-07-25T08:50:42.925Z",
  "title": "ksmbd: add permission checks for FSCTL_DUPLICATE_EXTENTS_TO_FILE",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 9.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/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\nksmbd: add permission checks for FSCTL_DUPLICATE_EXTENTS_TO_FILE\n\nThe FSCTL_DUPLICATE_EXTENTS_TO_FILE arm of smb2_ioctl() overwrites the\ndestination file's data via vfs_clone_file_range() with neither the\nshare-level KSMBD_TREE_CONN_FLAG_WRITABLE check nor a per-handle\nfp-\u003edaccess check that the other write-bearing arms carry. A client can\noverwrite destination data on a read-only share, or from a handle opened\nwith only FILE_WRITE_ATTRIBUTES (which still yields an FMODE_WRITE filp).\nFILE_WRITE_ATTRIBUTES-only destination handle overwrote the file's data via\nthe clone. Add both checks, matching the FSCTL_SET_SPARSE permission fix;\nrequire FILE_WRITE_DATA since this writes data.",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 9.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= eb817368f50c1cbe1bd07044124aad7db6330e3a, \u003c bf460ad5958d506492de4524a656439da3f99c51",
          "\u003e= eb817368f50c1cbe1bd07044124aad7db6330e3a, \u003c 620d133d469295ee7c017ca6aafac335f65c4a5a",
          "\u003e= eb817368f50c1cbe1bd07044124aad7db6330e3a, \u003c 9b9cf7e65cbeaae1b6636144bacee611cdd7a5d6",
          "\u003e= eb817368f50c1cbe1bd07044124aad7db6330e3a, \u003c baae7b39673ec21073a25e3d14f8feaada01d5df",
          "\u003e= eb817368f50c1cbe1bd07044124aad7db6330e3a, \u003c c917e4522d251071dde9871b9142d8ea1186ebfe",
          "\u003e= eb817368f50c1cbe1bd07044124aad7db6330e3a, \u003c 388e4139db27a9e3612c9d356b826f5b1ff6a9e3"
        ],
        "fixed_in": [
          "bf460ad5958d506492de4524a656439da3f99c51",
          "620d133d469295ee7c017ca6aafac335f65c4a5a",
          "9b9cf7e65cbeaae1b6636144bacee611cdd7a5d6",
          "baae7b39673ec21073a25e3d14f8feaada01d5df",
          "c917e4522d251071dde9871b9142d8ea1186ebfe",
          "388e4139db27a9e3612c9d356b826f5b1ff6a9e3"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "5.15"
        ],
        "fixed_in": [
          "0",
          "6.1.178",
          "6.6.145",
          "6.12.96",
          "6.18.39",
          "7.1.4",
          "7.2"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to bf460ad5958d506492de4524a656439da3f99c51 or 620d133d469295ee7c017ca6aafac335f65c4a5a or 9b9cf7e65cbeaae1b6636144bacee611cdd7a5d6 or baae7b39673ec21073a25e3d14f8feaada01d5df or c917e4522d251071dde9871b9142d8ea1186ebfe or 388e4139db27a9e3612c9d356b826f5b1ff6a9e3 or later.",
      "Upgrade Linux to 0 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": []
}
