{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "4ecce920e13ace16a5ba45efe8909946c28fb2ad"
            },
            {
              "fixed": "76c607b9353d377b1d1b11db50e743eee0ccf658"
            },
            {
              "fixed": "d64b6be5740ce230aca184d8d224c75d9866045d"
            },
            {
              "fixed": "929a85932d14190988f1eafd6ee8cc68d66ace0b"
            },
            {
              "fixed": "b784cd1c24d89bf71be2efe1e948ff7c03371e57"
            },
            {
              "fixed": "c37abc99bb3de3d3219ecef253d649f74117fd83"
            },
            {
              "fixed": "027a84ac6b50c12ef767c15abfc58aa865820e9e"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "4.11.0"
            },
            {
              "fixed": "6.1.178"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.2.0"
            },
            {
              "fixed": "6.6.145"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.7.0"
            },
            {
              "fixed": "6.12.97"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.40"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.1.5"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/72xxx/CVE-2026-72318.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\ncifs: validate DFS referral string offsets\n\nparse_dfs_referrals() validates that the response header and referral\narray fit in the received buffer, but each referral also contains string\noffsets supplied by the server.\n\nThose offsets are used to compute the DfsPath and NetworkAddress string\npointers without checking whether they still point inside the response\nbuffer. A malformed referral can therefore make the computed pointer\nexceed the end of the buffer. The resulting negative max_len is then\npassed to cifs_strndup_from_utf16(), and the non-Unicode path forwards it\nto kstrndup() as a size_t, allowing strnlen() to read out of bounds.\n\nValidate each string offset before deriving the string pointer.",
  "id": "CVE-2026-72318",
  "modified": "2026-08-16T03:31:32.050281202Z",
  "published": "2026-08-15T05:55:31.682Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/027a84ac6b50c12ef767c15abfc58aa865820e9e"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/76c607b9353d377b1d1b11db50e743eee0ccf658"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/929a85932d14190988f1eafd6ee8cc68d66ace0b"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/b784cd1c24d89bf71be2efe1e948ff7c03371e57"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/c37abc99bb3de3d3219ecef253d649f74117fd83"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/d64b6be5740ce230aca184d8d224c75d9866045d"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/72xxx/CVE-2026-72318.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-72318"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.9.0",
  "summary": "cifs: validate DFS referral string offsets"
}