7.5high
afs: Fix the maximum cell name length
- Severity
- 7.5high CVSS:3.1 by Linux
- Exploit likelihood
- 0.45% (higher than 40% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: afs: Fix the maximum cell name length The kafs filesystem limits the maximum length of a cell to 256 bytes, but a problem occurs if someone actually does that: kafs tries to create a directory under /proc/net/afs/ with the name of the cell, but that fails with a warning: WARNING: CPU: 0 PID: 9 at fs/proc/generic.c:405 because procfs limits the maximum filename length to 255. However, the DNS limits the maximum lookup length and, by extension, the maximum cell name, to 255 less two (length count and trailing NUL). Fix this by limiting the maximum acceptable cellname length to 253. This also allows us to be sure we can create the "/afs/.<cell>/" mountpoint too. Further, split the YFS VL record cell name maximum to be the 256 allowed by the protocol and ignore the record retrieved by YFSVL.GetCellName if it exceeds 253.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from c3e9f888263bb4df11cbd623ceced02081cb2f9f before 9340385468d056bb700b8f28df236b81fc86a079, from c3e9f888263bb4df11cbd623ceced02081cb2f9f before 7cb3e77e9b4e6ffa325a5559393d3283c9af3d01, from c3e9f888263bb4df11cbd623ceced02081cb2f9f before aabe47cf5ac5e1db2ae0635f189d836f67024904, from c3e9f888263bb4df11cbd623ceced02081cb2f9f before 7673030efe0f8ca1056d3849d61784c6caa052af, from c3e9f888263bb4df11cbd623ceced02081cb2f9f before 7922b1f058fe24a93730511dd0ae2e1630920096, from c3e9f888263bb4df11cbd623ceced02081cb2f9f before 8fd56ad6e7c90ac2bddb0741c6b248c8c5d56ac8, 5.8 Not affected: before 5.8, from 5.10.234 up to 5.10.*, from 5.15.177 up to 5.15.*, from 6.1.125 up to 6.1.*, from 6.6.72 up to 6.6.*, from 6.12.10 up to 6.12.* | CVE List |
| linux linux_kernel | from 5.8 before 5.10.234, from 5.11 before 5.15.177, from 5.16 before 6.1.125, from 6.2 before 6.6.72, from 6.7 before 6.12.10, 6.13 | NVD |
All scores
| Linux | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: afs: Fix the maximum cell name length The kafs filesystem limits the maximum length of a cell to 256 bytes, but a problem occurs if someone actually does that: kafs tries to create a directory under /proc/net/afs/ with the name of the cell, but that fails with a warning: WARNING: CPU: 0 PID: 9 at fs/proc/generic.c:405 because procfs limits the maximum filename length to 255. However, the DNS limits the maximum lookup length and, by extension, the maximum cell name, to 255 less two (length count and trailing NUL). Fix this by limiting the maximum acceptable cellname length to 253. This also allows us to be sure we can create the "/afs/.<cell>/" mountpoint too. Further, split the YFS VL record cell name maximum to be the 256 allowed by the protocol and ignore the record retrieved by YFSVL.GetCellName if it exceeds 253.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: afs: Arreglar la longitud máxima del nombre de celda El sistema de archivos kafs limita la longitud máxima de una celda a 256 bytes, pero ocurre un problema si alguien realmente hace eso: kafs intenta crear un directorio bajo /proc/net/afs/ con el nombre de la celda, pero eso falla con una advertencia: ADVERTENCIA: CPU: 0 PID: 9 en fs/proc/generic.c:405 porque procfs limita la longitud máxima del nombre de archivo a 255. Sin embargo, el DNS limita la longitud máxima de búsqueda y, por extensión, el nombre máximo de celda, a 255 menos dos (recuento de longitud y NUL final). Arregle esto limitando la longitud máxima aceptable del nombre de celda a 253. Esto también nos permite estar seguros de que podemos crear el punto de montaje "/afs/./" también. Además, divida el nombre de celda del registro YFS VL al máximo de 256 permitido por el protocolo e ignore el registro recuperado por YFSVL.GetCellName si excede 253.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-21646 changed 2026-08-05 | CVE Terms of Use |
| NVD | CVE-2025-21646 changed 2026-07-30 | Public domain |