{
  "id": "CVE-2026-89641",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-89641",
  "published_at": "2026-09-11T19:45:34.036Z",
  "title": "cifs: clear tcon after cifsFileInfo_put() in cifs_file_set_size()",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/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\ncifs: clear tcon after cifsFileInfo_put() in cifs_file_set_size()\n\nWhen the else branch of cifs_file_set_size() finds a writable file handle\nvia find_writable_file(), it borrows tcon and server from the handle's\ntlink, attempts the handle-based set_file_size() RPC, and then releases\nthe handle with cifsFileInfo_put().\n\nIf set_file_size() fails, execution falls through to the path-based\nfallback, which reuses the borrowed tcon and server under the\n\"if (tcon == NULL)\" guard.  Since tcon is not NULL at that point, the\nguard is skipped.  If cifsFileInfo_put() dropped the last reference on a\ntlink that was already removed from the tlink tree (TCON_LINK_IN_TREE\ncleared, as happens during reconnection or session teardown),\ncifs_put_tlink() will have freed tcon; the subsequent set_path_size()\ncall is then a use-after-free.\n\nSetting tcon = NULL after cifsFileInfo_put() causes the existing guard\nto take the cifs_sb_tlink() path, which acquires a fresh reference for\nthe path-based operation or fails cleanly if the session is gone.",
  "cvss_by_source": {
    "cna": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 110fee6b9bb58a5c50047fc2594d415f741b591e, \u003c 4f18c9e7ee464aaae5cd9fccdb943b3fcb4655d4",
          "\u003e= 110fee6b9bb58a5c50047fc2594d415f741b591e, \u003c 4bea15d9c7683218f57b8c1f5f0aa75cab76af8d",
          "\u003e= 110fee6b9bb58a5c50047fc2594d415f741b591e, \u003c b96db32fed8dfb2478d7c208f89bf383beed1535"
        ],
        "fixed_in": [
          "4f18c9e7ee464aaae5cd9fccdb943b3fcb4655d4",
          "4bea15d9c7683218f57b8c1f5f0aa75cab76af8d",
          "b96db32fed8dfb2478d7c208f89bf383beed1535"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.18"
        ],
        "fixed_in": [
          "0",
          "6.18.50",
          "7.2.4",
          "7.3"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 4f18c9e7ee464aaae5cd9fccdb943b3fcb4655d4 or 4bea15d9c7683218f57b8c1f5f0aa75cab76af8d or b96db32fed8dfb2478d7c208f89bf383beed1535 or later.",
      "Upgrade Linux to 0 or 6.18.50 or 7.2.4 or 7.3 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
