CVE-2026-64040
cachefiles: Fix error return when vfs_mkdir() fails
Reported by linux · Published July 19, 2026
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.
EPSS 0.16% · 5.3th percentile
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| linux-qemu-6.18 | Chainguard | 6.18.57-r0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 406fad7698f5bf21ab6b5ca195bf4b9e0b3990ed, 406fad7698f5bf21ab6b5ca195bf4b9e0b3990ed, 406fad7698f5bf21ab6b5ca195bf4b9e0b3990ed |
| Linux | Linux | 6.15, 0, 6.18.57 |
| chainguard | linux-qemu-6.18 | 0 |
| linux | linux_kernel | 6.15, 6.15, 6.15 |
| chainguard | linux-qemu-melange | 0 |
| Linux | Linux | 6.18.57, 7.1, 406fad7698f5bf21ab6b5ca195bf4b9e0b3990ed |
| chainguard | linux-aws-6.18 | 0 |
| chainguard | linux-gcp-6.18 | * |
Timeline
- Jul 19, 2026 CVE Published
- Jul 20, 2026 Coalition ESS Score
- Jul 20, 2026 Security Advisory (31 in total, the first dated here)
- Jul 30, 2026 CVE Updated
- Aug 7, 2026 EPSS Score (13 in total, the first dated here)
- Aug 12, 2026 Distribution Patch (30 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-64040
vulnetix vdb fixes CVE-2026-64040
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-64040/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart