---
id: CVE-2025-21646
title: |-
  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 tr…
summary: |-
  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 tr…
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'
vendor: linux
product: linux_kernel
affected:
  - 'linux_kernel >= 5.8, < 5.10.234'
  - 'linux_kernel >= 5.11, < 5.15.177'
  - 'linux_kernel >= 5.16, < 6.1.125'
  - 'linux_kernel >= 6.2, < 6.6.72'
  - 'linux_kernel >= 6.7, < 6.12.10'
  - linux_kernel = 6.13
patched:
  - linux_kernel 6.12.10
published: '2025-01-19'
updated: '2026-07-30'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-21646'
references:
  - url: 'https://git.kernel.org/stable/c/7673030efe0f8ca1056d3849d61784c6caa052af'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/7922b1f058fe24a93730511dd0ae2e1630920096'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/7cb3e77e9b4e6ffa325a5559393d3283c9af3d01'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/8fd56ad6e7c90ac2bddb0741c6b248c8c5d56ac8'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/9340385468d056bb700b8f28df236b81fc86a079'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/aabe47cf5ac5e1db2ae0635f189d836f67024904'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html'
    label: af854a3a-2127-422b-91ae-364da2661108
tags:
  - nvd
epss: 0.00449
epssPercentile: 0.36294
ingestedAt: '2026-07-30T06:53:08.909Z'
---

## Overview

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

- `linux_kernel >= 5.8, < 5.10.234`
- `linux_kernel >= 5.11, < 5.15.177`
- `linux_kernel >= 5.16, < 6.1.125`
- `linux_kernel >= 6.2, < 6.6.72`
- `linux_kernel >= 6.7, < 6.12.10`
- `linux_kernel = 6.13`

## Remediation

Upgrade past the affected range:

- `linux_kernel 6.12.10`
