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

Published Sep 25, 2026
·
Updated

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

afs: Fix double-unmap of directory block

Fix afseditdirremove() to use a cleanup function to unmap the block pointed to by afsdiriter::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 afsdirfindblock() is called twice in a row (which would be the case if the block being modified is not first in the hash chain).

Affected Software

1 affected component
Linux Linux kernel

Event History

Sep 25, 2026
CVE Published
via MITRE·10:22 AM
Data Sourced
via MITRE·10:22 AM
Description
Data Sourced
via NVD·11:17 AM
Description

Frequently Asked Questions

1

Which deployments are most likely to be exposed?

The issue is in the Linux kernel AFS code and is relevant to systems using AFS directory operations. The affected path is directory entry removal.

2

What condition triggers the double unmap?

It can occur when the directory block being modified is not the first block in the hash chain, causing afs_dir_find_block() to be called twice in succession. A manually unmapped block may remain referenced through afs_dir_iter::block and be unmapped again.

3

Can affected systems be identified by kernel version from the available information?

No affected or fixed kernel version ranges are provided. The supplied references identify commits containing the resolution, so source or package maintenance information must be compared against those commits.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203