CVE-2025-68299
afs: Fix delayed allocation of a cell's anonymous key
Description
In the Linux kernel, the following vulnerability has been resolved: afs: Fix delayed allocation of a cell's anonymous key The allocation of a cell's anonymous key is done in a background thread along with other cell setup such as doing a DNS upcall. In the reported bug, this is triggered by afs_parse_source() parsing the device name given to mount() and calling afs_lookup_cell() with the name of the cell. The normal key lookup then tries to use the key description on the anonymous authentication key as the reference for request_key() - but it may not yet be set and so an oops can happen. This has been made more likely to happen by the fix for dynamic lookup failure. Fix this by firstly allocating a reference name and attaching it to the afs_cell record when the record is created. It can share the memory allocation with the cell name (unfortunately it can't just overlap the cell name by prepending it with "afs@" as the cell name already has a '.' prepended for other purposes). This reference name is then passed to request_key(). Secondly, the anon key is now allocated on demand at the point a key is requested in afs_request_key() if it is not already allocated. A mutex is used to prevent multiple allocation for a cell. Thirdly, make afs_request_key_rcu() return NULL if the anonymous key isn't yet allocated (if we need it) and then the caller can return -ECHILD to drop out of RCU-mode and afs_request_key() can be called. Note that the anonymous key is kind of necessary to make the key lookup cache work as that doesn't currently cache a negative lookup, but it's probably worth some investigation to see if NULL can be used instead.
INFO
Published Date :
Dec. 16, 2025, 4:16 p.m.
Last Modified :
Oct. 14, 2026, 4:10 p.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Solution
- Allocate a reference name when the cell record is created.
- Allocate the anonymous key on demand when requested.
- Use a mutex to prevent multiple allocations.
- Return NULL if the anonymous key is not allocated.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2025-68299.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2025-68299 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2025-68299
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2025-68299 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2025-68299 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Translated by [email protected]
Oct. 14, 2026
Action Type Old Value New Value Added Translation Title: Linux, Description: En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: afs: Corrección de la asignación retrasada de la clave anónima de una celda La asignación de la clave anónima de una celda se realiza en un hilo en segundo plano junto con otras configuraciones de celda, como realizar una llamada ascendente (upcall) de DNS. En el error reportado, esto es provocado por afs_parse_source() analizando el nombre del dispositivo dado a mount() y llamando a afs_lookup_cell() con el nombre de la celda. La búsqueda normal de clave luego intenta usar la descripción de la clave en la clave de autenticación anónima como referencia para request_key(), pero es posible que aún no esté establecida y, por lo tanto, puede ocurrir un oops. Esto se ha vuelto más propenso a ocurrir por la corrección para el fallo de búsqueda dinámica. Corrija esto, en primer lugar, asignando un nombre de referencia y adjuntándolo al registro afs_cell cuando se crea el registro. Puede compartir la asignación de memoria con el nombre de la celda (desafortunadamente, no puede simplemente superponer el nombre de la celda anteponiéndole 'afs@' ya que el nombre de la celda ya tiene un '.' antepuesto para otros propósitos). Este nombre de referencia luego se pasa a request_key(). En segundo lugar, la clave anónima ahora se asigna bajo demanda en el momento en que se solicita una clave en afs_request_key() si aún no está asignada. Se utiliza un mutex para evitar múltiples asignaciones para una celda. En tercer lugar, haga que afs_request_key_rcu() devuelva NULL si la clave anónima aún no está asignada (si la necesitamos) y luego el llamador puede devolver -ECHILD para salir del modo RCU y se puede llamar a afs_request_key(). Tenga en cuenta que la clave anónima es algo necesaria para que la caché de búsqueda de claves funcione, ya que actualmente no almacena en caché una búsqueda negativa, pero probablemente valga la pena investigar para ver si se puede usar NULL en su lugar. -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Aug. 03, 2026
Action Type Old Value New Value Added Reference https://git.kernel.org/stable/c/bd18d2cbc9377c6b270c0b7ea44b0e6ed1d99c07 Changed Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '7e33b15d5a6578a99ebf189cea34983270ae92dd', 'lessThan': '5613bde937dfac6725e9c3fc766b9d6b8481e55b', 'versionType': 'git'}, {'status': 'affected', 'version': '330e2c514823008b22e6afd2055715bc46dd8d55', 'lessThan': 'd27c71257825dced46104eefe42e4d9964bd032e', 'versionType': 'git'}], 'programFiles': ['fs/afs/cell.c', 'fs/afs/internal.h', 'fs/afs/security.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '6.17.9', 'lessThan': '6.17.11', 'versionType': 'semver'}], 'programFiles': ['fs/afs/cell.c', 'fs/afs/internal.h', 'fs/afs/security.c'], 'defaultStatus': 'unaffected'}] [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': 'fa4ccdccf1489a6dac4369a8c69f11b455b3355c', 'lessThan': 'bd18d2cbc9377c6b270c0b7ea44b0e6ed1d99c07', 'versionType': 'git'}, {'status': 'affected', 'version': '7e33b15d5a6578a99ebf189cea34983270ae92dd', 'lessThan': '5613bde937dfac6725e9c3fc766b9d6b8481e55b', 'versionType': 'git'}, {'status': 'affected', 'version': '330e2c514823008b22e6afd2055715bc46dd8d55', 'lessThan': 'd27c71257825dced46104eefe42e4d9964bd032e', 'versionType': 'git'}], 'programFiles': ['fs/afs/cell.c', 'fs/afs/internal.h', 'fs/afs/security.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '6.17.9', 'lessThan': '6.17.11', 'versionType': 'semver'}], 'programFiles': ['fs/afs/cell.c', 'fs/afs/internal.h', 'fs/afs/security.c'], 'defaultStatus': 'unaffected'}] -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jun. 17, 2026
Action Type Old Value New Value Added Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '7e33b15d5a6578a99ebf189cea34983270ae92dd', 'lessThan': '5613bde937dfac6725e9c3fc766b9d6b8481e55b', 'versionType': 'git'}, {'status': 'affected', 'version': '330e2c514823008b22e6afd2055715bc46dd8d55', 'lessThan': 'd27c71257825dced46104eefe42e4d9964bd032e', 'versionType': 'git'}], 'programFiles': ['fs/afs/cell.c', 'fs/afs/internal.h', 'fs/afs/security.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '6.17.9', 'lessThan': '6.17.11', 'versionType': 'semver'}], 'programFiles': ['fs/afs/cell.c', 'fs/afs/internal.h', 'fs/afs/security.c'], 'defaultStatus': 'unaffected'}] -
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Dec. 16, 2025
Action Type Old Value New Value Added Description In the Linux kernel, the following vulnerability has been resolved: afs: Fix delayed allocation of a cell's anonymous key The allocation of a cell's anonymous key is done in a background thread along with other cell setup such as doing a DNS upcall. In the reported bug, this is triggered by afs_parse_source() parsing the device name given to mount() and calling afs_lookup_cell() with the name of the cell. The normal key lookup then tries to use the key description on the anonymous authentication key as the reference for request_key() - but it may not yet be set and so an oops can happen. This has been made more likely to happen by the fix for dynamic lookup failure. Fix this by firstly allocating a reference name and attaching it to the afs_cell record when the record is created. It can share the memory allocation with the cell name (unfortunately it can't just overlap the cell name by prepending it with "afs@" as the cell name already has a '.' prepended for other purposes). This reference name is then passed to request_key(). Secondly, the anon key is now allocated on demand at the point a key is requested in afs_request_key() if it is not already allocated. A mutex is used to prevent multiple allocation for a cell. Thirdly, make afs_request_key_rcu() return NULL if the anonymous key isn't yet allocated (if we need it) and then the caller can return -ECHILD to drop out of RCU-mode and afs_request_key() can be called. Note that the anonymous key is kind of necessary to make the key lookup cache work as that doesn't currently cache a negative lookup, but it's probably worth some investigation to see if NULL can be used instead. Added Reference https://git.kernel.org/stable/c/5613bde937dfac6725e9c3fc766b9d6b8481e55b Added Reference https://git.kernel.org/stable/c/d27c71257825dced46104eefe42e4d9964bd032e