CVE-2025-21646
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2025-21646 affects the Linux kernel's kafs (kernel AFS) filesystem implementation. The vulnerability was discovered on January 19, 2025, and involves an issue with cell name length handling. The kafs filesystem previously limited the maximum length of a cell name to 256 bytes, which could cause failures when creating directories under /proc/net/afs/ due to procfs's 255-character filename length limitation (Kernel Git).

Technical details

The vulnerability stems from a mismatch between the kafs filesystem's maximum cell name length (256 bytes) and procfs's filename length limitation (255 characters). When attempting to create a directory under /proc/net/afs/ with a cell name at the maximum length, it would trigger a warning: 'WARNING: CPU: 0 PID: 9 at fs/proc/generic.c:405'. Additionally, DNS imposes a limit of 255 bytes minus two (for length count and trailing NUL) on lookup length and cell names (Kernel Git).

Impact

The issue could prevent the creation of directories under /proc/net/afs/ when using cell names at the maximum length, potentially affecting system functionality and AFS filesystem operations. This could impact systems using the kafs filesystem with long cell names (Debian Security).

Mitigation and workarounds

The issue has been fixed by limiting the maximum acceptable cellname length to 253 bytes, which accommodates both the procfs limitation and DNS requirements. The fix also includes splitting the YFS VL record cell name maximum to be 256 as allowed by the protocol while ignoring records that exceed 253 bytes. The patch has been included in various Linux kernel versions, with Debian's bookworm release receiving the fix in version 6.1.128-1 (Debian Security).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-40205HIGH7.8
  • Linux KernelLinux Kernel
  • linux-hwe-6.14
NoYesNov 12, 2025
CVE-2025-40211HIGH7.1
  • Linux KernelLinux Kernel
  • linux-azure-fde-6.14
NoYesNov 21, 2025
CVE-2025-40206MEDIUM5.5
  • Linux KernelLinux Kernel
  • kernel-64k-debug-devel
NoYesNov 12, 2025
CVE-2025-40210MEDIUM5.1
  • Linux KernelLinux Kernel
  • kernel-tools-libs-devel
NoYesNov 21, 2025
CVE-2025-40212N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k
NoYesNov 24, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management