Skip to contentSkip to conversation

CVE-2026-97585: afs: Fix double-unmap of directory block

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 25

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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

afs: Fix double-unmap of directory block

Fix afs_edit_dir_remove() to use a cleanup function to unmap the block pointed to by afs_dir_iter::block if it's left pointing to something rather than manually kunmapping the blocks. Manually kunmapping without clearing iter.blocks can result in a double-kunmap if afs_dir_find_block() is called twice in a row (which would be the case if the block being modified is not first in the hash chain).

The Linux kernel CVE team has assigned CVE-2026-97585 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.14 with commit a5b5beebcf96d5e8a2fc79856c2ac1e93f82478e and fixed in 6.18.53 with commit 9d6c703e24da3d39067e3c75f4ac2f6001c2472f
	Issue introduced in 6.14 with commit a5b5beebcf96d5e8a2fc79856c2ac1e93f82478e and fixed in 7.2.7 with commit b60f51e4ad0f6f940899788ccc2762db1e3b69e6
	Issue introduced in 6.14 with commit a5b5beebcf96d5e8a2fc79856c2ac1e93f82478e and fixed in 7.3-rc3 with commit e3cfd3eb7d5be7787cc69530b423f788f14d084f

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-97585

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
fs/afs/dir_edit.c
fs/afs/dir_search.c
fs/afs/internal.h

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/9d6c703e24da3d39067e3c75f4ac2f6001c2472f
	https://git.kernel.org/stable/c/b60f51e4ad0f6f940899788ccc2762db1e3b69e6
	https://git.kernel.org/stable/c/e3cfd3eb7d5be7787cc69530b423f788f14d084f