
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-40287 is a Denial-of-Service vulnerability in the Linux kernel's exFAT filesystem driver caused by improper validation of dentry.stream.valid_size. When a dentry in an exFAT filesystem is malformed, system calls SYS_openat, SYS_ftruncate, and SYS_pwrite64 can trigger an infinite loop, causing the kernel to hang. The vulnerability was published on December 6, 2025, and affects Linux kernel versions from the initial commit (1da177e4c3f4) up to the patched releases. It carries a CVSS v3.1 base score of 5.5 (Medium), reflecting a local attack vector with high availability impact (Red Hat CVE, Microsoft MSRC).
The root cause is an improper input validation flaw (CWE-20) in the exfat_find() function within the Linux kernel's exFAT filesystem implementation. The size validation code fails to check whether dentry.stream.valid_size is a negative value; because the field is treated as an unsigned or unchecked quantity, a malformed filesystem entry with a negative valid_size passes validation and allows subsequent system calls to proceed into an infinite loop. An attacker must have local access and the ability to mount or interact with a crafted exFAT filesystem image to trigger the condition. No public proof-of-concept exploit code has been identified (Red Hat CVE, ENISA EUVD).
Successful exploitation causes the kernel to enter an infinite loop, rendering the affected system completely unresponsive — a full Denial-of-Service condition. There is no confidentiality or integrity impact; the vulnerability is limited to availability. Systems mounting untrusted or attacker-controlled exFAT volumes (e.g., removable media, shared storage) are at greatest risk, and a single low-privileged local user can trigger the hang without any user interaction (Red Hat CVE).
There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation as of the time of publication (Red Hat CVE). The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The EPSS score is approximately 0.017% (0.000170), indicating a very low probability of exploitation in the near term. Exploitation requires local access with at least low privileges, limiting the attack surface compared to remotely exploitable vulnerabilities (ENISA EUVD).
dentry.stream.valid_size is set to a negative value (e.g., using a hex editor or custom filesystem-building tool).SYS_openat (open a file), SYS_ftruncate (truncate the file), or SYS_pwrite64 (write to the file at an offset).exfat_find() function enters an infinite loop due to the unchecked negative valid_size, causing the kernel to hang and the system to become unresponsive.dmesg, /var/log/kern.log) may show stalled or hung task warnings (e.g., INFO: task <name>:<pid> blocked for more than 120 seconds) related to exFAT filesystem operations.openat, ftruncate, or pwrite64 on an exFAT-mounted path appearing stuck or unresponsive in process listings (ps aux, top) with state D (uninterruptible sleep).Patches have been merged into the Linux kernel stable branches: versions 6.12.59, 6.17.9, and 6.18 include the fix (ENISA EUVD). Microsoft has also released a patch for the Azure Linux 3 kernel (azl3_kernel ≥ 6.6.117.1-1) (Microsoft MSRC). As a workaround where patching is not immediately possible, restrict local user access to mount exFAT filesystems (e.g., via udisks policies or removing the exfat kernel module with modprobe -r exfat), and avoid auto-mounting untrusted removable media. Prioritize patching on systems where untrusted users have local access or where removable media auto-mount is enabled.
Red Hat published a CVE advisory shortly after disclosure, and Microsoft addressed the vulnerability in its December 2025 Patch Tuesday update cycle for Azure Linux (Microsoft MSRC, Red Hat CVE). Rapid7 noted the vulnerability in its December 2025 Patch Tuesday analysis (Rapid7 Blog). No significant social media controversy or notable researcher commentary beyond standard vulnerability tracking has been observed.
Fix availability across major Linux distributions and their releases.
bionic (esm-infra)
linux
bionic (fips-updates)
linux-fips
bionic (fips)
linux-fips
devel
linux
focal (esm-infra)
linux
focal (fips-updates)
linux-fips
focal (fips)
linux-fips
jammy
linux
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."