# CVE-2026-64057: afs: Fix the locking used by afs\_get\_link()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.13% (percentile 1, 2026-11-26)
- **CWE:** CWE-667
- **Published:** 2026-07-19T15:39:38.321Z
- **Modified:** 2026-10-15T11:17:38.713Z

## Who should check

- Anyone running Linux \>= eae9e78951bb02a7b94a9adef6e981413d13c564, \< 93531bca46707c6c28c4f4eb26c101fa36ccb8cb; \>= eae9e78951bb02a7b94a9adef6e981413d13c564, \< 77ea917cbed62882a33114b1e23ededb977e4287; \>= eae9e78951bb02a7b94a9adef6e981413d13c564, \< c0410adf3da6db46f3513411fcf95e63c2f1d1ad
- Anyone running Linux 6.14

## Description

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

afs: Fix the locking used by afs\_get\_link()

The afs filesystem in the kernel doesn't do locking correctly for symbolic
links.  There are a number of problems:

 (1) It doesn't do any locking around afs\_read\_single() to prevent races
     between multiple -\>get\_link() calls, thereby allowing the possibility
     of leaks.

 (2) It doesn't use RCU barriering when accessing the buffer pointers
     during RCU pathwalk.

 (3) It can race with another thread updating the contents of the symlink
     if a third party updated it on the server.

Fix this by the following means:

 (0) Move symlink handling into its own file as this makes it more
     complicated.

 (1) Take the validate\_lock around afs\_read\_single() to prevent races
     between multiple -\>get\_link() calls.

 (2) Keep a separate copy of the symlink contents with an rcu\_head.  This
     is always going to be a lot smaller than a page, so it can be
     kmalloc'd and save quite a bit of memory.  It also needs a refcount
     for non-RCU pathwalk.

 (3) Split the symlink read and write-to-cache routines in afs from those
     for directories.

 (4) Discard the I/O buffer as soon as the write-to-cache completes as this
     is a full page (plus a folio\_queue).

 (5) If there's no cache, discard the I/O buffer immediately after reading
     and copying if there is no cache.

## Affected and fixed versions

- Linux: \>= eae9e78951bb02a7b94a9adef6e981413d13c564, \< 93531bca46707c6c28c4f4eb26c101fa36ccb8cb; \>= eae9e78951bb02a7b94a9adef6e981413d13c564, \< 77ea917cbed62882a33114b1e23ededb977e4287; \>= eae9e78951bb02a7b94a9adef6e981413d13c564, \< c0410adf3da6db46f3513411fcf95e63c2f1d1ad (cvelist)
- Linux: 6.14 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-64057. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-64057.md
Affected: Linux >= eae9e78951bb02a7b94a9adef6e981413d13c564, < 93531bca46707c6c28c4f4eb26c101fa36ccb8cb; >= eae9e78951bb02a7b94a9adef6e981413d13c564, < 77ea917cbed62882a33114b1e23ededb977e4287; >= eae9e78951bb02a7b94a9adef6e981413d13c564, < c0410adf3da6db46f3513411fcf95e63c2f1d1ad; Linux 6.14
Fixed in: Linux 93531bca46707c6c28c4f4eb26c101fa36ccb8cb, Linux 77ea917cbed62882a33114b1e23ededb977e4287

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-64057 being exploited?

There is no confirmed exploitation: CVE-2026-64057 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.13% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-64057?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-64057?

Linux \>= eae9e78951bb02a7b94a9adef6e981413d13c564, \< 93531bca46707c6c28c4f4eb26c101fa36ccb8cb; \>= eae9e78951bb02a7b94a9adef6e981413d13c564, \< 77ea917cbed62882a33114b1e23ededb977e4287; \>= eae9e78951bb02a7b94a9adef6e981413d13c564, \< c0410adf3da6db46f3513411fcf95e63c2f1d1ad; Linux 6.14.

### Is there a fix for CVE-2026-64057?

Yes. Fixed in Linux 93531bca46707c6c28c4f4eb26c101fa36ccb8cb, Linux 77ea917cbed62882a33114b1e23ededb977e4287. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-64057?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/77ea917cbed62882a33114b1e23ededb977e4287>
- patch: <https://git.kernel.org/stable/c/c0410adf3da6db46f3513411fcf95e63c2f1d1ad>
- other: <https://git.kernel.org/stable/c/93531bca46707c6c28c4f4eb26c101fa36ccb8cb>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-64057>

HTML: <https://flawdb.com/CVE-2026-64057> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-64057>
