# CVE-2025-21646: afs: Fix the maximum cell name length

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.80% (percentile 53, 2026-11-26)
- **Published:** 2025-01-19T10:18:02.776Z
- **Modified:** 2026-08-05T11:53:20.429Z

## Who should check

- Anyone running Linux \>= c3e9f888263bb4df11cbd623ceced02081cb2f9f, \< 9340385468d056bb700b8f28df236b81fc86a079; \>= c3e9f888263bb4df11cbd623ceced02081cb2f9f, \< 7cb3e77e9b4e6ffa325a5559393d3283c9af3d01; \>= c3e9f888263bb4df11cbd623ceced02081cb2f9f, \< aabe47cf5ac5e1db2ae0635f189d836f67024904; \>= c3e9f888263bb4df11cbd623ceced02081cb2f9f, \< 7673030efe0f8ca1056d3849d61784c6caa052af; \>= c3e9f888263bb4df11cbd623ceced02081cb2f9f, \< 7922b1f058fe24a93730511dd0ae2e1630920096; \>= c3e9f888263bb4df11cbd623ceced02081cb2f9f, \< 8fd56ad6e7c90ac2bddb0741c6b248c8c5d56ac8
- Anyone running Linux 5.8

## 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 and fixed versions

- Linux: \>= c3e9f888263bb4df11cbd623ceced02081cb2f9f, \< 9340385468d056bb700b8f28df236b81fc86a079; \>= c3e9f888263bb4df11cbd623ceced02081cb2f9f, \< 7cb3e77e9b4e6ffa325a5559393d3283c9af3d01; \>= c3e9f888263bb4df11cbd623ceced02081cb2f9f, \< aabe47cf5ac5e1db2ae0635f189d836f67024904; \>= c3e9f888263bb4df11cbd623ceced02081cb2f9f, \< 7673030efe0f8ca1056d3849d61784c6caa052af; \>= c3e9f888263bb4df11cbd623ceced02081cb2f9f, \< 7922b1f058fe24a93730511dd0ae2e1630920096; \>= c3e9f888263bb4df11cbd623ceced02081cb2f9f, \< 8fd56ad6e7c90ac2bddb0741c6b248c8c5d56ac8 (cvelist)
- Linux: 5.8 (cvelist)

## Mitigation

- Upgrade Linux to 8fd56ad6e7c90ac2bddb0741c6b248c8c5d56ac8 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-21646. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-21646.md
Affected: Linux >= c3e9f888263bb4df11cbd623ceced02081cb2f9f, < 9340385468d056bb700b8f28df236b81fc86a079; >= c3e9f888263bb4df11cbd623ceced02081cb2f9f, < 7cb3e77e9b4e6ffa325a5559393d3283c9af3d01; >= c3e9f888263bb4df11cbd623ceced02081cb2f9f, < aabe47cf5ac5e1db2ae0635f189d836f67024904; >= c3e9f888263bb4df11cbd62…
Fixed in: Linux 9340385468d056bb700b8f28df236b81fc86a079, Linux 7cb3e77e9b4e6ffa325a5559393d3283c9af3d01, Linux 7673030efe0f8ca1056d3849d61784c6caa052af, Linux 7922b1f058fe24a93730511dd0ae2e1630920096, Linux 8fd56ad6e7c90ac2bddb0741c6b248c8c5d56ac8

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-21646 being exploited?

There is no confirmed exploitation: CVE-2025-21646 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.80% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-21646?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2025-21646?

Linux \>= c3e9f888263bb4df11cbd623ceced02081cb2f9f, \< 9340385468d056bb700b8f28df236b81fc86a079; \>= c3e9f888263bb4df11cbd623ceced02081cb2f9f, \< 7cb3e77e9b4e6ffa325a5559393d3283c9af3d01; \>= c3e9f888263bb4df11cbd623ceced02081cb2f9f, \< aabe47cf5ac5e1db2ae0635f189d836f67024904; \>= c3e9f888263bb4df11cbd623ceced02081cb2f9f, \< 7673030efe0f8ca1056d3849d61784c6caa052af; \>= c3e9f888263bb4df11cbd623ceced02081cb2f9f, \< 7922b1f058fe24a93730511dd0ae2e1630920096; \>= c3e9f888263bb4df11cbd623ceced02081cb2f9f, \< 8fd56ad6e7c90ac2bddb0741c6b248c8c5d56ac8; Linux 5.8.

### Is there a fix for CVE-2025-21646?

Yes. Fixed in Linux 9340385468d056bb700b8f28df236b81fc86a079, Linux 7cb3e77e9b4e6ffa325a5559393d3283c9af3d01, Linux 7673030efe0f8ca1056d3849d61784c6caa052af, Linux 7922b1f058fe24a93730511dd0ae2e1630920096, Linux 8fd56ad6e7c90ac2bddb0741c6b248c8c5d56ac8. Upgrade Linux to 8fd56ad6e7c90ac2bddb0741c6b248c8c5d56ac8 or later.

### How do I check if I'm affected by CVE-2025-21646?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/9340385468d056bb700b8f28df236b81fc86a079>
- patch: <https://git.kernel.org/stable/c/7cb3e77e9b4e6ffa325a5559393d3283c9af3d01>
- patch: <https://git.kernel.org/stable/c/aabe47cf5ac5e1db2ae0635f189d836f67024904>
- patch: <https://git.kernel.org/stable/c/7673030efe0f8ca1056d3849d61784c6caa052af>
- patch: <https://git.kernel.org/stable/c/7922b1f058fe24a93730511dd0ae2e1630920096>
- patch: <https://git.kernel.org/stable/c/8fd56ad6e7c90ac2bddb0741c6b248c8c5d56ac8>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-21646>

HTML: <https://flawdb.com/CVE-2025-21646> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-21646>
