{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "406fad7698f5bf21ab6b5ca195bf4b9e0b3990ed"
            },
            {
              "fixed": "0940108d27c6995e02819ff832be11892f0b208b"
            },
            {
              "fixed": "8a220d1c312c66194f4a33dd52d1fba42bc2b341"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "6.15.0"
            },
            {
              "fixed": "7.0.11"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64040.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\ncachefiles: Fix error return when vfs_mkdir() fails\n\nWhen vfs_mkdir() fails, the error code is not extracted from the\nreturned error pointer. This causes mkdir_error to be reached with\nret=0, which leads to returning ERR_PTR(0) (NULL) instead of a\nproper error pointer.\n\nFix this by extracting the error code from the error pointer when\nvfs_mkdir() fails.",
  "id": "CVE-2026-64040",
  "modified": "2026-07-21T03:42:13.079890036Z",
  "published": "2026-07-19T15:39:27.348Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/0940108d27c6995e02819ff832be11892f0b208b"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/8a220d1c312c66194f4a33dd52d1fba42bc2b341"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64040.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-64040"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.8.0",
  "summary": "cachefiles: Fix error return when vfs_mkdir() fails"
}