{
  "id": "CVE-2025-21646",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-21646",
  "published_at": "2025-01-19T10:18:02.776Z",
  "title": "afs: Fix the maximum cell name length",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.5,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\nafs: Fix the maximum cell name length\n\nThe kafs filesystem limits the maximum length of a cell to 256 bytes, but a\nproblem occurs if someone actually does that: kafs tries to create a\ndirectory under /proc/net/afs/ with the name of the cell, but that fails\nwith a warning:\n\n        WARNING: CPU: 0 PID: 9 at fs/proc/generic.c:405\n\nbecause procfs limits the maximum filename length to 255.\n\nHowever, the DNS limits the maximum lookup length and, by extension, the\nmaximum cell name, to 255 less two (length count and trailing NUL).\n\nFix this by limiting the maximum acceptable cellname length to 253.  This\nalso allows us to be sure we can create the \"/afs/.\u003ccell\u003e/\" mountpoint too.\n\nFurther, split the YFS VL record cell name maximum to be the 256 allowed by\nthe protocol and ignore the record retrieved by YFSVL.GetCellName if it\nexceeds 253.",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.13:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.13:rc2:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.13:rc3:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.13:rc4:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.13:rc5:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.13:rc6:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.5,
    "nvd": 5.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= c3e9f888263bb4df11cbd623ceced02081cb2f9f, \u003c 9340385468d056bb700b8f28df236b81fc86a079",
          "\u003e= c3e9f888263bb4df11cbd623ceced02081cb2f9f, \u003c 7cb3e77e9b4e6ffa325a5559393d3283c9af3d01",
          "\u003e= c3e9f888263bb4df11cbd623ceced02081cb2f9f, \u003c aabe47cf5ac5e1db2ae0635f189d836f67024904",
          "\u003e= c3e9f888263bb4df11cbd623ceced02081cb2f9f, \u003c 7673030efe0f8ca1056d3849d61784c6caa052af",
          "\u003e= c3e9f888263bb4df11cbd623ceced02081cb2f9f, \u003c 7922b1f058fe24a93730511dd0ae2e1630920096",
          "\u003e= c3e9f888263bb4df11cbd623ceced02081cb2f9f, \u003c 8fd56ad6e7c90ac2bddb0741c6b248c8c5d56ac8"
        ],
        "fixed_in": [
          "9340385468d056bb700b8f28df236b81fc86a079",
          "7cb3e77e9b4e6ffa325a5559393d3283c9af3d01",
          "aabe47cf5ac5e1db2ae0635f189d836f67024904",
          "7673030efe0f8ca1056d3849d61784c6caa052af",
          "7922b1f058fe24a93730511dd0ae2e1630920096",
          "8fd56ad6e7c90ac2bddb0741c6b248c8c5d56ac8"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "5.8"
        ],
        "fixed_in": [
          "0",
          "5.10.234",
          "5.15.177",
          "6.1.125",
          "6.6.72",
          "6.12.10",
          "6.13"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 9340385468d056bb700b8f28df236b81fc86a079 or 7cb3e77e9b4e6ffa325a5559393d3283c9af3d01 or aabe47cf5ac5e1db2ae0635f189d836f67024904 or 7673030efe0f8ca1056d3849d61784c6caa052af or 7922b1f058fe24a93730511dd0ae2e1630920096 or 8fd56ad6e7c90ac2bddb0741c6b248c8c5d56ac8 or later.",
      "Upgrade Linux to 0 or 5.10.234 or 5.15.177 or 6.1.125 or 6.6.72 or 6.12.10 or 6.13 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
