Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 37D593A6EE3 for ; Sun, 19 Jul 2026 15:41:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784475711; cv=none; b=JK0FN7/+T7nmYTCkGqSgR+FgSUVMMMtrWaPKCOvlBw/D7dF8tBfgBDq8N7aMvjepcCgbdO9KVsIzA45njTajfdfzeyPit5mAsJ95xtqHy1Mncr9KACYsB/pvjHiCv+QlO5kDd5zpx6ijhTUkwqX+hPksaAJNYbBScy4MVsKo7Fw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784475711; c=relaxed/simple; bh=fC4pGuFYbTLD5gU09Uj/59FoIUjLfPkJRdhJHKZ1dUI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=niOXSEG6crdASGlMp9iqGbHbe9gyOkK0GMMcJp5NvxG+/Vjr5Bo+BdXw09ZsesAb7wzu0AM+QEJsPTbB2BUyNItP2LxVF4AmvAxl9CVddj9cCYMPkvfNr97TN4f1vGCuVUkwQGlFLbrk9IGW6unCPeMnH11uIcvuTa9vbDyEMTY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=lRMPJq6E; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="lRMPJq6E" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 503E11F000E9; Sun, 19 Jul 2026 15:41:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784475709; bh=dmMQuOsqSsO2+XQak4HGhbXL8rtaOmalbaleX15J6GQ=; h=From:To:Cc:Subject:Date:Reply-To; b=lRMPJq6Eq6fTg5AD6ef9GLj7CMQxXymm/AVjWm7NWe6TcUIIwshCvX1uxIUcYRSzf 8JarFh7h3LRGRGPyCuzkZpcChtMbUMviS48Adn8eahUQq8enhMSwb6P2i71jnUhhyc QJzrK4L2l8d8mJ7vB2zrUbGwMjuCSFzHG1Kz5W0s= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-64057: afs: Fix the locking used by afs_get_link() Date: Sun, 19 Jul 2026 17:38:39 +0200 Message-ID: <2026071910-CVE-2026-64057-0290@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3212; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=rXkcV++vzv2EqcSFQP1JtXPutxR9G0keMSCOchOhxhc=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkx75Nef1v3WmVmxL1DOm4i7eHqfmu9LKs6uGf8ZqppD Cr89Xl6RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExEkI1hvosVZ6fthBqfe//y Tk18YRtVtuJCAMP8aCHjPT5f+0/M1ehU+zZtI3P0c3ZXAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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. The Linux kernel CVE team has assigned CVE-2026-64057 to this issue. Affected and fixed versions =========================== Issue introduced in 6.14 with commit eae9e78951bb02a7b94a9adef6e981413d13c564 and fixed in 7.0.11 with commit 77ea917cbed62882a33114b1e23ededb977e4287 Issue introduced in 6.14 with commit eae9e78951bb02a7b94a9adef6e981413d13c564 and fixed in 7.1 with commit c0410adf3da6db46f3513411fcf95e63c2f1d1ad Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-64057 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: fs/afs/Makefile fs/afs/dir.c fs/afs/fsclient.c fs/afs/inode.c fs/afs/internal.h fs/afs/symlink.c fs/afs/validation.c fs/afs/yfsclient.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/77ea917cbed62882a33114b1e23ededb977e4287 https://git.kernel.org/stable/c/c0410adf3da6db46f3513411fcf95e63c2f1d1ad