{"id":"CVE-2026-97585","state":"PUBLISHED","title":"afs: Fix double-unmap of directory block","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nafs: Fix double-unmap of directory block\n\nFix afs_edit_dir_remove() to use a cleanup function to unmap the block\npointed to by afs_dir_iter::block if it's left pointing to something rather\nthan manually kunmapping the blocks.  Manually kunmapping without clearing\niter.blocks can result in a double-kunmap if afs_dir_find_block() is called\ntwice in a row (which would be the case if the block being modified is not\nfirst in the hash chain).","publishedAt":"2026-09-25T10:22:04.942Z","updatedAt":"2026-10-19T09:09:48.929Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"a5b5beebcf96d5e8a2fc79856c2ac1e93f82478e","status":"affected","lessThan":"9d6c703e24da3d39067e3c75f4ac2f6001c2472f","versionType":"git"},{"version":"a5b5beebcf96d5e8a2fc79856c2ac1e93f82478e","status":"affected","lessThan":"b60f51e4ad0f6f940899788ccc2762db1e3b69e6","versionType":"git"},{"version":"a5b5beebcf96d5e8a2fc79856c2ac1e93f82478e","status":"affected","lessThan":"e3cfd3eb7d5be7787cc69530b423f788f14d084f","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/afs/dir_edit.c","fs/afs/dir_search.c","fs/afs/internal.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.14","versionType":"semver"},{"version":"6.18.53","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.7","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/afs/dir_edit.c","fs/afs/dir_search.c","fs/afs/internal.h"]}],"references":["https://git.kernel.org/stable/c/9d6c703e24da3d39067e3c75f4ac2f6001c2472f","https://git.kernel.org/stable/c/b60f51e4ad0f6f940899788ccc2762db1e3b69e6","https://git.kernel.org/stable/c/e3cfd3eb7d5be7787cc69530b423f788f14d084f"],"weaknesses":[],"ingestedAt":"2026-10-29T20:13:43.249Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/97xxx/CVE-2026-97585.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-97585","state":"PUBLISHED","datePublished":"2026-09-25T10:22:04.942Z","dateUpdated":"2026-10-19T09:09:48.929Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-24T16:01:01.156Z"},"containers":{"cna":{"title":"afs: Fix double-unmap of directory block","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nafs: Fix double-unmap of directory block\n\nFix afs_edit_dir_remove() to use a cleanup function to unmap the block\npointed to by afs_dir_iter::block if it's left pointing to something rather\nthan manually kunmapping the blocks.  Manually kunmapping without clearing\niter.blocks can result in a double-kunmap if afs_dir_find_block() is called\ntwice in a row (which would be the case if the block being modified is not\nfirst in the hash chain)."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"a5b5beebcf96d5e8a2fc79856c2ac1e93f82478e","status":"affected","lessThan":"9d6c703e24da3d39067e3c75f4ac2f6001c2472f","versionType":"git"},{"version":"a5b5beebcf96d5e8a2fc79856c2ac1e93f82478e","status":"affected","lessThan":"b60f51e4ad0f6f940899788ccc2762db1e3b69e6","versionType":"git"},{"version":"a5b5beebcf96d5e8a2fc79856c2ac1e93f82478e","status":"affected","lessThan":"e3cfd3eb7d5be7787cc69530b423f788f14d084f","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/afs/dir_edit.c","fs/afs/dir_search.c","fs/afs/internal.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.14","versionType":"semver"},{"version":"6.18.53","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.7","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/afs/dir_edit.c","fs/afs/dir_search.c","fs/afs/internal.h"]}],"references":[{"url":"https://git.kernel.org/stable/c/9d6c703e24da3d39067e3c75f4ac2f6001c2472f"},{"url":"https://git.kernel.org/stable/c/b60f51e4ad0f6f940899788ccc2762db1e3b69e6"},{"url":"https://git.kernel.org/stable/c/e3cfd3eb7d5be7787cc69530b423f788f14d084f"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-19T09:09:48.929Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.14","versionEndExcluding":"6.18.53"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.14","versionEndExcluding":"7.2.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.14","versionEndExcluding":"7.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}