bitVakt

Kernel Kit / Infix / v26.10.0latest

CVE-2026-64057

7.8high

linux6.18.60 · 6.18.54 · 6.18.8in 3 of 4 releases

Reach linux · 6 builds in 3 of 4 releases

full reviewcross-check✓ a member decided

v25.03.1not in NVD's range
v26.01.06.18.8
v26.09.06.18.54
v26.10.0latest6.18.60
aarch64_minimal
x86_64
aarch64_minimal–
x86_64–
aarch64_minimalNot built · autox86_64Not built · autoaarch64_minimalNot built · autox86_64Not built · autoaarch64_minimalNot built · autox86_64Not built · auto

Description · NVD

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.

Published 2026-07-19NVD

CVSS 3.1Local · low privileges · no user interaction

How it is reached

Attack vector
Local
Attack complexity
Low
Privileges required
Low
User interaction
None

What it costs

Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

References 3

Build check · v26.10.0 aarch64_minimal

None of the source files the CNA lists for CVE-2026-64057 (fs/afs/dir.c, fs/afs/fsclient.c, fs/afs/inode.c, fs/afs/symlink.c, fs/afs/validation.c, fs/afs/yfsclient.c) produced an object file in linux-6.18.60, so the affected code is not compiled into this kernel configuration.

Evidence 6

…/ is output/build/linux-6.18.60/fs/afs/

  1. object file absent: not compiled

    …/dir.o

  2. object file absent: not compiled

    …/fsclient.o

  3. object file absent: not compiled

    …/inode.o

  4. object file absent: not compiled

    …/symlink.o

  5. object file absent: not compiled

    …/validation.o

  6. object file absent: not compiled

    …/yfsclient.o

Members of Kernel Kit decide. Sign in if you are one.