{"id":"CVE-2026-72368","published":"2026-08-15T05:56:05Z","modified":"2026-08-17T05:43:22Z","title":"cachefiles: Fix double unlock in nomem_d_alloc error path","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"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);  <-- 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).","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00165,"percentile":0.03204,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/26757dac15175f2a42e3537f1ba86e62456d48f1","tags":[]},{"url":"https://git.kernel.org/stable/c/8c256fba2b46020004201c500b2a1fbc707a33ef","tags":[]}],"priority":{"score":6.1,"factors":[{"name":"EPSS percentile","points":0.64},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 7ab96df840e60eb933abfe65fc5fe44e72f16dc0, < 26757dac15175f2a42e3537f1ba86e62456d48f1",">= 7ab96df840e60eb933abfe65fc5fe44e72f16dc0, < 8c256fba2b46020004201c500b2a1fbc707a33ef"]},{"vendor":"Linux","product":"Linux","versions":["6.19"]}],"euvd":{"id":"EUVD-2026-59267","exploited":false,"provenance":"source"}}