{"id":"CVE-2026-64040","aliases":["CVE-2026-64040"],"related":[],"kind":"vulnerability","state":"published","title":"cachefiles: Fix error return when vfs_mkdir() fails","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ncachefiles: Fix error return when vfs_mkdir() fails\n\nWhen vfs_mkdir() fails, the error code is not extracted from the\nreturned error pointer. This causes mkdir_error to be reached with\nret=0, which leads to returning ERR_PTR(0) (NULL) instead of a\nproper error pointer.\n\nFix this by extracting the error code from the error pointer when\nvfs_mkdir() fails.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ncachefiles: Fix error return when vfs_mkdir() fails\n\nWhen vfs_mkdir() fails, the error code is not extracted from the\nreturned error pointer. This causes mkdir_error to be reached with\nret=0, which leads to returning ERR_PTR(0) (NULL) instead of a\nproper error pointer.\n\nFix this by extracting the error code from the error pointer when\nvfs_mkdir() fails.","source":"cvelist"}],"published":"2026-07-19T15:39:27.348Z","modified":"2026-10-15T11:17:38.593Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-252"],"affected":[{"ranges":[{"type":"git","introduced":"406fad7698f5bf21ab6b5ca195bf4b9e0b3990ed","fixed":"86f4c1586418d50203ee8d76cba5d7b148719a32","status":"affected"},{"type":"git","introduced":"406fad7698f5bf21ab6b5ca195bf4b9e0b3990ed","fixed":"0940108d27c6995e02819ff832be11892f0b208b","status":"affected"},{"type":"git","introduced":"406fad7698f5bf21ab6b5ca195bf4b9e0b3990ed","fixed":"8a220d1c312c66194f4a33dd52d1fba42bc2b341","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.15","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.15","status":"unaffected"},{"type":"semver","introduced":"6.18.57","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.0.11","lastAffected":"7.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.15","fixed":"7.0.11"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/86f4c1586418d50203ee8d76cba5d7b148719a32","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0940108d27c6995e02819ff832be11892f0b208b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8a220d1c312c66194f4a33dd52d1fba42bc2b341","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-64040","url":"https://www.cve.org/CVERecord?id=CVE-2026-64040","licence":"CVE Terms of Use","modified":"2026-10-15T10:07:58.219Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-64040","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-64040","licence":"Public domain","modified":"2026-10-15T11:17:38.593Z"}],"updatedAt":"2026-11-25T22:59:28.958Z","epss":{"score":0.00158,"percentile":0.05172,"date":"2026-12-01T12:00:22.000Z"}}