CVE-2026-64040

cachefiles: Fix error return when vfs_mkdir() fails

State
Published
Severity
Not scored
Published
Jul 19, 2026
Updated
Oct 15, 2026
Reserved
Jul 19, 2026

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 406fad7698f5bf21ab6b5ca195bf4b9e0b3990ed to before 86f4c1586418d50203ee8d76cba5d7b148719a32Affected
  • 406fad7698f5bf21ab6b5ca195bf4b9e0b3990ed to before 0940108d27c6995e02819ff832be11892f0b208bAffected
  • 406fad7698f5bf21ab6b5ca195bf4b9e0b3990ed to before 8a220d1c312c66194f4a33dd52d1fba42bc2b341Affected
LinuxLinux
  • 6.15Affected
  • before 6.15Not affected
  • 6.18.57 through 6.18.*Not affected
  • 7.0.11 through 7.0.*Not affected
  • 7.1 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.