CVE-2026-64040

Source
https://cve.org/CVERecord?id=CVE-2026-64040
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64040.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-64040
Downstream
Published
2026-07-19T15:39:27.348Z
Modified
2026-07-21T03:47:49.084454774Z
Summary
cachefiles: Fix error return when vfs_mkdir() fails
Details

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

cachefiles: Fix error return when vfs_mkdir() fails

When vfsmkdir() fails, the error code is not extracted from the returned error pointer. This causes mkdirerror 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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64040.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
406fad7698f5bf21ab6b5ca195bf4b9e0b3990ed
Fixed
0940108d27c6995e02819ff832be11892f0b208b
Fixed
8a220d1c312c66194f4a33dd52d1fba42bc2b341

Database specific

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

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.15.0
Fixed
7.0.11

Database specific

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