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

cachefiles: Fix error return when vfs_mkdir() fails

When vfs_mkdir() fails, the error code is not extracted from the
returned error pointer. This causes mkdir_error to be reached with
ret=0, which leads to returning ERR_PTR(0) (NULL) instead of a
proper error pointer.

Fix this by extracting the error code from the error pointer when
vfs_mkdir() fails.
Published: 2026-07-19
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A defect in the Linux kernel cachefiles module causes the error pointer returned by vfs_mkdir() to be ignored when the operation fails, resulting in a zero error code and an ERR_PTR(0) value that is interpreted as NULL. This misreporting makes callers believe that the directory creation succeeded when it did not, potentially leading to logic errors, incorrect assumptions about the file system state, and subsequent operations on a non‑existent path without triggering proper error handling. The vulnerability does not provide an attacker with direct code execution or data ex does undermine the reliability of storage operations within the kernel.

Affected Systems

All Linux kernel implementations that include the cachefiles module are affected by this bug. The issue existed before the patch commit referenced in the advisory, which introduced a fix. Any system running a kernel version older than that commit, especially custom or embedded builds that incorporate the cachefiles module, is potentially impacted. The exact version range is not specified by the CNA, so a blanket upgrade policy for all kernel versions containing the cachefiles module will mitigate the risk.

Risk and Exploitability

The CVSS score of 5.5 places the vulnerability in the medium severity band, reflecting its limited scope to error reporting rather than direct system compromise. The EPSS score is <1%, indicating a very low likelihood that the flaw will be actively listed in the CISA KEV catalog. Explo‑creation failure that is not correctly reported, a scenario that is unlikely in typical workloads. Even so, the resulting false success state can lead to cascading system instability or subtle logical errors, so the overall risk remains moderate and warrants timely remediation.

Generated by OpenCVE AI on July 30, 2026 at 20:56 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply a kernel update that includes the cachefiles module patch (commit 0940108d27c6 or a later release).
  • If using a custom or embedded kernel, recompile the kernel with the patched source or apply the individual patch file to your build.
  • If patching cannot be performed immediately, consider disabling the cachefiles module to avoid the misreporting behavior until a fix is applied.

Generated by OpenCVE AI on July 30, 2026 at 20:56 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Ubuntu USN Ubuntu USN USN-8593-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8603-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8618-1 Linux kernel vulnerabilities
History

Tue, 21 Jul 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-476
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Low


Sun, 19 Jul 2026 16:15:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: cachefiles: Fix error return when vfs_mkdir() fails When vfs_mkdir() fails, the error code is not extracted from the returned error pointer. This causes mkdir_error to be reached with ret=0, which leads to returning ERR_PTR(0) (NULL) instead of a proper error pointer. Fix this by extracting the error code from the error pointer when vfs_mkdir() fails.
Title cachefiles: Fix error return when vfs_mkdir() fails
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-07-19T15:39:27.348Z

Reserved: 2026-07-19T07:54:57.029Z

Link: CVE-2026-64040

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

Severity : Low

Publid Date: 2026-07-19T00:00:00Z

Links: CVE-2026-64040 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-07-30T21:00:22Z

Weaknesses