CVE-2025-21646

afs: Fix the maximum cell name length

7.5 high EPSS 0.45%

Published 19 Jan 2025 Updated 5 Aug 2026 CNA: Linux

Check your servers for CVE-2025-21646

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-21646 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Severity (CVSS)

7.5 high CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack vector
network: an attacker can reach the vulnerable part over the network, often from the internet
Attack complexity
low: an attack works without special conditions
Privileges required
none: the attacker does not need an account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality none, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.45%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 40.7% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from c3e9f888263bb4df11cbd623ceced02081cb2f9f, before 9340385468d056bb700b8f28df236b81fc86a079
affected from c3e9f888263bb4df11cbd623ceced02081cb2f9f, before 7cb3e77e9b4e6ffa325a5559393d3283c9af3d01
affected from c3e9f888263bb4df11cbd623ceced02081cb2f9f, before aabe47cf5ac5e1db2ae0635f189d836f67024904
affected from c3e9f888263bb4df11cbd623ceced02081cb2f9f, before 7673030efe0f8ca1056d3849d61784c6caa052af
affected from c3e9f888263bb4df11cbd623ceced02081cb2f9f, before 7922b1f058fe24a93730511dd0ae2e1630920096
affected from c3e9f888263bb4df11cbd623ceced02081cb2f9f, before 8fd56ad6e7c90ac2bddb0741c6b248c8c5d56ac8
Other versions: unaffected
Linux
affected 5.8
unaffected before 5.8
unaffected from 5.10.234 up to and including 5.10.*
unaffected from 5.15.177 up to and including 5.15.*
unaffected from 6.1.125 up to and including 6.1.*
unaffected from 6.6.72 up to and including 6.6.*
unaffected from 6.12.10 up to and including 6.12.*
unaffected 6.13 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-21646 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-21646

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2025-21646
trivy image --scanners vuln IMAGE | grep CVE-2025-21646

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2025-21646 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.