{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "433042a91f9373241307725b52de573933ffedbf"
            },
            {
              "fixed": "3409aedf3c81a810243da94164f6621c9d205c98"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "4f1fffa2376922f3d1d506e49c0fd445b023a28e"
            },
            {
              "fixed": "1665f25b1dea30bf2d02e16245d203a944c9d994"
            },
            {
              "fixed": "00b0fa425941438b664950a8ee65dfba2def4336"
            },
            {
              "fixed": "3317a5d015fca976475aa71df224056777316fde"
            },
            {
              "fixed": "9647492b5e41954be59d5157eddbcd4cdc1656f7"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "6.6.32"
            },
            {
              "fixed": "6.6.145"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "6.6.145"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.7.0"
            },
            {
              "fixed": "6.12.96"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.8.0"
            },
            {
              "fixed": "6.18.39"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "7.1.4"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64387.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: fix query directory replay double-free\n\nA response-bearing attempt can return a replayable error and free its\nresponse buffer. If SMB2_query_directory_init() fails before the next send,\ncleanup retains the previous buffer type and frees that response again.\n\nReset response bookkeeping before each attempt to prevent the stale free.",
  "id": "CVE-2026-64387",
  "modified": "2026-07-28T03:55:48.125209645Z",
  "published": "2026-07-25T08:50:35.543Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/00b0fa425941438b664950a8ee65dfba2def4336"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/1665f25b1dea30bf2d02e16245d203a944c9d994"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/3317a5d015fca976475aa71df224056777316fde"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/3409aedf3c81a810243da94164f6621c9d205c98"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/9647492b5e41954be59d5157eddbcd4cdc1656f7"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64387.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-64387"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "smb: client: fix query directory replay double-free"
}