CVE-2026-72368

cachefiles: Fix double unlock in nomem_d_alloc error path

Published Aug 15, 2026 CVSS 3.1 · 7.8 High EPSS < 1% KEV · Not listed
Description
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).

Analysis

AI-generated

Technical impact

The cachefiles subsystem in the Linux kernel contains a double unlock bug where an error path unconditionally releases a lock that was already released, corrupting the rwsem state. This corruption can cause kernel crashes, unexpected behavior, or denial of service on affected systems.

Affected Systems

Any Linux kernel that includes the cachefiles module prior to incorporating the double‑unlock fix is vulnerable. Versions that have not integrated commit 26757dac in the kernel source tree remain exposed, so all unpatched releases that compile cachefiles are at risk.

Risk and Exploitability

The CVSS score of 7.8 reflects a high severity of kernel state corruption. The EPSS score of less than 1% indicates a low probability of exploitation in the wild. Based on the description, it is inferred that exploitation would likely require local access to operations that exercise the cachefiles path, such as creating directories in a cachefiles filesystem, but the defect does not provide a privilege‑escalation vector. The vulnerability is not listed in CISA’s KEV catalog, underscoring that no known active attacks target this defect.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a release that includes the commit 26757dac or later, which resolves the double‑unlock bug.
  • If an upgrade is not immediately possible, unload the cachefiles module or unmount any cachefiles filesystems to prevent the error path from being exercised.
  • Continuously monitor system logs for kernel Oops or related errors and apply the patch at the earliest convenience.

Generated by OpenCVE AI on August 22, 2026 at 08:00 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8887-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8888-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8889-1 Linux kernel (OEM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8887-2 Linux kernel (AWS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8888-2 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8887-3 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9003-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-9043-1 Linux kernel (NVIDIA) vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-665
CWE-672
Type Values Removed Values Added
Weaknesses CWE-665
CWE-672
Type Values Removed Values Added
Weaknesses CWE-362
CWE-404
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
Weaknesses CWE-362
CWE-404
Type Values Removed Values Added
Description 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).
Title cachefiles: Fix double unlock in nomem_d_alloc error path
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-832

    Unlock of a Resource that is not Locked

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Aug 17, 2026, 5:43 AM
Reserved
Aug 9, 2026, 3:40 AM
Status
Received
Published
Aug 15, 2026, 6:22 AM
Modified
Aug 17, 2026, 6:18 AM
Severity
Moderate
Public date
Aug 15, 2026, 12:00 AM