Skip to content
Heist/ feed
Back to feed
HighFix available

afs: Fix the maximum cell name length

Type: advisorySources: OSV

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/./" 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.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.10.234, 5.15.177, 6.1.125, 6.12.10, 6.6.72
CVEs
CVE-2025-21646
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 15:43 UTC · Revision 1

Source evidence

afs: Fix the maximum cell name length

core-osv · Original source

Published 19 Jan 2025, 10:18 UTC

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/./" 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.

osv:CVE-2025-21646

Kernel

Fixed versions: 5.10.234, 5.15.177, 6.1.125, 6.6.72, 6.12.10

Complete source record
{
  "id": "7228dc6c4642e8c0de2cb82925ae2acd5677cb0e959d5727aff83c475baa5b16",
  "url": "https://osv.dev/vulnerability/CVE-2025-21646",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "afs: Fix the maximum cell name length",
    "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 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/./\" 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.",
    "evidence": "osv:CVE-2025-21646",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.10.234",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.177",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.125",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.72",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.12.10",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "CVE-2025-21646",
      "aliases": [
        "CVE-2025-21646"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "c3e9f888263bb4df11cbd623ceced02081cb2f9f"
                },
                {
                  "fixed": "9340385468d056bb700b8f28df236b81fc86a079"
                },
                {
                  "fixed": "7cb3e77e9b4e6ffa325a5559393d3283c9af3d01"
                },
                {
                  "fixed": "aabe47cf5ac5e1db2ae0635f189d836f67024904"
                },
                {
                  "fixed": "7673030efe0f8ca1056d3849d61784c6caa052af"
                },
                {
                  "fixed": "7922b1f058fe24a93730511dd0ae2e1630920096"
                },
                {
                  "fixed": "8fd56ad6e7c90ac2bddb0741c6b248c8c5d56ac8"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-21646.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.8.0"
                },
                {
                  "fixed": "5.10.234"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.177"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.125"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.72"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.12.10"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-21646.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:30.137059944Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/7673030efe0f8ca1056d3849d61784c6caa052af",
        "https://git.kernel.org/stable/c/7922b1f058fe24a93730511dd0ae2e1630920096",
        "https://git.kernel.org/stable/c/7cb3e77e9b4e6ffa325a5559393d3283c9af3d01",
        "https://git.kernel.org/stable/c/8fd56ad6e7c90ac2bddb0741c6b248c8c5d56ac8",
        "https://git.kernel.org/stable/c/9340385468d056bb700b8f28df236b81fc86a079",
        "https://git.kernel.org/stable/c/aabe47cf5ac5e1db2ae0635f189d836f67024904",
        "https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html",
        "https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21646.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-21646",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21646.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-21646",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 496941,
  "published_at": "2025-01-19T10:18:02.776+00:00"
}