GCVE Workshop - 22 September 2026 (14:00-18:00), Luxembourg Before The Vulnopticon Conference - Registration

CVE-2026-72368 (GCVE-0-2026-72368)

Vulnerability from cvelistv5 – Published: 2026-08-15 05:56 – Updated: 2026-08-17 05:43
VLAI
Title
cachefiles: Fix double unlock in nomem_d_alloc error path
Summary
In the Linux kernel, the following vulnerability has been resolved: cachefiles: Fix double unlock in nomem_d_alloc error path When start_creating() fails and returns -ENOMEM, it has already released the parent directory lock in __start_dirop(): static struct dentry *__start_dirop(...) { ... inode_lock_nested(dir, I_MUTEX_PARENT); dentry = lookup_one_qstr_excl(name, parent, lookup_flags); if (IS_ERR(dentry)) inode_unlock(dir); <-- Lock released on error return dentry; } However, the nomem_d_alloc error path in cachefiles_get_directory() unconditionally calls inode_unlock(d_inode(dir)) again, causing a double unlock that corrupts the rwsem state. This is a leftover from commit 7ab96df840e60 which replaced manual locking with start_creating() but failed to update the nomem_d_alloc path (while correctly updating mkdir_error and lookup_error paths).
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: 7ab96df840e60eb933abfe65fc5fe44e72f16dc0 , < 26757dac15175f2a42e3537f1ba86e62456d48f1 (git)
Affected: 7ab96df840e60eb933abfe65fc5fe44e72f16dc0 , < 8c256fba2b46020004201c500b2a1fbc707a33ef (git)
guessed Create a notification for this product.
Linux Linux Affected: 6.19
Unaffected: 0 , < 6.19 (semver)
Unaffected: 7.1.5 , ≤ 7.1.* (semver)
Unaffected: 7.2 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "fs/cachefiles/namei.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "26757dac15175f2a42e3537f1ba86e62456d48f1",
              "status": "affected",
              "version": "7ab96df840e60eb933abfe65fc5fe44e72f16dc0",
              "versionType": "git"
            },
            {
              "lessThan": "8c256fba2b46020004201c500b2a1fbc707a33ef",
              "status": "affected",
              "version": "7ab96df840e60eb933abfe65fc5fe44e72f16dc0",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "fs/cachefiles/namei.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.19"
            },
            {
              "lessThan": "6.19",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.1.*",
              "status": "unaffected",
              "version": "7.1.5",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.2",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.1.5",
                  "versionStartIncluding": "6.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.2",
                  "versionStartIncluding": "6.19",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ncachefiles: Fix double unlock in nomem_d_alloc error path\n\nWhen start_creating() fails and returns -ENOMEM, it has already\nreleased the parent directory lock in __start_dirop():\n\n    static struct dentry *__start_dirop(...)\n    {\n        ...\n        inode_lock_nested(dir, I_MUTEX_PARENT);\n        dentry = lookup_one_qstr_excl(name, parent, lookup_flags);\n        if (IS_ERR(dentry))\n            inode_unlock(dir);  \u003c-- Lock released on error\n        return dentry;\n    }\n\nHowever, the nomem_d_alloc error path in cachefiles_get_directory()\nunconditionally calls inode_unlock(d_inode(dir)) again, causing a\ndouble unlock that corrupts the rwsem state.\n\nThis is a leftover from commit 7ab96df840e60 which replaced manual\nlocking with start_creating() but failed to update the nomem_d_alloc\npath (while correctly updating mkdir_error and lookup_error paths)."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - The flaw is in cachefiles VFS directory creation reached only via local `/dev/cachefiles` ioctl/bind or local NFS/CIFS/9p fscache volume setup during mount, not from remote packet handling like nfsd or ksmbd.\nAC:L - Triggering requires only a `-ENOMEM` from `start_creating()` during `cachefiles_get_directory()`, which an attacker can reliably force with local memory pressure or repeated bind/mount attempts; no uncontrollable race or rare layout is needed once CACHEFILES is active.\nPR:L - Exploitation needs `CAP_SYS_ADMIN` to open `/dev/cachefiles` and bind the cache, or to mount a network filesystem with fscache while cachefilesd is running; both are obtainable in an unprivileged user namespace, not solely init-namespace root.\nUI:N - No separate victim action is required beyond attacker-controlled local steps (opening `/dev/cachefiles`, binding, or mounting with fscache under memory pressure); cachefilesd does not need a user to click or open a file.\nS:U - Corrupting a backing-directory inode rwsem affects kernel/VFS locking within the same host security boundary and does not cross VM, IOMMU, or container hypervisor isolation by itself.\nC:H - Double-unlocking the parent directory rwsem corrupts kernel lock state and can leave the inode lock inconsistent, enabling concurrent VFS access and memory corruption primitives that may disclose kernel memory under kernel guidance for lock corruption bugs.\nI:H - Rwsem corruption breaks directory serialization, allowing unsynchronized create/lookup/mkdir operations on cache backing storage and creating conditions for further VFS metadata corruption or control-flow manipulation consistent with high integrity impact.\nA:H - An extra `inode_unlock()` on an already-released rwsem corrupts lock owner/count state and commonly produces DEBUG_RWSEMS warnings, oopses, or kernel panics, matching high availability impact for kernel crash bugs."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-17T05:43:22.072Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/26757dac15175f2a42e3537f1ba86e62456d48f1"
        },
        {
          "url": "https://git.kernel.org/stable/c/8c256fba2b46020004201c500b2a1fbc707a33ef"
        }
      ],
      "title": "cachefiles: Fix double unlock in nomem_d_alloc error path",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-72368",
    "datePublished": "2026-08-15T05:56:05.329Z",
    "dateReserved": "2026-08-09T03:40:39.922Z",
    "dateUpdated": "2026-08-17T05:43:22.072Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-72368",
      "date": "2026-09-04",
      "epss": "0.00165",
      "percentile": "0.06021"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2026-72368\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2026-08-15T06:22:10.227\",\"lastModified\":\"2026-08-17T06:18:41.010\",\"vulnStatus\":\"Received\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\ncachefiles: Fix double unlock in nomem_d_alloc error path\\n\\nWhen start_creating() fails and returns -ENOMEM, it has already\\nreleased the parent directory lock in __start_dirop():\\n\\n    static struct dentry *__start_dirop(...)\\n    {\\n        ...\\n        inode_lock_nested(dir, I_MUTEX_PARENT);\\n        dentry = lookup_one_qstr_excl(name, parent, lookup_flags);\\n        if (IS_ERR(dentry))\\n            inode_unlock(dir);  \u003c-- Lock released on error\\n        return dentry;\\n    }\\n\\nHowever, the nomem_d_alloc error path in cachefiles_get_directory()\\nunconditionally calls inode_unlock(d_inode(dir)) again, causing a\\ndouble unlock that corrupts the rwsem state.\\n\\nThis is a leftover from commit 7ab96df840e60 which replaced manual\\nlocking with start_creating() but failed to update the nomem_d_alloc\\npath (while correctly updating mkdir_error and lookup_error paths).\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"fs/cachefiles/namei.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"7ab96df840e60eb933abfe65fc5fe44e72f16dc0\",\"lessThan\":\"26757dac15175f2a42e3537f1ba86e62456d48f1\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"7ab96df840e60eb933abfe65fc5fe44e72f16dc0\",\"lessThan\":\"8c256fba2b46020004201c500b2a1fbc707a33ef\",\"versionType\":\"git\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"fs/cachefiles/namei.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"6.19\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"6.19\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.1.5\",\"lessThanOrEqual\":\"7.1.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.2\",\"lessThanOrEqual\":\"*\",\"versionType\":\"original_commit_for_fix\",\"status\":\"unaffected\"}]}]}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"type\":\"Secondary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H\",\"baseScore\":7.8,\"baseSeverity\":\"HIGH\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"impactScore\":5.9}]},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/26757dac15175f2a42e3537f1ba86e62456d48f1\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/8c256fba2b46020004201c500b2a1fbc707a33ef\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}",
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-08-19T17:43:22+00:00",
      "cve": "CVE-2026-72368",
      "id": "CVE-2026-72368",
      "initial_release_date": "2026-08-15T00:00:00+00:00",
      "product_status:known_affected": "14",
      "product_status:known_not_affected": "260",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: cachefiles: Fix double unlock in nomem_d_alloc error path",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-72368.json",
      "version": "3"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Loading…