CVE-2026-64296
High · 7.8CVSS
7.8
EPSS
0.2%
Published
Jul 25, 2026
CISA due date
—
Cloudanix analysis
A malicious removable drive or disk image could crash or potentially take over a Linux computer when it is mounted.
- Exploitation
- Local Privilege
- Attacker needs
- Low Privilege
- Complexity
- Moderate
- Impact
- Privilege Gain
- Component
- OS kernel
- Class
- Buffer Overflow
- Remediation
- Patch
- Effort
- Medium
- Patch risk
- Low
What it actually does
This is a local Linux kernel memory-safety flaw in the exFAT filesystem driver. A crafted exFAT directory can contain many filename extension entries with short fragments or early NUL characters, causing exfat_find_dir_entry() to advance an internal output pointer beyond the intended filename buffer while the length guard remains below the maximum filename length. The result is an out-of-bounds read and write in kernel context. Depending on kernel build, memory layout, and mitigations, exploitation may cause a kernel crash, information disclosure, or potentially local privilege escalation through controlled kernel memory corruption.
Why it matters to the business
Systems that automatically or routinely mount untrusted exFAT media or disk images are at risk of crashes or possible host compromise by a local user or by someone able to introduce a crafted removable drive, virtual disk, or filesystem image. The CVSS score is high, but the vulnerability requires local access or a path to get a malicious exFAT filesystem mounted, and there is no current KEV listing, ransomware association, or known public exploit maturity in the provided data. Organizations with Linux endpoints, kiosks, forensic workstations, file-ingestion systems, or virtualization/container workflows that mount user-supplied media should prioritize patching because successful exploitation occurs in kernel space and can affect system confidentiality, integrity, and availability.
How an attack unfolds
An attacker prepares a malicious exFAT filesystem containing directory entries with multiple TYPE_EXTEND filename fragments engineered to include early NUL characters or unusually short extracted name lengths. The attacker then gets a vulnerable Linux system to mount or access that filesystem, such as through a USB drive, SD card, removable disk, virtual disk image, loop-mounted image, or file-processing workflow that inspects exFAT volumes. When the kernel exFAT driver searches the crafted directory, exfat_find_dir_entry() advances the filename output pointer by a fixed 15-character stride per filename entry, but tracks only the shorter extracted fragment lengths for its guard condition. After enough crafted fragments, the pointer moves beyond the fixed filename buffer, and the driver reads and writes outside bounds at kernel privilege. In the simplest case this causes a kernel oops or panic; in a more advanced exploit, the attacker may attempt to shape adjacent kernel memory to gain code execution or elevate privileges.
How to fix it
Upgrade to a Linux kernel version that includes the exFAT fix that bounds the per-entry filename write offset in exfat_find_dir_entry(). If using distribution kernels, apply the relevant vendor kernel security update rather than relying only on upstream version numbers. If immediate patching is not possible, reduce exposure by disabling exFAT automounting, preventing untrusted users from mounting filesystems, blocking or tightly controlling removable media, avoiding loop-mounting untrusted exFAT images, and using sandboxed or disposable systems for media analysis. Consider disabling the exFAT kernel module where business operations do not require it, or restricting module loading through standard Linux hardening controls.
How to confirm the fix worked
Confirm the running kernel package includes the vendor fix for this issue, not merely that an updated package is installed but not rebooted into. Validate with uname -r, package manager metadata, and vendor advisories for the active kernel. Check whether the exFAT module is present or loaded with lsmod, modinfo exfat, or equivalent tooling. Attempting to validate with a malicious filesystem is not recommended on production systems; if needed, use a controlled lab host with crash dump capture and verify that a crafted short-fragment exFAT directory is rejected or handled without kernel memory errors. Confirm mitigations by testing that untrusted removable media does not auto-mount and that non-privileged users cannot mount arbitrary exFAT filesystems.
Typical attack path
- Identify a vulnerable Linux system that supports or auto-mounts exFAT filesystems.
- Create a crafted exFAT volume with directory filename extension entries containing short fragments or early NUL characters.
- Deliver the malicious filesystem through removable media, a disk image, a virtual disk, or another workflow that causes the target to mount or scan the exFAT volume.
- Trigger directory lookup or enumeration so the kernel executes the vulnerable exfat_find_dir_entry() path.
- Cause an out-of-bounds kernel read/write, resulting in denial of service or potential kernel memory corruption for privilege escalation.
How to detect it
Look for evidence that vulnerable systems mounted or attempted to read untrusted exFAT filesystems before patching. Useful sources include kernel logs, systemd journal, dmesg output, audit logs for mount activity, desktop automount logs, removable-media management logs, EDR telemetry, and crash dumps. Search for kernel oops, panic, page-fault, general-protection, or KASAN reports involving exFAT functions, especially exfat_find_dir_entry(), exfat_extract_uni_name(), or exfat_readdir(). Correlate any such events with USB insertion logs, loop device creation, mount commands, udisks/udisks2 activity, forensic tooling, or access to disk-image files. Because exploitation artifacts may be limited to a crafted filesystem and a kernel crash, absence of logs does not prove absence of exploitation; prioritize preservation of suspicious exFAT media, disk images, vmcore/kdump output, and recent journal/dmesg history.
- exfat_find_dir_entry
- exfat_extract_uni_name
- exfat_get_uniname_from_ext_entry
- exFAT-fs
- type exfat
- FSTYPE=exfat
- mount.exfat
- udisksd
- loop device
- BUG: KASAN: slab-out-of-bounds
- BUG: KASAN: stack-out-of-bounds
- BUG: unable to handle page fault
- Unable to handle kernel paging request
- general protection fault
- kernel BUG
- Oops:
- Kernel panic
- RIP: exfat_find_dir_entry
- Call Trace: exfat_find_dir_entry
What your security team should do
- Prioritize kernel patching on Linux endpoints and servers that mount removable media, ingest disk images, run desktop environments with automount enabled, or perform forensic/file-processing work on untrusted storage.
- Inventory systems with exFAT support enabled or the exfat kernel module available, and identify workflows where untrusted exFAT volumes may be mounted.
- Disable exFAT automounting and restrict local mount permissions until patched, especially on shared workstations, kiosks, build systems, and file-ingestion hosts.
- Monitor for kernel crashes, oops reports, or KASAN findings referencing exFAT functions, especially after insertion or mounting of removable media or disk images.
- Ensure patched kernel packages are followed by reboots or live-patch verification so the fixed kernel is actually running.
- Treat unexplained kernel panics associated with exFAT media as potential exploitation attempts; preserve the media image, kernel logs, and crash dumps for forensic analysis.
The record
In the Linux kernel, the following vulnerability has been resolved: exfat: bound uniname advance in exfat_find_dir_entry() In exfat_find_dir_entry(), each TYPE_EXTEND (file name) entry advances the output pointer by a fixed amount while the loop guard only tracks the accumulated name length: if (++order == 2) uniname = p_uniname->name; else uniname += EXFAT_FILE_NAME_LEN; len = exfat_extract_uni_name(ep, entry_uniname); name_len += len; unichar = *(uniname+len); *(uniname+len) = 0x0; uniname grows by EXFAT_FILE_NAME_LEN (15) per name entry, but name_len grows only by the actual extracted length, which is shorter when a name fragment contains an early NUL. The only guard is `name_len >= MAX_NAME_LENGTH`, so a crafted directory with many short name fragments lets uniname run far past the p_uniname->name[MAX_NAME_LENGTH + 3] buffer while name_len stays small, causing an out-of-bounds read and write at *(uniname+len). The sibling extractor exfat_get_uniname_from_ext_entry() already stops on a short fragment (the lockstep `len != EXFAT_FILE_NAME_LEN` guard added in commit d42334578eba ("exfat: check if filename entries exceeds max filename length")); exfat_find_dir_entry() never got the equivalent. Track the per-entry write offset as a count and reject a fragment once the offset, or the offset plus the extracted length, would exceed MAX_NAME_LENGTH, before forming the output pointer.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|