# CVE-2026-72377: afs: Remove setting of AS_RELEASE_ALWAYS for symlinks and mountpoints

- 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 10% of CVEs (2026-12-01)
- Published: 2026-08-15T05:56:11.017Z
- Modified: 2026-08-17T06:18:42.060Z
- Assigned by: Linux

## Description

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

afs: Remove setting of AS_RELEASE_ALWAYS for symlinks and mountpoints

Regular AFS files correctly use afs_file_aops which have release_folio
set as netfs_release_folio, so AS_RELEASE_ALWAYS is valid for them
when fscache is enabled (set via afs_vnode_set_cache()).
Symlinks and mountpoints in AFS use afs_dir_aops, which does not provide
a release_folio callback. However, afs_apply_status() unconditionally
calls mapping_set_release_always() for these.

In such case when memory management code attempts to release folios,
filemap_release_folio() checks folio_needs_release() which
returns true due to AS_RELEASE_ALWAYS being set. Since there is no
release_folio callback, it falls through to try_to_free_buffers(),
which at present expects buffer_heads to be not null. For symlinks
and mountpoints without buffer_heads, this causes pointer dereference.

[dh: Added more bits that were missed]

(As written by CVE List.)

## Affected

- Linux Linux: from eae9e78951bb02a7b94a9adef6e981413d13c564 before 9d6b0f6d437e2f8350e08678e5e1d20c11c364f3; from eae9e78951bb02a7b94a9adef6e981413d13c564 before 81e985b4c3a6cbcc443fcdcd3ebda7fcc845d459; 6.14 (not affected: before 6.14; from 7.1.5 up to 7.1.*; from 7.2 up to *)

## References

- <https://git.kernel.org/stable/c/9d6b0f6d437e2f8350e08678e5e1d20c11c364f3>
- <https://git.kernel.org/stable/c/81e985b4c3a6cbcc443fcdcd3ebda7fcc845d459>

## Sources

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

---

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