In the Linux kernel, the following vulnerability has been resolved: cachefiles: Fix error return when vfs_mkdir() fails When vfs_mkdir() fails, the… (CVE-2026-64040)
A vulnerability in the Linux kernel's cachefiles component was fixed where the error code from vfs_mkdir() failure was not properly extracted. This caused the function to return a NULL error pointer instead of a proper error indication. The issue was addressed by correctly extracting the error code when vfs_mkdir() fails.
AI Analysis
Technical Summary
The Linux kernel cachefiles module had a flaw in error handling: when the vfs_mkdir() function failed, the error code was not extracted from the returned error pointer. As a result, the code path led to returning ERR_PTR(0), effectively a NULL pointer, instead of a valid error pointer. This improper error return could cause incorrect behavior in error handling logic. The vulnerability was resolved by modifying the code to extract and return the correct error code from the error pointer when vfs_mkdir() fails.
Potential Impact
The vulnerability causes incorrect error reporting in the cachefiles module of the Linux kernel. While the description does not specify direct exploitation or impact scenarios, improper error handling can lead to unexpected behavior or stability issues in kernel operations involving cachefiles. No known exploits in the wild have been reported.
Mitigation Recommendations
A fix has been implemented in the Linux kernel to correctly extract and return the error code from vfs_mkdir() failures in the cachefiles module. Users should update to the fixed kernel version once available. Patch status is not explicitly confirmed in the provided data; check the official Linux kernel advisories or vendor updates for the exact fixed versions and apply the update accordingly.
In the Linux kernel, the following vulnerability has been resolved: cachefiles: Fix error return when vfs_mkdir() fails When vfs_mkdir() fails, the… (CVE-2026-64040)
Description
A vulnerability in the Linux kernel's cachefiles component was fixed where the error code from vfs_mkdir() failure was not properly extracted. This caused the function to return a NULL error pointer instead of a proper error indication. The issue was addressed by correctly extracting the error code when vfs_mkdir() fails.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Linux kernel cachefiles module had a flaw in error handling: when the vfs_mkdir() function failed, the error code was not extracted from the returned error pointer. As a result, the code path led to returning ERR_PTR(0), effectively a NULL pointer, instead of a valid error pointer. This improper error return could cause incorrect behavior in error handling logic. The vulnerability was resolved by modifying the code to extract and return the correct error code from the error pointer when vfs_mkdir() fails.
Potential Impact
The vulnerability causes incorrect error reporting in the cachefiles module of the Linux kernel. While the description does not specify direct exploitation or impact scenarios, improper error handling can lead to unexpected behavior or stability issues in kernel operations involving cachefiles. No known exploits in the wild have been reported.
Mitigation Recommendations
A fix has been implemented in the Linux kernel to correctly extract and return the error code from vfs_mkdir() failures in the cachefiles module. Users should update to the fixed kernel version once available. Patch status is not explicitly confirmed in the provided data; check the official Linux kernel advisories or vendor updates for the exact fixed versions and apply the update accordingly.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-249r-xf46-wj4v
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-64040"]
- Ecosystems
- []
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a5d27a92a4a8d598912d215
Added to database: 07/19/2026, 19:38:17 UTC
Last enriched: 07/19/2026, 19:57:18 UTC
Last updated: 07/20/2026, 17:28:52 UTC
Views: 11
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.