CVE-2025-21646

afs: Fix the maximum cell name length

MEDIUM
5.5
CVSS Score
Published: January 19, 2025 at 10:18 AM UTC
Updated: August 5, 2026 at 12:44 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.4%

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.11 ≤ v < 5.15.1775.16 ≤ v < 6.1.1255.8 ≤ v < 5.10.2345.8 ≤ v < 5.15.1775.8 ≤ v < 6.1.1255.8 ≤ v < 6.12.105.8 ≤ v < 6.135.8 ≤ v < 6.6.726.2 ≤ v < 6.6.726.7 ≤ v < 6.12.106.13 rc16.13 rc26.13 rc36.13 rc46.13 rc56.13 rc6c3e9f888263bb4df11cbd623ceced02081cb2f9f
Vendor states this is fixed in 7673030efe0f8ca1056d3849d61784c6caa052af (fixed)
Vendor states this is fixed in 7922b1f058fe24a93730511dd0ae2e1630920096 (fixed)
Vendor states this is fixed in 7cb3e77e9b4e6ffa325a5559393d3283c9af3d01 (fixed)
Vendor states this is fixed in 8fd56ad6e7c90ac2bddb0741c6b248c8c5d56ac8 (fixed)
Vendor states this is fixed in 9340385468d056bb700b8f28df236b81fc86a079 (fixed)
Vendor states this is fixed in aabe47cf5ac5e1db2ae0635f189d836f67024904 (fixed)
Vendor states this is fixed in 5.10.234 (unaffected)
Vendor states this is fixed in 5.15.177 (unaffected)
Vendor states this is fixed in 5.8 (unaffected)
Vendor states this is fixed in 6.1.125 (unaffected)
Vendor states this is fixed in 6.12.10 (unaffected)
Vendor states this is fixed in 6.13 (unaffected)
Vendor states this is fixed in 6.6.72 (unaffected)

References (8)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/7673030efe0f8ca1056d3849d61784c6caa052af
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/7922b1f058fe24a93730511dd0ae2e1630920096
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/7cb3e77e9b4e6ffa325a5559393d3283c9af3d01
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8fd56ad6e7c90ac2bddb0741c6b248c8c5d56ac8
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/9340385468d056bb700b8f28df236b81fc86a079
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/aabe47cf5ac5e1db2ae0635f189d836f67024904
Source: af854a3a-2127-422b-91ae-364da2661108
https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html
Source: af854a3a-2127-422b-91ae-364da2661108
https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
NVD-CWE-noinfo

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card