CVE-2026-72368

Source
https://cve.org/CVERecord?id=CVE-2026-72368
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-72368.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-72368
Downstream
Published
2026-08-15T05:56:05.329Z
Modified
2026-08-16T03:48:34.255818174Z
Summary
cachefiles: Fix double unlock in nomem_d_alloc error path
Details

In the Linux kernel, the following vulnerability has been resolved:

cachefiles: Fix double unlock in nomemdalloc error path

When start_creating() fails and returns -ENOMEM, it has already released the parent directory lock in _startdirop():

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 nomemdalloc error path in cachefilesgetdirectory() unconditionally calls inodeunlock(dinode(dir)) again, causing a double unlock that corrupts the rwsem state.

This is a leftover from commit 7ab96df840e60 which replaced manual locking with startcreating() but failed to update the nomemdalloc path (while correctly updating mkdirerror and lookup_error paths).

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/72xxx/CVE-2026-72368.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
7ab96df840e60eb933abfe65fc5fe44e72f16dc0
Fixed
26757dac15175f2a42e3537f1ba86e62456d48f1
Fixed
8c256fba2b46020004201c500b2a1fbc707a33ef

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-72368.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.1.5

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-72368.json"