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

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 9% of CVEs (2026-12-02)
- Published: 2026-09-25T10:22:04.942Z
- Modified: 2026-10-19T10:17:27.910Z
- Assigned by: Linux

## 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).

(As written by CVE List.)

## Affected

- Linux Linux: from a5b5beebcf96d5e8a2fc79856c2ac1e93f82478e before 9d6c703e24da3d39067e3c75f4ac2f6001c2472f; from a5b5beebcf96d5e8a2fc79856c2ac1e93f82478e before b60f51e4ad0f6f940899788ccc2762db1e3b69e6; from a5b5beebcf96d5e8a2fc79856c2ac1e93f82478e before e3cfd3eb7d5be7787cc69530b423f788f14d084f; 6.14 (not affected: before 6.14; from 6.18.53 up to 6.18.*; from 7.2.7 up to 7.2.*; from 7.3 up to *)

## References

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

## Sources

- CVE List: [CVE-2026-97585](https://www.cve.org/CVERecord?id=CVE-2026-97585), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-97585](https://nvd.nist.gov/vuln/detail/CVE-2026-97585), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2026-97585 · Whole record: https://cve.day/CVE-2026-97585.json · Rebuilt by cve.day 2026-11-25T22:59:40.965Z
